<el-tree ref="tree" > </el-tree>
通過key獲取節點
let selectNode = this.$refs.tree.getNode(this.currentData.targetId); console.log(selectNode); console.log(selectNode.parent);
節點下追加節點
this.$refs.tree.append(appendNode, fatherNode);
移除節點
this.$refs.tree.remove(this.currentNode);