合伙人运营小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pull-down-refresh.wxml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <wxs src="../common/utils.wxs" module="_" />
  2. <scroll-view
  3. style="{{_._style([style, customStyle])}}"
  4. class="{{classPrefix}} class {{prefix}}-class"
  5. type="list"
  6. scroll-top="{{scrollTop}}"
  7. scroll-y
  8. enable-back-to-top="{{enableBackToTop}}"
  9. enable-passive="{{enablePassive}}"
  10. lower-threshold="{{lowerThreshold}}"
  11. upper-threshold="{{upperThreshold}}"
  12. scroll-into-view="{{scrollIntoView}}"
  13. show-scrollbar="{{showScrollbar}}"
  14. enhanced
  15. scroll-with-animation
  16. bounces="{{false}}"
  17. bind:touchstart="onTouchStart"
  18. bind:touchmove="onTouchMove"
  19. bind:touchend="onTouchEnd"
  20. bind:scroll="onScroll"
  21. binddragstart="onDragStart"
  22. binddragging="onDragging"
  23. binddragend="onDragEnd"
  24. bindscrolltoupper="onScrollToTop"
  25. bindscrolltolower="onScrollToBottom"
  26. throttle="{{false}}"
  27. >
  28. <slot name="header" />
  29. <view
  30. class="{{classPrefix}}__track {{classPrefix + '__track--' + (loosing ? 'loosing' : '')}}"
  31. style="{{barHeight > 0 ? 'transform: translate3d(0, ' + barHeight + 'px, 0);' : ''}}"
  32. >
  33. <view class="{{classPrefix}}__tips" style="height: {{computedLoadingBarHeight}}px" aria-live="polite">
  34. <t-loading
  35. wx:if="{{refreshStatus === 2}}"
  36. delay="{{loadingProps.delay || 0}}"
  37. duration="{{loadingProps.duration || 800}}"
  38. indicator="{{loadingProps.indicator || true}}"
  39. layout="{{loadingProps.layout || 'horizontal'}}"
  40. loading="{{loadingProps.loading || true}}"
  41. pause="{{loadingProps.pause || false}}"
  42. progress="{{loadingProps.progress || 0}}"
  43. reverse="{{loadingProps.reverse || false}}"
  44. size="{{loadingProps.size || '50rpx'}}"
  45. text="{{loadingProps.text || loadingTexts[refreshStatus]}}"
  46. theme="{{loadingProps.theme || 'circular'}}"
  47. t-class-indicator="{{prefix}}-class-indicator"
  48. />
  49. <view wx:elif="{{refreshStatus >= 0}}" class="{{classPrefix}}__text {{prefix}}-class-text"
  50. >{{loadingTexts[refreshStatus]}}</view
  51. >
  52. </view>
  53. <slot />
  54. </view>
  55. </scroll-view>