管灌系统农户端微信小程序(嘉峪关应用)
zuoxiao
2024-02-26 3f7ec892d68f71e996489d14d9918dc332281b1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<wxs src="../common/utils.wxs" module="_" />
 
<view
  style="{{_._style([style, customStyle])}}"
  class="{{classPrefix}} {{classPrefix}}--{{size}} class {{prefix}}-class"
>
  <view
    class="{{classPrefix}}__minus {{classPrefix}}__minus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disableMinus || currentValue <= min ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-minus"
    catchtap="minusValue"
    aria-label="{{'减少' + step}}"
    aria-role="button"
    aria-disabled="{{disabled || disableMinus || currentValue <= min}}"
  >
    <t-icon name="remove" class="{{classPrefix}}__minus-icon" />
  </view>
  <view class="{{classPrefix}}__input--{{theme}} {{ disabled ? classPrefix + '--' + theme + '-disabled': ''}}">
    <input
      style="{{inputWidth? 'width:' + inputWidth + 'px;': ''}}"
      class="{{classPrefix}}__input {{classPrefix}}__input--{{size}} {{prefix}}-class-input"
      disabled="{{ disabled || disableInput }}"
      type="number"
      value="{{ currentValue }}"
      catchinput="handleInput"
      catchfocus="handleFocus"
      catchblur="handleBlur"
    />
  </view>
  <view
    class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}}  {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus"
    catchtap="plusValue"
    aria-label="{{'增加' + step}}"
    aria-role="button"
    aria-disabled="{{disabled || disablePlus|| currentValue >= max}}"
  >
    <t-icon name="add" class="{{classPrefix}}__plus-icon" />
  </view>
</view>