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] tabs 在@vue/compat模式下,点击无法进行切换操作 #13257

Open
gapkukb opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@gapkukb
Copy link

gapkukb commented Dec 10, 2024

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-8fuq5o

Vant 版本

4.8.1

描述一下你遇到的问题。

使用@vue/compat从vue2升级vue3,大部分组件工作良好,但是Tabs组件无法正常工作,点击无响应.

重现步骤

1.在rsbuild.config.ts中开启 source.alias.vue:'@vue/compat'
2.点击tab
3.无响应
4.通过vue-devtools发现tab组件中的click事件是"Not declared"

设备/浏览器

任意设备

@jelonJelon
Copy link

jelonJelon commented Jan 2, 2025

configureCompat({
INSTANCE_LISTENERS: false,
INSTANCE_ATTRS_CLASS_STYLE: false,
});

需要在组件中使用该方式兼容vue/compat

不知是否有计划兼容该版本

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

2 participants