Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-select TreeNode props 在设置checkbox模式的时候,每个节点没有checkd属性可以控制是否被选中 #6684

Closed
1 task
875817196 opened this issue Jun 21, 2023 · 5 comments

Comments

@875817196
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

有个实际案例,在一个省市区的选择当时,需要在选中广州市的时候,设置广州市下的区全部不可选且不被选中,不可选可以通过TreeNode props 里的diabled属性实现,但是节点是否可选没有提供对应的属性

What does the proposed API look like?

希望在TreeNode props里能够新增一个checked属性控制节点的是否选中

@875817196
Copy link
Author

现在的问题是会出现,当我选中广州市下的天河区后,在单独选广州市,希望的结果是广州市下的所有区不可选且不被选中,但现在的结果是天河区依旧被选中,但不可选

@875817196
Copy link
Author

截屏2023-06-21 下午3 48 56

@coolwehon
Copy link

或许你可以通过控制与该TreeSelect绑定的数据进行控制,将广州市下的子节点清空后,再进行设置不可选中的操作

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants