12345678910111213141516171819 |
- <!--myComponents/scrollView/scrollView.wxml-->
- <scroll-view type="list" scroll-y="true"
- class="scroll-view-class"
- refresher-enabled="{{true}}"
- refresher-threshold="{{threshold}}"
- refresher-default-style="white"
- refresher-background="rgb(211, 234, 248)"
- refresher-triggered="{{triggered}}"
- bindrefresherrefresh="onRefresh"
- bindscrolltolower="loadMore"
- style="{{customStyle}}">
- <slot></slot>
- <view class="text" wx:if="{{hasMore && load}}">
- <image class="img" src="/static/image/loading.gif" mode="aspectFit"/>
- 加载中...
- </view>
- <view class="text" wx:elif="{{(!hasMore && load) || show}}">没有更多了</view>
- </scroll-view>
-
|