Skip to content

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

@havenothingtosay

Description

@havenothingtosay
  • 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?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions