mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
[tree]:add node-expand and node-collapse event
This commit is contained in:
@@ -145,6 +145,7 @@
|
||||
},
|
||||
|
||||
handleExpandIconClick() {
|
||||
if (this.node.isLeaf) return;
|
||||
if (this.expanded) {
|
||||
this.tree.$emit('node-collapse', this.node.data, this.node, this);
|
||||
this.node.collapse();
|
||||
|
||||
Reference in New Issue
Block a user