diff --git a/components/input-number/index.tsx b/components/input-number/index.tsx index 679cc515bf..358aaf569f 100644 --- a/components/input-number/index.tsx +++ b/components/input-number/index.tsx @@ -21,7 +21,7 @@ export interface InputNumberProps disabled?: boolean; size?: 'large' | 'small' | 'default'; formatter?: (value: number | string | undefined) => string; - parser?: (displayValue: string | undefined) => number; + parser?: (displayValue: string | undefined) => number | string; decimalSeparator?: string; placeholder?: string; style?: React.CSSProperties;