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

select如果没有数据的话,能把select里面自定义的内容保留么 #99

Closed
lgcxc opened this issue Dec 25, 2021 · 9 comments
Closed
Labels
💪🏻 enhancement New feature or request to be published fixed, not be published

Comments

@lgcxc
Copy link

lgcxc commented Dec 25, 2021

有数据是可以渲染自定义内容的

image

如果没有数据自定义的内容就被清空了

image

@chaishi
Copy link
Collaborator

chaishi commented Dec 25, 2021

对于用户业务自定义下拉框内容,此处应该输出插槽可以让用户完全自定义

@lgcxc
Copy link
Author

lgcxc commented Dec 29, 2021

麻烦问一下,这个需求啥时候可以支持呢?

@xiaosansiji
Copy link
Collaborator

image
ke y可以用 empty 来自定义么?

@lgcxc
Copy link
Author

lgcxc commented Dec 29, 2021

select能不能直接给一个自定义的slot,我这个是不管有没有数据,都需要显示出来的

image

@geff1991
Copy link
Contributor

不管有没有数据,都需要显示出来的话,那loading时需要展示吗?交互上有些点需要确认。
目前可以把empty slot定义成你想要一直展示的template就可以

@lgcxc
Copy link
Author

lgcxc commented Dec 29, 2021

其他的都可以不变吧

@geff1991
Copy link
Contributor

@chaishi 看下呢,这里新增类似header、footer 的 slot功能? 在弹出层的顶部和底部

@chaishi
Copy link
Collaborator

chaishi commented Dec 30, 2021

处理 PR:#137

image

@xiaosansiji
Copy link
Collaborator

已在 0.33.0 版本中修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

5 participants