mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 20:55:46 +08:00
fix: override types
This commit is contained in:
@@ -28,7 +28,8 @@ const defaultProps = {
|
||||
className: '',
|
||||
}
|
||||
|
||||
export type SelectProps = Props & typeof defaultProps & React.HTMLAttributes<any>
|
||||
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>
|
||||
export type SelectProps = Props & typeof defaultProps & NativeAttrs
|
||||
|
||||
const Select: React.FC<React.PropsWithChildren<SelectProps>> = ({
|
||||
children, size, disabled, initialValue: init, placeholder,
|
||||
|
||||
Reference in New Issue
Block a user