mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: drag events should return if not draggable (#11095)
This commit is contained in:
@@ -208,10 +208,12 @@
|
||||
},
|
||||
|
||||
handleDragStart(event) {
|
||||
if (!this.tree.draggable) return;
|
||||
this.tree.$emit('tree-node-drag-start', event, this);
|
||||
},
|
||||
|
||||
handleDragOver(event) {
|
||||
if (!this.tree.draggable) return;
|
||||
this.tree.$emit('tree-node-drag-over', event, this);
|
||||
event.preventDefault();
|
||||
},
|
||||
@@ -221,6 +223,7 @@
|
||||
},
|
||||
|
||||
handleDragEnd(event) {
|
||||
if (!this.tree.draggable) return;
|
||||
this.tree.$emit('tree-node-drag-end', event, this);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user