Tencent / Tencent/tdesign-react
[Cascader] 多选模式下在valueType设置为full 支持同级的value相同
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
tdesign-react 版本
1.12.0-alpha.3
重现链接
重现步骤
打开重现链接,点击下拉框就会发现 一个选项值 UI上两个都被选中
期望结果
与antdesign和element一致,不同选择路径应当分开判断,不会因为不同层级value相同而被选中
实际结果
目前二级相同value会被选中,反直觉
框架版本
React(19)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
后端提供的接口中二级内容无唯一标识,导致二级同名情况下选择混乱
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 component and reproduce the behavior using the linked CodeSandbox, focusing on multiple selection with valueType set to full and duplicate values at different levels. Compare the observed selection behavior with the linked Ant Design and Element examples. Done means different selection paths remain independent when child values are identical.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100