Tencent / Tencent/tdesign-react
[Cascader] 在checkStrictly是否允许选中禁用父级的子项
Open
Nobody has claimed this yet.
usage
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
在使用Cascader时有些父级仅用于分组,禁用后无法进入子集
你建议的方案是什么
禁用节点是仅禁用选择,可以展示子集及允许选中子集
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Cascader behavior controlled by checkStrictly, focusing on how disabled parent nodes affect entering children and selecting descendants. Confirm the expected behavior for disabled grouping parents, then add coverage for displaying their children and allowing descendant selection while keeping the parent itself unselectable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100