From 4e2d1cb86809c777ec069ecd66d8b97a32168768 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 3 Jun 2020 15:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20bug:=20fix=20table=20typescipt?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/login/components/Login/LoginTab.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/user/login/components/Login/LoginTab.tsx b/src/pages/user/login/components/Login/LoginTab.tsx index adbed2ac..4f7ae00d 100644 --- a/src/pages/user/login/components/Login/LoginTab.tsx +++ b/src/pages/user/login/components/Login/LoginTab.tsx @@ -1,5 +1,4 @@ import React, { useEffect } from 'react'; -import { TabPaneProps } from 'antd/es/tabs'; import { Tabs } from 'antd'; import LoginContext, { LoginContextProps } from './LoginContext'; @@ -13,6 +12,8 @@ const generateId = (() => { }; })(); +type TabPaneProps = Parameters[0]; + interface LoginTabProps extends TabPaneProps { tabUtil: LoginContextProps['tabUtil']; active?: boolean;