1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

fix(Tabs): should scroll active tab into view after resized ()

This commit is contained in:
neverland 2023-04-26 20:04:22 +08:00 committed by GitHub
parent cbaa4b0d3a
commit f10557a211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -424,7 +424,11 @@ export default defineComponent({
const resize = () => { const resize = () => {
setLine(); setLine();
nextTick(() => contentRef.value?.swipeRef.value?.resize());
nextTick(() => {
scrollIntoView(true);
contentRef.value?.swipeRef.value?.resize();
});
}; };
watch( watch(