获取半选中节点和选中节点的keys数组
this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys())


若想获取半选中节点和选中节点的数据数组,使用getCheckedNodes设置对应参数即可
this.$refs.tree.getCheckedNodes(false,true)

演示地址:https://codepen.io/abu3389/pen/BaKvJoe?editors=1111

网友评论