fix(Tabs): should scroll to current content when mounted (#7411)

This commit is contained in:
neverland 2020-10-26 20:47:43 +08:00 committed by GitHub
parent f64986785d
commit f504245074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,6 +189,7 @@ export default createComponent({
this.inited = true; this.inited = true;
this.tabHeight = getVisibleHeight(this.$refs.wrap); this.tabHeight = getVisibleHeight(this.$refs.wrap);
this.scrollIntoView(true); this.scrollIntoView(true);
this.scrollToCurrentContent(true);
}); });
}, },