管灌系统农户端微信小程序(嘉峪关应用)
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
<wxs src="../common/utils.wxs" module="_" />
 
<view style="{{_._style([style, customStyle])}}" class="{{classPrefix}} class {{prefix}}-class">
  <view
    class="{{classPrefix}}__sidebar {{prefix}}-class-sidebar"
    id="id-{{classPrefix}}__bar"
    catch:touchmove="onTouchMove"
    catch:touchcancel="onTouchCancel"
    catch:touchend="onTouchEnd"
  >
    <view
      class="{{_.cls(classPrefix + '__sidebar-item', [['active', activeAnchor === item]])}} {{prefix}}-class-sidebar-item"
      wx:for="{{ _indexList }}"
      wx:key="index"
      bind:tap="onClick"
      data-index="{{index}}"
    >
      <view aria-role="button" aria-label="{{ activeAnchor === item ? '已选中' + item : ''}}"> {{ item }} </view>
      <view class="{{classPrefix}}__sidebar-tips" wx:if="{{ showTips && activeAnchor === item }}">
        {{ activeAnchor }}
      </view>
    </view>
  </view>
  <slot />
</view>