Xinxin
Xinxin
I have not got this problem. Try reinstall node_modules
Thank for your use. I published he-tree-vue. vue-draggable-nested-tree will no longer be updated. try this https://he-tree-vue.phphe.com/
refer max level: https://github.com/phphe/vue-draggable-nested-tree/blob/master/src/examples/MaxLevel.vue set other type nodes droppable false on drag
```js // may like this ondrag(node) { th.depthFirstSearch(this.originalData, (childNode) => { if (childNode === node) { return 'skip children' } if (node.type === 'activity') { this.$set(childNode, 'droppable', childNode.type === 'module')...
@daveKoala import * as th from 'tree-helper'
check latest 2.2.8
No. The slot-scope has not `path`.
在ondragend里判断是否在树外, 返回false阻止
一个思路: ondragend的参数draggableHelperInfo draggableHelperInfo.event是事件, 可以获取鼠标位置, 然后用鼠标位置判断是否在树外
占位节点所属树即为目标树 node._vm.store.dplh._vm.store