管灌系统农户端微信小程序(嘉峪关应用)
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
45
46
47
48
49
50
51
<wxs src="../common/utils.wxs" module="_" />
 
<scroll-view
  style="{{_._style([style, customStyle])}}"
  class="{{classPrefix}} class {{prefix}}-class"
  scroll-top="{{scrollTop}}"
  scroll-y
  enable-back-to-top="{{enableBackToTop}}"
  enable-passive="{{enablePassive}}"
  lower-threshold="{{lowerThreshold}}"
  upper-threshold="{{upperThreshold}}"
  scroll-into-view="{{scrollIntoView}}"
  show-scrollbar="{{showScrollbar}}"
  enhanced
  scroll-with-animation
  bounces="{{false}}"
  bind:touchstart="onTouchStart"
  bind:touchmove="onTouchMove"
  bind:touchend="onTouchEnd"
  bind:scroll="onScroll"
  bindscrolltoupper="onScrollToTop"
  bindscrolltolower="onScrollToBottom"
  throttle="{{false}}"
>
  <view
    class="{{classPrefix}}__track {{classPrefix + '__track--' + (loosing ? 'loosing' : '')}}"
    style="{{barHeight > 0 ? 'transform: translate3d(0, ' + barHeight + 'px, 0);' : ''}}"
  >
    <view class="{{classPrefix}}__tips" style="height: {{computedLoadingBarHeight}}px" aria-live="polite">
      <t-loading
        wx:if="{{refreshStatus === 2}}"
        delay="{{loadingProps.delay || 0}}"
        duration="{{loadingProps.duration || 800}}"
        indicator="{{loadingProps.indicator || true}}"
        layout="{{loadingProps.layout || 'horizontal'}}"
        loading="{{loadingProps.loading || true}}"
        pause="{{loadingProps.pause || false}}"
        progress="{{loadingProps.progress || 0}}"
        reverse="{{loadingProps.reverse || false}}"
        size="{{loadingProps.size || '50rpx'}}"
        text="{{loadingProps.text || loadingTexts[refreshStatus]}}"
        theme="{{loadingProps.theme || 'circular'}}"
        t-class-indicator="{{prefix}}-class-indicator"
      />
      <view wx:elif="{{refreshStatus >= 0}}" class="{{classPrefix}}__text {{prefix}}-class-text"
        >{{loadingTexts[refreshStatus]}}</view
      >
    </view>
    <slot />
  </view>
</scroll-view>