fix(Tabs): incorrect active tab when active prop is zero (#8087)

This commit is contained in:
neverland 2021-02-05 10:40:46 +08:00 committed by GitHub
parent eb96e829f4
commit 4db9449f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ export default createComponent({
}, },
children() { children() {
this.setCurrentIndexByName(this.active || this.currentName); this.setCurrentIndexByName(this.active);
this.setLine(); this.setLine();
this.$nextTick(() => { this.$nextTick(() => {