From bfa00170ccb8da68741e9b62f62daeb993b8d5e0 Mon Sep 17 00:00:00 2001 From: oaktian Date: Thu, 30 Jun 2022 14:53:02 +0800 Subject: [PATCH] fix: add boolean type to autosize prop --- components/input/inputProps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/input/inputProps.ts b/components/input/inputProps.ts index 19933f45cd..01f9a75099 100644 --- a/components/input/inputProps.ts +++ b/components/input/inputProps.ts @@ -93,8 +93,8 @@ export interface ShowCountProps { const textAreaProps = () => ({ ...omit(inputProps(), ['prefix', 'addonBefore', 'addonAfter', 'suffix']), rows: Number, - autosize: { type: [Boolean, Object] as PropType, default: undefined }, - autoSize: { type: [Boolean, Object] as PropType, default: undefined }, + autosize: { type: [Boolean, Object] as PropType, default: undefined }, + autoSize: { type: [Boolean, Object] as PropType, default: undefined }, onResize: { type: Function as PropType<(size: { width: number; height: number }) => void> }, onCompositionstart: Function as PropType, onCompositionend: Function as PropType,