美文网首页
2020-09-23 element tree 获取半选中节点和

2020-09-23 element tree 获取半选中节点和

作者: 追寻1989 | 来源:发表于2020-09-23 10:12 被阅读0次

    获取半选中节点和选中节点的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

    相关文章

      网友评论

          本文标题:2020-09-23 element tree 获取半选中节点和

          本文链接:https://www.haomeiwen.com/subject/rfmnyktx.html