xzs-mysql/source/wx/xzs-student/component/iView/input-number/index.wxml

6 lines
565 B
Plaintext
Raw Normal View History

2020-06-14 16:44:45 +08:00
<view class="i-class i-input-number i-input-number-size-{{ size }}">
<view class="i-input-number-minus {{ value <= min ? 'i-input-number-disabled' : '' }}" data-disabled="{{ value <= min }}" bindtap="handleMinus">-</view>
<input class="i-input-number-text {{ min >= max ? 'i-input-number-disabled' : '' }}" type="number" value="{{ value }}" disabled="{{ min >= max }}" bindblur="handleBlur" />
<view class="i-input-number-plus {{ value >= max ? 'i-input-number-disabled' : '' }}" data-disabled="{{ value >= max }}" bindtap="handlePlus">+</view>
</view>