12345678910111213141516171819202122 |
- <view class="l-class container-count">
- <view class="symbol {{result<=min|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}"
- catchtap="{{result<=min|| disabled?'doNothing':'reduceTap'}}"
- data-type="overflow_min"
- hover-class="{{isHover?'count-hover':''}}">
- <view class="l-icon l-icon-reduce" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
- </view>
- <input wx:if="{{focus}}"
- class="l-count-class count"
- disabled="{{disabled}}"
- type="number"
- focus="{{focus}}"
- value="{{result}}"
- bindblur="onBlur"></input>
- <view wx:else class="l-count-class count" bindtap="onCount">{{result}}</view>
- <view class="symbol {{result>=max|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}"
- catchtap="{{result>=max|| disabled?'doNothing':'addTap'}}"
- data-type="overflow_max"
- hover-class="{{isHover?'count-hover':''}}">
- <view class="l-icon l-icon-add" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
- </view>
- </view>
|