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

[Bug Report] picker切换的时候,如果有子元素的时候,子元素都是从0开始的 #13365

Open
JerryWu1234 opened this issue Feb 26, 2025 · 3 comments · May be fixed by #13366
Open

Comments

@JerryWu1234
Copy link

JerryWu1234 commented Feb 26, 2025

重现链接

https://stackblitz.com/edit/vitejs-vite-ygkxkux3?file=src%2Fmain.js,src%2Fcomponents%2FHelloWorld.vue,src%2FApp.vue&terminal=dev

Vant 版本

最新的

描述一下你遇到的问题。

我提供了最小的demo

重现步骤

我提供了最小的demo
点击picker元素中的第二个item,然后再点回到第一个,这个chlidren的数据展示就会是最后一个

设备/浏览器

No response

@inottn
Copy link
Collaborator

inottn commented Feb 26, 2025

因为它们的 value 是一样。

@JerryWu1234
Copy link
Author

JerryWu1234 commented Feb 26, 2025

因为它们的 value 是一样。

我在尝试修复他了。value是一样,但是一个参数改变的时候,第二个参数不应该还是一样的。

@JerryWu1234
Copy link
Author

@inottn
Please help to review thanks in advanced

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