Browse Source

docs: fix InputNumber api table

close #5251
pull/4684/merge
Wei Zhu 8 years ago
parent
commit
d4a52b14ce
  1. 4
      components/input-number/index.en-US.md
  2. 4
      components/input-number/index.zh-CN.md

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

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

Loading…
Cancel
Save