index.wxml 1.1 KB

12345678910111213141516171819202122
  1. <view style="{{ style }}" bindtouchstart="onTouchStart" catchtouchmove="{{ refreshing || loading ? 'noop' : '' }}" capture-bind:touchmove="onTouchMove" bindtouchend="onTouchEnd">
  2. <view class="{{ classes.wrap }}">
  3. <view class="{{ classes.content }}">
  4. <view class="{{ classes.iconPulling }}">
  5. <text class="{{ classes.pIcon }}"></text>
  6. </view>
  7. <view class="{{ classes.textPulling }}">{{ pullingText }}</view>
  8. <view class="{{ classes.iconRefreshing }}">
  9. <text class="{{ classes.rIcon }}"></text>
  10. </view>
  11. <view class="{{ classes.textRefreshing }}">{{ refreshingText }}</view>
  12. </view>
  13. </view>
  14. <slot></slot>
  15. <view class="{{ classes.lWrap }}">
  16. <view class="{{ classes.lContent }}">
  17. <text wx:if="{{ !noData }}" class="{{ classes.rIcon }}"></text>
  18. <text class="{{ classes.loadingText }}" wx:if="{{ !noData && isShowLoadingText }}">{{ loadingText }}</text>
  19. <view wx:if="{{ noData }}">{{ loadNoDataText }}</view>
  20. </view>
  21. </view>
  22. </view>