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

[Cascader ] 级联组件picker事件能不能返回label #2789

Closed
liugt34 opened this issue May 22, 2024 · 2 comments · Fixed by #3223
Closed

[Cascader ] 级联组件picker事件能不能返回label #2789

liugt34 opened this issue May 22, 2024 · 2 comments · Fixed by #3223
Labels
enhancement New feature or request

Comments

@liugt34
Copy link

liugt34 commented May 22, 2024

这个功能解决了什么问题

当前功能只是返回了value, 但是很多时候需要label值进行展示

你建议的方案是什么

返回label值

Copy link
Contributor

👋 @liugt34,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@ZiZiZiNone
Copy link

Cascader Props

名称 类型 默认值 说明 必传
keys Object - 用来定义 value / label 在 options 中对应的字段别名。TS 类型:KeysType。通用类型定义 N

这个有value和label吧
不过如果我要返回的属性不止一个就只能把整个Object 赋值给data里面的属性了

@anlyyao anlyyao added the question This is a question, not a bug label May 24, 2024
@anlyyao anlyyao added enhancement New feature or request and removed question This is a question, not a bug labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants