mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +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 |
|
| max | max vale | number | Infinity |
|
||||||
| value | current value | number | |
|
| 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 |
|
| 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 | |
|
| defaultValue | initial value | number | |
|
||||||
| onChange | The callback triggered when the value is changed. | function(value: number \| string) | |
|
| onChange | The callback triggered when the value is changed. | function(value: number \| string) | |
|
||||||
| disabled | disable the input | boolean | false |
|
| disabled | disable the input | boolean | false |
|
||||||
|
@ -21,6 +21,7 @@ title: InputNumber
|
|||||||
| max | 最大值 | number | Infinity |
|
| max | 最大值 | number | Infinity |
|
||||||
| value | 当前值 | number | |
|
| value | 当前值 | number | |
|
||||||
| step | 每次改变步数,可以为小数 | number\|string | 1 |
|
| step | 每次改变步数,可以为小数 | number\|string | 1 |
|
||||||
|
| precision | 数值精度 | number | - |
|
||||||
| defaultValue | 初始值 | number | |
|
| defaultValue | 初始值 | number | |
|
||||||
| onChange | 变化回调 | Function(value: number \| string) | |
|
| onChange | 变化回调 | Function(value: number \| string) | |
|
||||||
| disabled | 禁用 | boolean | false |
|
| disabled | 禁用 | boolean | false |
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
"rc-dropdown": "~1.4.8",
|
"rc-dropdown": "~1.4.8",
|
||||||
"rc-editor-mention": "~0.6.11",
|
"rc-editor-mention": "~0.6.11",
|
||||||
"rc-form": "~1.3.0",
|
"rc-form": "~1.3.0",
|
||||||
"rc-input-number": "~3.4.4",
|
"rc-input-number": "~3.5.0",
|
||||||
"rc-menu": "~5.0.9",
|
"rc-menu": "~5.0.9",
|
||||||
"rc-notification": "~1.4.0",
|
"rc-notification": "~1.4.0",
|
||||||
"rc-pagination": "~1.8.7",
|
"rc-pagination": "~1.8.7",
|
||||||
|
Loading…
Reference in New Issue
Block a user