Tree: support drag and drop node (#9251)

This commit is contained in:
Harlan
2018-03-20 13:42:04 +08:00
committed by FuryBean
parent 2098e36b51
commit d7c4fd2632
5 changed files with 345 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ export default class TreeStore {
this.currentNode = null;
this.currentNodeKey = null;
this.dragSourceNode = null;
this.dragTargetNode = null;
this.dragTargetDom = null;
this.allowDrop = true;
for (let option in options) {
if (options.hasOwnProperty(option)) {
this[option] = options[option];