u-number-box.wxml 1.4 KB
<view class="u-number-box data-v-ccd1fa7a"><view wx:if="{{a}}" class="u-number-box__slot data-v-ccd1fa7a" catchtap="{{b}}" bindtouchstart="{{c}}" catchtouchend="{{d}}"><slot name="minus"/></view><view wx:elif="{{e}}" catchtap="{{g}}" bindtouchstart="{{h}}" catchtouchend="{{i}}" hover-class="u-number-box__minus--hover" hover-stay-time="150" class="{{['u-number-box__minus', 'data-v-ccd1fa7a', j && 'u-number-box__minus--disabled']}}" style="{{k}}"><u-icon wx:if="{{f}}" class="data-v-ccd1fa7a" u-i="ccd1fa7a-0" bind:__l="__l" u-p="{{f}}"></u-icon></view><block wx:if="{{$slots.input}}"><slot name="input"></slot></block><block wx:else><input disabled="{{l}}" cursor-spacing="{{m}}" class="{{[n && 'u-number-box__input--disabled', 'u-number-box__input', 'data-v-ccd1fa7a']}}" bindblur="{{o}}" bindfocus="{{p}}" bindinput="{{q}}" type="number" style="{{r}}" value="{{s}}"/></block><view wx:if="{{t}}" class="u-number-box__slot data-v-ccd1fa7a" catchtap="{{v}}" bindtouchstart="{{w}}" catchtouchend="{{x}}"><slot name="plus"/></view><view wx:elif="{{y}}" catchtap="{{A}}" bindtouchstart="{{B}}" catchtouchend="{{C}}" hover-class="u-number-box__plus--hover" hover-stay-time="150" class="{{['u-number-box__plus', 'data-v-ccd1fa7a', D && 'u-number-box__minus--disabled']}}" style="{{E}}"><u-icon wx:if="{{z}}" class="data-v-ccd1fa7a" u-i="ccd1fa7a-1" bind:__l="__l" u-p="{{z}}"></u-icon></view></view>