Browse Source

🐛 Fix Input parser type

close #15226
pull/16797/head
afc163 6 years ago
parent
commit
35e235923e
No known key found for this signature in database GPG Key ID: 5F00908D72002306
  1. 2
      components/input-number/index.tsx

2
components/input-number/index.tsx

@ -21,7 +21,7 @@ export interface InputNumberProps
disabled?: boolean; disabled?: boolean;
size?: 'large' | 'small' | 'default'; size?: 'large' | 'small' | 'default';
formatter?: (value: number | string | undefined) => string; formatter?: (value: number | string | undefined) => string;
parser?: (displayValue: string | undefined) => number; parser?: (displayValue: string | undefined) => number | string;
decimalSeparator?: string; decimalSeparator?: string;
placeholder?: string; placeholder?: string;
style?: React.CSSProperties; style?: React.CSSProperties;

Loading…
Cancel
Save