mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 12:45:32 +08:00
fix: override types
This commit is contained in:
@@ -16,7 +16,8 @@ const defaultProps = {
|
||||
className: '',
|
||||
}
|
||||
|
||||
export type TabsProps = Props & typeof defaultProps & React.HTMLAttributes<any>
|
||||
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>
|
||||
export type TabsProps = Props & typeof defaultProps & NativeAttrs
|
||||
|
||||
const Tabs: React.FC<React.PropsWithChildren<TabsProps>> = ({
|
||||
initialValue: userCustomInitialValue, value, children, onChange,
|
||||
|
||||
Reference in New Issue
Block a user