mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-23 11:59:34 +08:00
docs(components): [input-number] HTML tag issue (#7864)
This commit is contained in:
parent
ebfe50c5f6
commit
15c3aa4fb1
@ -81,22 +81,22 @@ input-number/controlled
|
||||
|
||||
## Attributes
|
||||
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
| --------------------------------------------- | ------------------------------------------------ | ---------------------- | --------------- | ----------- |
|
||||
| model-value / v-model | binding value | number / undefined | — | — |
|
||||
| min | the minimum allowed value | number | — | `-Infinity` |
|
||||
| max | the maximum allowed value | number | — | `Infinity` |
|
||||
| step | incremental step | number | — | 1 |
|
||||
| step-strictly | whether input value can only be multiple of step | boolean | — | false |
|
||||
| precision | precision of input value | number | — | — |
|
||||
| size | size of the component | string | large/small | default |
|
||||
| disabled | whether the component is disabled | boolean | — | false |
|
||||
| controls | whether to enable the control buttons | boolean | — | true |
|
||||
| controls-position | position of the control buttons | string | right | - |
|
||||
| name | same as `name` in native input | string | — | — |
|
||||
| label | label text | string | — | — |
|
||||
| placeholder | placeholder in input | string | - | - |
|
||||
| value-on-clear <VersionTag version="2.2.1" /> | value should be set when input box is cleared | string / number / null | min/max | - |
|
||||
| Attribute | Description | Type | Accepted Values | Default |
|
||||
| ----------------------------- | ------------------------------------------------ | ---------------------- | --------------- | ----------- |
|
||||
| model-value / v-model | binding value | number / undefined | — | — |
|
||||
| min | the minimum allowed value | number | — | `-Infinity` |
|
||||
| max | the maximum allowed value | number | — | `Infinity` |
|
||||
| step | incremental step | number | — | 1 |
|
||||
| step-strictly | whether input value can only be multiple of step | boolean | — | false |
|
||||
| precision | precision of input value | number | — | — |
|
||||
| size | size of the component | string | large/small | default |
|
||||
| disabled | whether the component is disabled | boolean | — | false |
|
||||
| controls | whether to enable the control buttons | boolean | — | true |
|
||||
| controls-position | position of the control buttons | string | right | - |
|
||||
| name | same as `name` in native input | string | — | — |
|
||||
| label | label text | string | — | — |
|
||||
| placeholder | placeholder in input | string | - | - |
|
||||
| value-on-clear **(\> 2.2.0)** | value should be set when input box is cleared | string / number / null | min/max | - |
|
||||
|
||||
## Events
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user