From ac661b23d5afb9093f573e694a0814f6ba9ba1cd Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 26 Jan 2024 15:27:29 +0800 Subject: [PATCH] =?UTF-8?q?Tabs=E7=BB=84=E4=BB=B6=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E5=87=BA=E7=8E=B0=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E7=9A=84=E5=8F=AF=E7=82=B9=E5=87=BB=E5=AF=B9=E8=B1=A1?= 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 37766c24..b7f4590b 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'}`}> {item}
))}