diff --git a/components/input-number/index.en-US.md b/components/input-number/index.en-US.md index fc13a9bcb5..a62563137b 100644 --- a/components/input-number/index.en-US.md +++ b/components/input-number/index.en-US.md @@ -20,7 +20,7 @@ When a numeric value needs to be provided. | decimalSeparator | Decimal separator | string | - | - | | defaultValue | The initial value | number | - | - | | disabled | If disable the input | boolean | false | - | -| formatter | Specifies the format of the value presented | function(value: number \| string): string | - | - | +| formatter | Specifies the format of the value presented | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 | | keyboard | If enable keyboard behavior | boolean | true | 4.12.0 | | max | The max value | number | [Number.MAX_SAFE_INTEGER](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER) | - | | min | The min value | number | [Number.MIN_SAFE_INTEGER](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER) | - | diff --git a/components/input-number/index.zh-CN.md b/components/input-number/index.zh-CN.md index ef5266e4e3..0e6e122d31 100644 --- a/components/input-number/index.zh-CN.md +++ b/components/input-number/index.zh-CN.md @@ -23,7 +23,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/XOS8qZ0kU/InputNumber.svg | decimalSeparator | 小数点 | string | - | - | | defaultValue | 初始值 | number | - | - | | disabled | 禁用 | boolean | false | - | -| formatter | 指定输入框展示值的格式 | function(value: number \| string): string | - | - | +| formatter | 指定输入框展示值的格式 | function(value: number \| string, info: { userTyping: boolean, input: string }): string | - | info: 4.17.0 | | keyboard | 是否启用键盘快捷行为 | boolean | true | 4.12.0 | | max | 最大值 | number | [Number.MAX_SAFE_INTEGER](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER) | - | | min | 最小值 | number | [Number.MIN_SAFE_INTEGER](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER) | - | diff --git a/package.json b/package.json index d0617de808..c46ae67079 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "rc-dropdown": "~3.2.0", "rc-field-form": "~1.21.0-2", "rc-image": "~5.2.4", - "rc-input-number": "~7.1.0", + "rc-input-number": "~7.2.0", "rc-mentions": "~1.6.1", "rc-menu": "~9.0.9", "rc-motion": "^2.4.4",