init
This commit is contained in:
34
miniprogram/components/load-more/index.wxml
Normal file
34
miniprogram/components/load-more/index.wxml
Normal file
@@ -0,0 +1,34 @@
|
||||
<view
|
||||
class="load-more wr-class"
|
||||
wx:if="{{!(listIsEmpty && (status === 0 || status === 2))}}"
|
||||
bindtap="tapHandle"
|
||||
>
|
||||
<!-- 加载中 -->
|
||||
|
||||
<t-loading
|
||||
t-class="t-class-loading"
|
||||
t-class-text="t-class-loading-text"
|
||||
t-class-indicator="t-class-indicator"
|
||||
loading="{{status === 1}}"
|
||||
text="加载中..."
|
||||
theme="circular"
|
||||
size="40rpx"
|
||||
/>
|
||||
|
||||
<!-- 已全部加载 -->
|
||||
<t-divider wx:if="{{status === 2}}" t-class="t-class-divider" t-class-content="t-class-divider-content">
|
||||
<text slot="content">{{noMoreText}}</text>
|
||||
</t-divider>
|
||||
|
||||
<!-- 加载失败 -->
|
||||
<view class="load-more__error" wx:if="{{status===3}}">
|
||||
加载失败
|
||||
<text class="load-more__refresh-btn" bind:tap="tapHandle">刷新</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<view wx:if="{{listIsEmpty && (status === 0 || status === 2)}}" class="load-more__wrap">
|
||||
<slot name="empty" />
|
||||
</view>
|
||||
Reference in New Issue
Block a user