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

请问picker组件能否添加一个empty插槽呢? #13218

Closed
Wlisfes opened this issue Nov 18, 2024 · 1 comment · Fixed by #13219
Closed

请问picker组件能否添加一个empty插槽呢? #13218

Wlisfes opened this issue Nov 18, 2024 · 1 comment · Fixed by #13219
Assignees

Comments

@Wlisfes
Copy link

Wlisfes commented Nov 18, 2024

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

picker加载异步数据为空的时候展示一个empty

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

<van-picker>
    {{ empty: () => <van-empty /> }}
</van-picker>
@inottn
Copy link
Collaborator

inottn commented Nov 18, 2024

感谢反馈,会在下个版本加入这个功能

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

Successfully merging a pull request may close this issue.

2 participants