diff --git a/components/input-number/index.en-US.md b/components/input-number/index.en-US.md index 1d1721e291..390edd27d2 100644 --- a/components/input-number/index.en-US.md +++ b/components/input-number/index.en-US.md @@ -19,7 +19,7 @@ When a numeric value needs to be provided. | 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 | | 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 | | size | width of input box | string | - | -| 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): string | - | diff --git a/components/input-number/index.zh-CN.md b/components/input-number/index.zh-CN.md index cfc5061b67..32641d921c 100644 --- a/components/input-number/index.zh-CN.md +++ b/components/input-number/index.zh-CN.md @@ -22,7 +22,7 @@ title: InputNumber | value | 当前值 | number | | | step | 每次改变步数,可以为小数 | number\|string | 1 | | defaultValue | 初始值 | number | | -| onChange | 变化回调 | Function(value: number | string) | | +| onChange | 变化回调 | Function(value: number \| string) | | | disabled | 禁用 | boolean | false | | size | 输入框大小 | string | 无 | -| formatter | 指定输入框展示值的格式 | function(value: number | string): string | - | +| formatter | 指定输入框展示值的格式 | function(value: number \| string): string | - |