From bc93ccc50f1f6c648609c57827c86fc153cc71e8 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 27 Jan 2024 09:42:40 +0800 Subject: [PATCH] =?UTF-8?q?Tabs=20=E7=BB=84=E4=BB=B6=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Tabs.js b/components/Tabs.js index b7f4590b..ef951228 100644 --- a/components/Tabs.js +++ b/components/Tabs.js @@ -33,7 +33,7 @@ const Tabs = ({ className, children }) => { {validChildren.map((item, index) => (
+ className={`${currentTab === index ? 'opacity-100 static h-auto' : 'opacity-0 absolute h-0 pointer-events-none overflow-hidden'}`}> {item}
))}