Merge pull request #6224 from ant-design/feat-input-number-precision

support precision of InputNumber
This commit is contained in:
偏右 2017-05-22 21:43:36 +08:00 committed by GitHub
commit 61e680875c
3 changed files with 3 additions and 1 deletions

View File

@ -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 |

View File

@ -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 |

View File

@ -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",