mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
19 lines
629 B
Plaintext
19 lines
629 B
Plaintext
<view class="van-stepper custom-class">
|
|
<view
|
|
class="minus-class van-stepper__minus {{ disabled || value <= min ? 'van-stepper__minus--disabled' : '' }}"
|
|
bind:tap="onMinus"
|
|
/>
|
|
<input
|
|
type="{{ integer ? 'number' : 'digit' }}"
|
|
class="input-class van-stepper__input {{ disabled || disableInput ? 'van-stepper__input--disabled' : '' }}"
|
|
value="{{ value }}"
|
|
disabled="{{ disabled || disableInput }}"
|
|
bindinput="onInput"
|
|
bind:blur="onBlur"
|
|
/>
|
|
<view
|
|
class="plus-class van-stepper__plus {{ disabled || value >= max ? 'van-stepper__plus--disabled' : '' }}"
|
|
bind:tap="onPlus"
|
|
/>
|
|
</view>
|