<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);

 

相关文章:

  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
相关资源
相似解决方案