yurong/unpackage/dist/dev/mp-weixin/components/lxc-count-style/lxc-count-style.wxml

1 line
1.0 KiB
Plaintext

<view class="{{['count-box',status?'count-box-light':'count-box-gray']}}"><view class="{{['count-less','count-pub','relative',myValue<=min?'light':'gray']}}"><block wx:if="{{!isDisable}}"><view data-event-opts="{{[['tap',[['less',['$event']]]],['longpress',[['longpressLess',['$event']]]],['touchend',[['handletouchend',['$event']]]]]}}" class="absolute w100 h100" catchtap="__e" bindlongpress="__e" bindtouchend="__e"></view></block>-</view><view class="{{['count-add','count-pub','relative',myValue>=max?'light':'gray']}}"><block wx:if="{{!isDisable&&!plusDisable}}"><view data-event-opts="{{[['tap',[['add',['$event']]]],['longpress',[['longpressAdd',['$event']]]],['touchend',[['handletouchend',['$event']]]]]}}" class="absolute w100 h100" style="left:0;" catchtap="__e" bindlongpress="__e" bindtouchend="__e"></view></block><block wx:else><view data-event-opts="{{[['tap',[['DisableTap',['$event']]]]]}}" class="absolute w100 h100" style="left:0;" bindtap="__e"></view></block>+</view><view class="count-input rowsc rowsm">{{myValue}}</view></view>