Stepper
Install
Usage
Basic Usage
Step
Range
Integer
Disabled
Disable Input
Decimal Length
Custom Size
Async Change
Round Theme
API
Props
| Attribute |
Description |
Type |
Default |
| v-model |
Current value |
number | string |
- |
| min |
Min value |
number | string |
1 |
| max |
Max value |
number | string |
- |
| default-value |
Default value, valid when v-model is empty |
number | string |
1 |
| step |
Value change step |
number | string |
1 |
| name |
Stepper name |
number | string |
- |
| input-width |
Input width |
number | string |
32px |
| button-size |
Button size |
number | string |
28px |
| decimal-length |
Decimal length |
number | string |
- |
theme v2.8.2 |
Theme, can be set to round |
string |
- |
placeholder v2.8.6 |
Input placeholder |
string |
- |
| integer |
Whether to allow only integers |
boolean |
false |
| disabled |
Whether to disable value change |
boolean |
false |
| disable-plus |
Whether to disable plus button |
boolean |
false |
| disable-minus |
Whether to disable minus button |
boolean |
false |
| disable-input |
Whether to disable input |
boolean |
false |
| async-change |
Whether to enable async change |
boolean |
false |
| show-plus |
Whether to show plus button |
boolean |
true |
| show-minus |
Whether to show minus button |
boolean |
true |
long-press v2.4.3 |
Whether to allow long press |
boolean |
true |
allow-empty v2.9.1 |
Whether to allow the input to be empty |
boolean |
false |
Events
| Event |
Description |
Arguments |
| change |
Triggered when value change |
value: string, detail: { name: string } |
| overlimit |
Triggered when click disabled button |
- |
| plus |
Triggered when click plus button |
- |
| minus |
Triggered when click minus button |
- |
| focus |
Triggered when input focused |
event: Event |
| blur |
Triggered when input blured |
event: Event |