mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
support precision of InputNumber, close #5998
This commit is contained in:
parent
584102d085
commit
861c5b33d1
@ -18,6 +18,7 @@ When a numeric value needs to be provided.
|
||||
| max | max vale | number | Infinity |
|
||||
| value | current value | number | |
|
||||
| step | The number to which the current value is increased or decreased. It can be an integer or decimal. | number\|string | 1 |
|
||||
| precision | precision of input value | number | - |
|
||||
| defaultValue | initial value | number | |
|
||||
| onChange | The callback triggered when the value is changed. | function(value: number \| string) | |
|
||||
| disabled | disable the input | boolean | false |
|
||||
|
@ -21,6 +21,7 @@ title: InputNumber
|
||||
| max | 最大值 | number | Infinity |
|
||||
| value | 当前值 | number | |
|
||||
| step | 每次改变步数,可以为小数 | number\|string | 1 |
|
||||
| precision | 数值精度 | number | - |
|
||||
| defaultValue | 初始值 | number | |
|
||||
| onChange | 变化回调 | Function(value: number \| string) | |
|
||||
| disabled | 禁用 | boolean | false |
|
||||
|
@ -53,7 +53,7 @@
|
||||
"rc-dropdown": "~1.4.8",
|
||||
"rc-editor-mention": "~0.6.11",
|
||||
"rc-form": "~1.3.0",
|
||||
"rc-input-number": "~3.4.4",
|
||||
"rc-input-number": "~3.5.0",
|
||||
"rc-menu": "~5.0.9",
|
||||
"rc-notification": "~1.4.0",
|
||||
"rc-pagination": "~1.8.7",
|
||||
|
Loading…
Reference in New Issue
Block a user