|
@@ -3,6 +3,7 @@
|
|
|
* 公共列表组件
|
|
|
*/
|
|
|
const props=defineProps({
|
|
|
+ count:0,//当前加载的列表数据数量
|
|
|
loading:false,
|
|
|
finished:false,//是否加载完
|
|
|
isEmpty:false,//是否为空数据
|
|
@@ -31,7 +32,7 @@ const handleClickLoadMore=()=>{
|
|
|
<div class="bot-load" v-if="!props.finished&&props.loading">
|
|
|
<div class="loading-text">加载中...</div>
|
|
|
</div>
|
|
|
- <p class="nomore-text" v-if="!props.isEmpty&&props.finished">没有更多了~</p>
|
|
|
+ <p class="nomore-text" v-if="!props.isEmpty&&props.finished&&props.count>20">没有更多了~</p>
|
|
|
</div>
|
|
|
</template>
|
|
|
|