diff --git a/components/input-number/index.tsx b/components/input-number/index.tsx index f2281cb1c..f1c4f2b96 100644 --- a/components/input-number/index.tsx +++ b/components/input-number/index.tsx @@ -29,6 +29,7 @@ const InputNumberProps = { onPressEnter: { type: Function as PropType, }, + onChange: Function as PropType<(num: number) => void>, }; const InputNumber = defineComponent({ @@ -78,14 +79,14 @@ const InputNumber = defineComponent({ const upIcon = ; const downIcon = ; - const vcInputNumberprops = { + const vcInputNumberProps = { prefixCls, upHandler: upIcon, downHandler: downIcon, ...others, class: inputNumberClass, }; - return ; + return ; }, });