From 4db9449f745a564e3841f90bda52267d36070371 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 5 Feb 2021 10:40:46 +0800 Subject: [PATCH] fix(Tabs): incorrect active tab when active prop is zero (#8087) --- src/tabs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabs/index.js b/src/tabs/index.js index 1db2d510b..a0d9e43b1 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -142,7 +142,7 @@ export default createComponent({ }, children() { - this.setCurrentIndexByName(this.active || this.currentName); + this.setCurrentIndexByName(this.active); this.setLine(); this.$nextTick(() => {