mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 06:31:45 +08:00
fix(Tabs): should scroll to current content when mounted (#7411)
This commit is contained in:
parent
f64986785d
commit
f504245074
@ -189,6 +189,7 @@ export default createComponent({
|
||||
this.inited = true;
|
||||
this.tabHeight = getVisibleHeight(this.$refs.wrap);
|
||||
this.scrollIntoView(true);
|
||||
this.scrollToCurrentContent(true);
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user