From a3e96307ea09b4ebf463fdc49d57fefc3255612e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B7=B1?= Date: Fri, 26 Nov 2021 13:58:55 +0800 Subject: [PATCH] fix: type of onTabClick (#448) --- src/TabNavList/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TabNavList/index.tsx b/src/TabNavList/index.tsx index 025567ec..104de1bc 100644 --- a/src/TabNavList/index.tsx +++ b/src/TabNavList/index.tsx @@ -43,7 +43,7 @@ export interface TabNavListProps { className?: string; style?: React.CSSProperties; locale?: TabsLocale; - onTabClick: (activeKey: React.Key, e: React.MouseEvent | React.KeyboardEvent) => void; + onTabClick: (activeKey: string, e: React.MouseEvent | React.KeyboardEvent) => void; onTabScroll?: OnTabScroll; children?: (node: React.ReactElement) => React.ReactElement; }