WIP: Add decimal separator prop (#12329)

* Add decimal separator prop

* Update API reference
This commit is contained in:
amedora 2018-09-20 17:37:54 +09:00 committed by zombieJ
parent f04c020c3e
commit eb4e6b7fd6
3 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ When a numeric value needs to be provided.
| min | min value | number | -Infinity |
| parser | Specifies the value extracted from formatter | function( string): number | - |
| precision | precision of input value | number | - |
| decilamSeparator | decimal separator | string | - |
| size | width of input box | string | - |
| step | The number to which the current value is increased or decreased. It can be an integer or decimal. | number\|string | 1 |
| value | current value | number | |

View File

@ -20,6 +20,7 @@ export interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInp
size?: 'large' | 'small' | 'default';
formatter?: (value: number | string | undefined) => string;
parser?: (displayValue: string | undefined) => number;
decimalSeparator?: string;
placeholder?: string;
style?: React.CSSProperties;
className?: string;

View File

@ -25,6 +25,7 @@ title: InputNumber
| min | 最小值 | number | -Infinity |
| parser | 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用 | function( string): number | - |
| precision | 数值精度 | number | - |
| decimalSeparator | 小数点 | string | - |
| size | 输入框大小 | string | 无 |
| step | 每次改变步数,可以为小数 | number\|string | 1 |
| value | 当前值 | number | |