index.wxml 1.0 KB

12345678910
  1. <view class="l-class container-count">
  2. <view class="symbol {{count<=min|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}" catchtap="{{count<=min|| disabled?'doNothing':'onTapChange'}}" data-type="overflow_min" data-change-type="reduce" hover-class="{{isHover?'count-hover':''}}">
  3. <view class="l-icon l-icon-reduce" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
  4. </view>
  5. <input hidden="{{!focus}}" class="l-count-class count" disabled="{{disabled}}" type="number" focus="{{focus}}" value="{{count}}" bind:input="onInput" bindblur="onBlur"/>
  6. <view hidden="{{focus}}" class="l-count-class count" mut-bind:tap="onCount">{{count}}</view>
  7. <view class="l-symbol-class symbol {{count>=max|| disabled?'disabled l-disabled-class':'abled l-symbol-class'}}" catchtap="{{count>=max|| disabled?'doNothing':'onTapChange'}}" data-type="overflow_max" data-change-type="add" hover-class="{{isHover?'count-hover':''}}">
  8. <view class="l-icon l-icon-add" style="font-size:{{iconSize}};color:{{iconColor}}"></view>
  9. </view>
  10. </view>