管灌系统农户端微信小程序(嘉峪关应用)
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
38
39
40
41
42
43
44
<wxs src="../common/utils.wxs" module="_" />
 
<t-popup
  wx:if="{{!destroyOnClose || visible}}"
  style="{{_._style([style, customStyle])}}"
  class="class"
  bind:visible-change="visibleChange"
  visible="{{visible}}"
  zIndex="{{zIndex}}"
  placement="{{placement == 'right' ? 'right' : 'left'}}"
  showOverlay="{{showOverlay}}"
  closeOnOverlayClick="{{closeOnOverlayClick}}"
>
  <view class="{{classPrefix}}">
    <slot name="title" />
    <view wx:if="{{title}}" class="{{classPrefix}}__title">{{title}}</view>
    <scroll-view class="{{classPrefix}}__sidebar" scroll-y>
      <view
        class="{{classPrefix}}__sidebar-item"
        hover-class="{{classPrefix}}--hover"
        hover-stop-propagation="{{false}}"
        hover-start-time="{{0}}"
        hover-stay-time="{{100}}"
        wx:for="{{items}}"
        wx:item="item"
        wx:key="index"
        data-item="{{item}}"
        data-index="{{index}}"
        bindtap="itemClick"
        aria-role="{{ ariaRole || 'button' }}"
        aria-label="{{item.title}}"
      >
        <view aria-hidden="{{true}}" wx:if="{{item.icon}}" class="{{classPrefix}}__sidebar-item-icon">
          <t-icon name="{{item.icon}}" />
        </view>
        <view class="{{classPrefix}}__sidebar-item-title"> {{item.title}} </view>
      </view>
    </scroll-view>
    <view class="{{classPrefix}}__footer">
      <slot />
      <slot name="footer" />
    </view>
  </view>
</t-popup>