Skip to content

Commit

Permalink
OrgChart - Add prevent go further on zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
hommalex committed Sep 23, 2021
1 parent ff63ca4 commit 6ec6c73
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 25 deletions.
1 change: 0 additions & 1 deletion dist/hr_duo
Submodule hr_duo deleted from b28b66
8 changes: 4 additions & 4 deletions dist/vue-orgchart.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4277,8 +4277,8 @@ var VoBasic = { render: function render() {
return {};
}
},
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down Expand Up @@ -4396,8 +4396,8 @@ var VoEdit = { render: function render() {
name: 'VoEdit',
props: {
data: { type: Object },
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-orgchart.common.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/vue-orgchart.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4273,8 +4273,8 @@ var VoBasic = { render: function render() {
return {};
}
},
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down Expand Up @@ -4392,8 +4392,8 @@ var VoEdit = { render: function render() {
name: 'VoEdit',
props: {
data: { type: Object },
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down
10 changes: 5 additions & 5 deletions dist/vue-orgchart.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global['vue-orgchart-al'] = {})));
(factory((global['vue-orgchart'] = {})));
}(this, (function (exports) { 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
Expand Down Expand Up @@ -4279,8 +4279,8 @@ var VoBasic = { render: function render() {
return {};
}
},
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down Expand Up @@ -4398,8 +4398,8 @@ var VoEdit = { render: function render() {
name: 'VoEdit',
props: {
data: { type: Object },
pan: { type: Boolean, default: false },
zoom: { type: Boolean, default: false },
pan: { type: Boolean, default: true },
zoom: { type: Boolean, default: true },
direction: { type: String, default: 't2b' },
verticalDepth: { type: Number },
toggleSiblingsResp: { type: Boolean, default: false },
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-orgchart.min.js

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions examples/App.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<template>
<div>
<vo-edit style="background: #fff"
<br><br><br><br><br><br>
<br><br><br><br><br><br>
<vo-edit style="background: #c5c5c5"
:data="chartData"
:exportButton=true
:toggleCollapse=true
exportButtonName="导出"
exportFilename="test"
:pan="true"
:zoom="true"
>
</vo-edit>
<div id="edit-panel" class="view-state edit-container">
Expand Down Expand Up @@ -41,7 +45,7 @@
</template>

<script>
import { VoEdit } from '../dist/vue-orgchart.min.js'
import { VoEdit } from '../dist/vue-orgchart.js'
export default {
components: { VoEdit },
created () {
Expand All @@ -50,7 +54,7 @@ export default {
children: [
{ name: 'Angular' },
{
name: 'React',
multi: [ 'React', 'React 2' ],
children: [{ name: 'Preact' }]
},
{
Expand Down Expand Up @@ -171,6 +175,9 @@ export default {
html {
background: #f0f2f5;
}
.orgchart {
background: white;
}
@media (min-width: 768px) {
.input-node-container {
margin-top:-20px;
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"name": "vue-orgchart-al",
"description": "A vue component from OrgChart.js",
"version": "1.0.0",
"author": {
"name": "spiritree",
"email": "[email protected]",
"url": "https://github.com/spiritree"
},
"version": "1.1.0",
"author": "spiritree <[email protected]> (https://github.com/spiritree)",
"files": [
"dist",
"src",
Expand Down Expand Up @@ -97,5 +93,10 @@
"rollup-plugin-vue": "^2.5.2",
"webpack": "^3.8.0",
"webpack-dev-server": "^2.9.1"
},
"directories": {
"doc": "docs",
"example": "examples",
"test": "test"
}
}

0 comments on commit 6ec6c73

Please sign in to comment.