Skip to content

Commit

Permalink
fix(Tab): optimize type hints (alibaba-fusion#4040)
Browse files Browse the repository at this point in the history
Co-authored-by: 煦斌 <[email protected]>
  • Loading branch information
Maarten12 and 煦斌 authored Aug 9, 2022
1 parent 80e4a8c commit e36f02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/tab/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ export interface TabProps extends HTMLAttributesWeak, CommonProps {
/**
* 展示新增按钮
*/
showAdd: boolean,
showAdd?: boolean,
/**
* 新增的事件回调
*/
onAdd: () => void,
onAdd?: () => void,
}

export default class Tab extends React.Component<TabProps, any> {
Expand Down

0 comments on commit e36f02a

Please sign in to comment.