Skip to content

Commit 7999a2f

Browse files
tys1128oak-vesync
andauthored
fix: add boolean type to autosize prop (#5766)
Co-authored-by: oaktian <[email protected]>
1 parent a2690a2 commit 7999a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/input/inputProps.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export interface ShowCountProps {
9393
const textAreaProps = () => ({
9494
...omit(inputProps(), ['prefix', 'addonBefore', 'addonAfter', 'suffix']),
9595
rows: Number,
96-
autosize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
97-
autoSize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
96+
autosize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
97+
autoSize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
9898
onResize: { type: Function as PropType<(size: { width: number; height: number }) => void> },
9999
onCompositionstart: Function as PropType<CompositionEventHandler>,
100100
onCompositionend: Function as PropType<CompositionEventHandler>,

0 commit comments

Comments
 (0)