Input Number
Basic usage
Disabled
The disabled
attribute accepts a boolean
, and if the value is true
Max, Min
you can add min
attribute to set the minimum value and max
to set the maximum value.
Step
Allows you to define incremental steps. Add step
attribute to set the step.
Borderless
Precision
Size
Use attribute size
to set additional sizes with large
or small
.
Input Number API
Input Number Attributes
Name | Description | Type | Default | Version |
---|---|---|---|---|
value(v-model) | binding value | string | — | |
max | the maximum allowed value | number | Infinity | |
min | the minimum allowed value | number | -Infinity | |
step | incremental step | number | 1 | |
placeholder | placeholder of Input Number | string | — | |
disabled | whether Input is disabled | boolean | false | |
size | size of Input Number | large | default | small | — | |
precision | precision of input value | number | — | |
bordered | No border | boolean | false |
Input Number Events
Name | Description | Type |
---|---|---|
change | triggers when the value changes | (value: number) => void |