fix: add boolean type to autosize prop (#5766)
Co-authored-by: oaktian <oak.tian@vesync.com>pull/5702/merge
parent
a2690a2d45
commit
7999a2fef6
|
@ -93,8 +93,8 @@ export interface ShowCountProps {
|
||||||
const textAreaProps = () => ({
|
const textAreaProps = () => ({
|
||||||
...omit(inputProps(), ['prefix', 'addonBefore', 'addonAfter', 'suffix']),
|
...omit(inputProps(), ['prefix', 'addonBefore', 'addonAfter', 'suffix']),
|
||||||
rows: Number,
|
rows: Number,
|
||||||
autosize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
|
autosize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
|
||||||
autoSize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
|
autoSize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
|
||||||
onResize: { type: Function as PropType<(size: { width: number; height: number }) => void> },
|
onResize: { type: Function as PropType<(size: { width: number; height: number }) => void> },
|
||||||
onCompositionstart: Function as PropType<CompositionEventHandler>,
|
onCompositionstart: Function as PropType<CompositionEventHandler>,
|
||||||
onCompositionend: Function as PropType<CompositionEventHandler>,
|
onCompositionend: Function as PropType<CompositionEventHandler>,
|
||||||
|
|
Loading…
Reference in New Issue