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组件下拉框空状态在使用a-option时无法二次回显 #2023

Closed
liushun-ing opened this issue Jan 5, 2023 · 5 comments
Closed
Assignees
Labels
🐛 Bug Something isn't working

Comments

@liushun-ing
Copy link

企业微信截图_16728198659279

自行遍历a-option,初始化时有options数据,之后点击xxx按钮,清空data数组之后,空状态无法显示,只显示如下的一个细条

2222

但是换成options属性传入a-select组件,清空data之后,能正确显示空状态

4444444444

企业微信截图_16728209436090

@flsion
Copy link
Member

flsion commented Jan 6, 2023

@liushun-ing 你好,请提供一个能够复现的地址看一下。可以从官网 DEMO 快速打开 codesandbox

@flsion flsion added the 📄 Need more info Need more info label Jan 6, 2023
@flsion flsion self-assigned this Jan 6, 2023
@liushun-ing
Copy link
Author

@liushun-ing 你好,请提供一个能够复现的地址看一下。可以从官网 DEMO 快速打开 codesandbox

https://codesandbox.io/s/vibrant-james-d7ldei?file=/src/App.vue
两种写法,点击清除后,一个有空状态一个没有

@Zz-ZzzZ
Copy link
Contributor

Zz-ZzzZ commented Jan 18, 2023

很奇怪,我把codesandbox的代码复制到demo中并未出现这个情况,而codesandbox确实出现了
image

@SunYuanOnly
Copy link

@oljc
Copy link
Member

oljc commented Sep 11, 2024

fix #2265

@oljc oljc closed this as completed Sep 11, 2024
@oljc oljc added 🐛 Bug Something isn't working and removed 📄 Need more info Need more info labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants