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

vant-tab 标签页组件进行切换的时候 active值变了 但是样式没有变化 需要点击两次 #12531

Closed
LiCHUYA opened this issue Dec 26, 2023 · 2 comments

Comments

@LiCHUYA
Copy link

LiCHUYA commented Dec 26, 2023

重现链接

https://gitee.com/chen-jingsheng-123/vant-tab/blob/master/routerUtil.vue

Vant 版本

4.8.1

描述一下你遇到的问题。

vant-tab 标签页组件进行切换的时候 active值变了 但是样式没有变化 需要点击两次 不管是绑定to属性 绑定change方法等等 都是这样的

Snipaste_2023-12-26_08-32-08

QQ.20231226080725.mp4

重现步骤

1.切换

设备/浏览器

谷歌 edge

@LiCHUYA
Copy link
Author

LiCHUYA commented Dec 26, 2023

暂时是使用 tabs实例的resize方法解决

@inottn
Copy link
Collaborator

inottn commented Dec 26, 2023

https://codesandbox.io/p/sandbox/confident-grass-tr9q6t?file=%2Fsrc%2FApp.vue%3A21%2C29

试了下好像没有问题,不知道是不是你想要的效果

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

No branches or pull requests

3 participants