mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
Tree: drag events should return if not draggable (#11095)
This commit is contained in:
parent
a318c5701e
commit
e51e9fe8ba
@ -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);
|
||||
}
|
||||
},
|
||||
|
@ -372,7 +372,6 @@ describe('Menu', () => {
|
||||
template: `
|
||||
<el-menu :default-active="active">
|
||||
<el-menu-item
|
||||
v-ref="menus"
|
||||
v-for="menu in menus"
|
||||
:index="menu.name"
|
||||
:key="menu.name">
|
||||
|
Loading…
Reference in New Issue
Block a user