From ca06994d50b4d9bc50be3dd53defae9910351172 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 2 Jan 2022 10:30:50 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20Tabs=E7=BB=84=E4=BB=B6=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Tabs.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Tabs.js b/components/Tabs.js index 684a1a7b..0ce4a646 100644 --- a/components/Tabs.js +++ b/components/Tabs.js @@ -18,7 +18,7 @@ const Tabs = ({ children }) => { }) if (count === 1) { - return
+ return
{children}
} @@ -31,15 +31,15 @@ const Tabs = ({ children }) => { return (
{
-
    +
      {children.map((item, index) => { - return
    • { tabClickHandle(index) }}> + return
    • { tabClickHandle(index) }}> {item?.key}
    • })}
    {children.map((item, index) => { - return
    + return
    {item}
    })}