docs(input-number): optimize description

This commit is contained in:
07akioni 2021-06-11 22:01:51 +08:00
parent b0294bab0d
commit c780a28b55
3 changed files with 11 additions and 7 deletions

View File

@ -19,7 +19,7 @@ show-button
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| bordered | `boolean` | `true` | Whether to show border. |
| bordered | `boolean` | `true` | Whether to show the border. |
| default-value | `number \| null` | `null` | Default value in uncontrolled mode. |
| disabled | `boolean` | `false` | Whether to disable the input. |
| max | `number` | `undefined` | The max value. |
@ -28,8 +28,8 @@ show-button
| show-button | `boolean` | `true` | Whether to show buttons. |
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | The size of input box. |
| step | `number` | `1` | The number to which the current value is increased or decreased. It can be an integer or decimal. |
| validator | `(value) => boolean` | `undefined` | Set up custom validation. |
| validator | `(value) => boolean` | `undefined` | Setup custom validation. |
| value | `number` | `undefined` | Value in controlled mode. |
| on-blur | `(event: FocusEvent) => void` | `undefined` | Callback when remove focus. |
| on-focus | `(event: FocusEvent) => void` | `undefined` | Callback when get focus. |
| on-update:value | `(value: number) => void` | `undefined` | Callback when component value changes. |
| on-blur | `(event: FocusEvent) => void` | `undefined` | Callback when blur. |
| on-focus | `(event: FocusEvent) => void` | `undefined` | Callback when focused. |
| on-update:value | `(value: number) => void` | `undefined` | Callback when the component's value changes. |

View File

@ -1,4 +1,6 @@
# Show Button
# Hide Button
Use `show-button` prop to control whether to show buttons.
```html
<n-space align="center">

View File

@ -1,4 +1,6 @@
# 按钮设置
# 隐藏按钮
使用 `show-button` 属性来控制是否展示按钮。
```html
<n-space align="center">