naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

Tree组件可以控制checkbox的显示,以及checkbox点击的事件

Open sky124380729 opened this issue 2 years ago • 1 comments

This function solves the problem (这个功能解决的问题)

1.目前只能控制Checbox的Disabled的,不能控制显示 2.目前只能拿到Checked keys变化的事件,没有checkbox点击的事件

Expected API (期望的 API)

  1. TreeOption Properties { checkable: boolean //When Tree is checkable, set TreeNode display Checkbox or not }
  2. onCheck: (checkedKeys, e:{checked: bool, checkedNodes, node, event}) => void

sky124380729 avatar Sep 20 '22 01:09 sky124380729

这个onCheck对我来说很重要,我需要拿到当前节点是选中还是取消,还有内部的option。 目前只有checkedKeys更新事件,取消选中的时候我拿不到子节点的数据以及option

sky124380729 avatar Sep 20 '22 01:09 sky124380729

help

sky124380729 avatar Nov 08 '22 01:11 sky124380729

+1 want to disable uncheckable on parent node and only keep it expandable while click also want childern node is checkable

Ikki-Dai avatar Dec 10 '23 10:12 Ikki-Dai

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

jahnli avatar Mar 12 '24 13:03 jahnli