naive-ui
naive-ui copied to clipboard
Tree组件可以控制checkbox的显示,以及checkbox点击的事件
This function solves the problem (这个功能解决的问题)
1.目前只能控制Checbox的Disabled的,不能控制显示 2.目前只能拿到Checked keys变化的事件,没有checkbox点击的事件
Expected API (期望的 API)
- TreeOption Properties { checkable: boolean //When Tree is checkable, set TreeNode display Checkbox or not }
- onCheck: (checkedKeys, e:{checked: bool, checkedNodes, node, event}) => void
这个onCheck对我来说很重要,我需要拿到当前节点是选中还是取消,还有内部的option。 目前只有checkedKeys更新事件,取消选中的时候我拿不到子节点的数据以及option
help
+1 want to disable uncheckable on parent node and only keep it expandable while click also want childern node is checkable
This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem