Skip to content

TreeSelect组件的value可以返回父级路径的数组形式吗?类似cascader #8082

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

Open
1 task
havenothingtosay opened this issue Mar 19, 2025 · 0 comments

Comments

@havenothingtosay
Copy link

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

What problem does this feature solve?

TreeSelect组件的value目前是只返回选中的节点的key,想要类似cascader一样的返回从一级开始的包含父级key的数组形式的value。比如

Image

目前value是'my leaf',希望可以是['root1', 'parent1', 'parent1-0', 'my leaf]这样。

What does the proposed API look like?

可以加个配置项,决定返回值是哪种形式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant