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

[新功能需求] wd-select-picker组件希望增加选项插槽 #964

Open
kqswzhyb opened this issue Mar 21, 2025 · 1 comment
Open

[新功能需求] wd-select-picker组件希望增加选项插槽 #964

kqswzhyb opened this issue Mar 21, 2025 · 1 comment
Labels
feature: need confirm 待确认的新特性

Comments

@kqswzhyb
Copy link
Contributor

这个功能解决了什么问题?

现在选项只能是文字,不能自定义样式,比如图片+文字的展示方式就实现不了

你期望的 API 是什么样子的?

<wd-select-picker v-model="value" use-default-slot :columns="columns" @confirm="handleConfirm">
<template #option="{ row }">

</template>
@kqswzhyb kqswzhyb added the feature: need confirm 待确认的新特性 label Mar 21, 2025
Copy link

这个功能需求是希望在 wd-select-picker 组件中增加一个选项插槽,以便用户可以自定义选项的样式。目前,选项只能是文字,无法实现例如图片加文字的展示方式。用户期望的 API 是通过使用 use-default-slot 属性和 #option 插槽来实现自定义选项的功能。

这个需求已经被记录下来,并会被考虑在未来的版本中实现。感谢你的反馈!

如果你有其他问题或需要进一步的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

1 participant