Skip to content

Commit

Permalink
fix: 🐛 Tabs
Browse files Browse the repository at this point in the history
修复 onClick 的类型
  • Loading branch information
shaodahong committed Jan 24, 2019
1 parent 2893cf0 commit 8944e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tabs/index.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -37,7 +37,7 @@ const TabsItem: FC<TabsItemProps> = props => {
export interface TabsProps {
className?: string
active?: string
onClick?: MouseEventHandler<HTMLAnchorElement>
onClick?: (value?: string) => void
}

const Tabs: FC<TabsProps> & {
Expand Down

0 comments on commit 8944e66

Please sign in to comment.