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

treeSelect组件能否添加 key 的别名 #8089

Closed
hyufe opened this issue Mar 20, 2025 · 1 comment
Closed

treeSelect组件能否添加 key 的别名 #8089

hyufe opened this issue Mar 20, 2025 · 1 comment
Labels

Comments

@hyufe
Copy link

hyufe commented Mar 20, 2025

Version

4.2.6

What problem does this feature solve?

有这样一个场景,组织架构下有多个部门,每个部门下有子部门和员工,一个员工可以同时在多个部门。

因为key 使用 value 的值,就会key重复导致渲染错误。

如果手动构造value,例如 "pid-id",可以解决这个问题,但是会导致多选时无法同时高亮同一个员工,可以选择同一员工多次。

能否在fieldNames属性下添加 key 的别名,应该可以解决这个问题。

Copy link

Hello @hyufe, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

你好 @hyufe,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant