From 35e235923e3776569af28300e6bf5b003883709f Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 26 May 2019 13:07:27 +0800 Subject: [PATCH] :bug: Fix Input parser type close #15226 --- components/input-number/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;