tower1229 / Vue-Giant-Tree

🌳 巨树:基于ztree封装的Vue树形组件,轻松实现海量数据的高性能渲染。
http://refined-x.com/Vue-Giant-Tree/
MIT License
660 stars 169 forks source link

如何在oncheck里面返回所有被勾选的子元素 #1

Closed demaxiyaaixi closed 5 years ago

demaxiyaaixi commented 5 years ago

zTreeTools.getCheckedNodes = function (checked) { var checked = (checked !== false); var children = data.nodeChildren(setting, data.getRoot(this.setting)); return data.getTreeCheckedNodes(this.setting, children, checked); } 请问下这个咋调用啊

demaxiyaaixi commented 5 years ago

this.$refs.ztree.ztreeObj.getCheckedNodes(true)