diff --git a/src/tabs/index.js b/src/tabs/index.js index 416363ab9..578194402 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -110,8 +110,11 @@ export default createComponent({ children() { this.setCurrentIndexByName(this.currentName || this.active); - this.scrollIntoView(); this.setLine(); + + this.$nextTick(() => { + this.scrollIntoView(true); + }); }, currentIndex() {