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:
@@ -29,7 +29,8 @@ const defaultProps = {
|
||||
className: '',
|
||||
}
|
||||
|
||||
export type TextareaProps = Props & typeof defaultProps & React.TextareaHTMLAttributes<any>
|
||||
type NativeAttrs = Omit<React.TextareaHTMLAttributes<any>, keyof Props>
|
||||
export type TextareaProps = Props & typeof defaultProps & NativeAttrs
|
||||
|
||||
const Textarea: React.FC<React.PropsWithChildren<TextareaProps>> = ({
|
||||
width, status, minHeight, disabled, readOnly, onFocus, onBlur,
|
||||
|
||||
Reference in New Issue
Block a user