From ed69b9a8859ce15ab7e7d149523daf83033b2387 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 2 Mar 2022 13:11:24 +0800 Subject: [PATCH] =?UTF-8?q?Tabs=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Tabs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/Tabs.js b/components/Tabs.js index 67c67e52..56a44478 100644 --- a/components/Tabs.js +++ b/components/Tabs.js @@ -43,9 +43,8 @@ const Tabs = ({ className, children }) => {
{children.map((item, index) => { - return
- {item} + return
+ {currentTab === index && item}
})}