diff --git a/packages/tabs/index.tsx b/packages/tabs/index.tsx index 894bfca0..e9acce86 100644 --- a/packages/tabs/index.tsx +++ b/packages/tabs/index.tsx @@ -1,5 +1,5 @@ import cn from 'classnames' -import React, { cloneElement, FC, MouseEventHandler } from 'react' +import React, { cloneElement, FC } from 'react' import './style.css' import { Report } from '../utils' @@ -37,7 +37,7 @@ const TabsItem: FC = props => { export interface TabsProps { className?: string active?: string - onClick?: MouseEventHandler + onClick?: (value?: string) => void } const Tabs: FC & {