20 lines
992 B
Plaintext
20 lines
992 B
Plaintext
<!-- 不显示: status === 0 -->
|
|
<view class="load-more wr-class" style="{{listIsEmpty && (status === 0 || status === 2) ? 'display: none' : '' }}" bindtap="tapHandle">
|
|
<!-- 加载中: status = 1 -->
|
|
|
|
<t-loading t-class="t-class-loading" t-class-text="load-more-loading-text" t-class-indicator="t-class-indicator" loading="{{status === 1}}" text="加载中..." theme="circular" size="40rpx" />
|
|
|
|
<!-- 已全部加载: status = 2 -->
|
|
<t-divider wx:if="{{status === 2}}" t-class="load-more-divider" t-class-content="load-more-divider-content">
|
|
<text slot="content">{{noMoreText}}</text>
|
|
</t-divider>
|
|
|
|
<!-- 加载失败: status = 3 -->
|
|
<view class="load-more__error" wx:if="{{status===3}}">
|
|
加载失败
|
|
<text class="load-more__refresh-btn" bind:tap="tapHandle">刷新</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 支持通过slot传入页面/列表的空态,load-more来控制空态的显示状态 -->
|
|
<slot wx:if="{{listIsEmpty && (status === 0 || status === 2)}}" name="empty" /> |