mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
Merge pull request #6224 from ant-design/feat-input-number-precision
support precision of InputNumber
This commit is contained in:
commit
61e680875c
@ -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