tree-select icon indicating copy to clipboard operation
tree-select copied to clipboard

[WIP]fix:parent node not disabled when child nodes count greater than `maxCount`

Open yellowryan opened this issue 9 months ago • 3 comments

Related issue #53567

Before: 之前的计算逻辑是只判断当前节点的直接子节点是否disabled,然后计算其总数 image

导致计算出来的title为'1'对应的node未被正确的赋上disabled属性

https://github.com/user-attachments/assets/ddec87b5-fada-46bc-bf28-a267879b2451

After: 将未禁用状态下的非叶子节点的子节点也进行统计、计算

https://github.com/user-attachments/assets/bbffb63d-811c-48bd-8720-f5a7f05a4581

Summary by CodeRabbit

  • 优化
    • 改进了多层级树结构下可勾选叶子节点的统计逻辑,提升了节点可用状态的准确性。
    • 优化了示例中多选树选择组件的展示,简化了界面并调整了最大可选数量设置。

yellowryan avatar Apr 22 '25 08:04 yellowryan