From f321e202f44e1e3fd37cb2819a724aaf8dd66b00 Mon Sep 17 00:00:00 2001 From: HadesZ Date: Fri, 18 Dec 2020 14:56:03 +0800 Subject: [PATCH] =?UTF-8?q?[fix]:=E4=BF=AE=E5=A4=8Dtabs=E5=9C=A8=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E7=9A=84=E6=97=B6=E5=80=99active=E7=9A=84?= =?UTF-8?q?=E5=80=BC=E8=A2=ABtabs=E7=9A=84=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E7=BB=99=E8=A6=86=E7=9B=96=E6=8E=89=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3874)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/tabs/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tabs/index.ts b/packages/tabs/index.ts index 072a48d6..3824e2fb 100644 --- a/packages/tabs/index.ts +++ b/packages/tabs/index.ts @@ -131,7 +131,7 @@ VantComponent({ this.children.length > data.swipeThreshold || !data.ellipsis, }); - this.setCurrentIndexByName(this.getCurrentName() || data.active); + this.setCurrentIndexByName(data.active || this.getCurrentName()); }, trigger(eventName: string, child?: TrivialInstance) {