mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
26 lines
865 B
Plaintext
26 lines
865 B
Plaintext
<view class="van-stepper custom-class">
|
|
<view
|
|
class="minus-class van-stepper__minus {{ minusDisabled ? 'van-stepper__minus--disabled' : '' }}"
|
|
hover-class="van-stepper__minus--hover"
|
|
hover-stay-time="70"
|
|
bind:tap="onMinus"
|
|
/>
|
|
<view class="input-class van-stepper__input-wrapper {{ disabled || disableInput ? 'van-stepper__input-wrapper--disabled' : '' }}" bindtap="onFocus">
|
|
<input
|
|
type="{{ integer ? 'number' : 'digit' }}"
|
|
class="van-stepper__input"
|
|
value="{{ value }}"
|
|
focus="{{ focus }}"
|
|
disabled="{{ disabled || disableInput }}"
|
|
bindinput="onInput"
|
|
bind:blur="onBlur"
|
|
/>
|
|
</view>
|
|
<view
|
|
class="plus-class van-stepper__plus {{ plusDisabled ? 'van-stepper__plus--disabled' : '' }}"
|
|
hover-class="van-stepper__plus--hover"
|
|
hover-stay-time="70"
|
|
bind:tap="onPlus"
|
|
/>
|
|
</view>
|