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()); } }