mirror of https://github.com/ElemeFE/element
Tree: Remove undefined variable, fixed #1945
parent
6f75ca6150
commit
775d5c16ea
|
@ -133,12 +133,12 @@
|
||||||
this.tree.$emit('current-change', store.currentNode ? store.currentNode.data : null, store.currentNode);
|
this.tree.$emit('current-change', store.currentNode ? store.currentNode.data : null, store.currentNode);
|
||||||
this.tree.currentNode = this;
|
this.tree.currentNode = this;
|
||||||
if (this.tree.expandOnClickNode) {
|
if (this.tree.expandOnClickNode) {
|
||||||
this.handleExpandIconClick(event);
|
this.handleExpandIconClick();
|
||||||
}
|
}
|
||||||
this.tree.$emit('node-click', this.node.data, this.node, this);
|
this.tree.$emit('node-click', this.node.data, this.node, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleExpandIconClick(event) {
|
handleExpandIconClick() {
|
||||||
if (this.expanded) {
|
if (this.expanded) {
|
||||||
this.node.collapse();
|
this.node.collapse();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue