Skip to content

Commit

Permalink
chore(example): update example
Browse files Browse the repository at this point in the history
  • Loading branch information
phphe committed Jun 12, 2020
1 parent c877328 commit 0f9078b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/examples/DraggablePro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ import Tree from '@/components/Tree.vue'
import fold from '@/plugins/fold.js'
import check from '@/plugins/check.js'
import Draggable from '@/plugins/draggable/Draggable.vue'
import DraggablePro from "../../../he-tree-vue-pro";

DraggablePro.LICENSE_NUMBER = 'your license number'

const MixedTree = Tree.mixPlugins([fold, check, Draggable, DraggablePro])

const plugins = [fold, check, Draggable]
export default {
components: {Tree: resolve => import('../../../he-tree-vue-pro').then((DraggablePro) => resolve(Tree.mixPlugins(plugins.concat(DraggablePro.default))), () => resolve(Tree.mixPlugins(plugins)))},
components: {
Tree: MixedTree
},
data() {
return {
treeData: [
Expand Down

0 comments on commit 0f9078b

Please sign in to comment.