[bugfix] Tab: incorrect title position when insert tab pane (#4091)

This commit is contained in:
neverland 2019-08-11 19:30:06 +08:00 committed by GitHub
parent 4d3e9a6c6c
commit 26aac6037b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,8 +110,11 @@ export default createComponent({
children() {
this.setCurrentIndexByName(this.currentName || this.active);
this.scrollIntoView();
this.setLine();
this.$nextTick(() => {
this.scrollIntoView(true);
});
},
currentIndex() {