Skip to content

[picker] picker-item不支持插槽 #3549

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

Closed
mynoded opened this issue Mar 25, 2025 · 3 comments
Closed

[picker] picker-item不支持插槽 #3549

mynoded opened this issue Mar 25, 2025 · 3 comments
Labels
question This is a question, not a bug

Comments

@mynoded
Copy link

mynoded commented Mar 25, 2025

这个功能解决了什么问题

看起来picker-item没有插槽功能,只支持展示label的内容

你建议的方案是什么

希望增加插槽功能,可以对每个选项增加自定义显示内容,比如图片或选项说明。

Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Mar 26, 2025

有 label-suffix 插槽

Image

参考:https://tdesign.tencent.com/miniprogram/components/picker

@anlyyao anlyyao added the question This is a question, not a bug label Mar 26, 2025
@mynoded
Copy link
Author

mynoded commented Mar 26, 2025

好的感谢,看日志里1.6.1版本才支持的,我的版本太低了

@mynoded mynoded closed this as completed Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants