需求变更
This commit is contained in:
@@ -356,6 +356,11 @@ export default {
|
|||||||
this.node.collapse();
|
this.node.collapse();
|
||||||
this.tree.$emit("node-collapse", this.node.data, this.node, this);
|
this.tree.$emit("node-collapse", this.node.data, this.node, this);
|
||||||
} else {
|
} else {
|
||||||
|
if (this.node.parent.childNodes && this.node.parent.childNodes.length) {
|
||||||
|
this.node.parent.childNodes.forEach(e => {
|
||||||
|
e.collapse()
|
||||||
|
})
|
||||||
|
}
|
||||||
this.node.expand();
|
this.node.expand();
|
||||||
this.tree.$emit("node-expand", this.node.data, this.node, this);
|
this.tree.$emit("node-expand", this.node.data, this.node, this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user