From 94e71d1509aa9d6f28b0f0f63d7121cb48efda0c Mon Sep 17 00:00:00 2001 From: Mondo <568197478@qq.com> Date: Wed, 13 Nov 2019 15:10:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(Tabs):=20=E4=BF=AE=E5=A4=8D=E6=BB=91?= =?UTF-8?q?=E5=8A=A8=E5=88=87=E6=8D=A2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=BF=80?= =?UTF-8?q?=E6=B4=BB=E9=80=89=E9=A1=B9=E9=94=99=E8=AF=AF=20(#2293)?= 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 23c393f1..e70d6ea4 100644 --- a/packages/tabs/index.ts +++ b/packages/tabs/index.ts @@ -327,7 +327,7 @@ VantComponent({ const child = this.children[currentIndex - 1]; this.setActive(child.getComputedName()); } else if (deltaX < 0 && currentIndex !== tabs.length - 1) { - const child = this.children[currentIndex - 1]; + const child = this.children[currentIndex + 1]; this.setActive(child.getComputedName()); } }