城阳工作端uniH5前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

66 lines
1.3 KiB

<template>
<view class="load-more" :style="'visibility: ' + (loadVisible ? 'visible' : 'hidden')">
<view class="more-data" v-if="loadType === 'more'">
<image src="/static/images/loading.gif" />
<view class="content">加载中...</view>
</view>
<view class="no-data" v-else-if="loadType === 'none'">
<view class="content">没有更多了~</view>
</view>
</view>
</template>
<script>
'use strict';
export default {
data() {
return {};
},
props: {
loadType: {
type: String,
default: 'more'
},
loadVisible: {
type: Boolean,
default: false
}
},
methods: {},
created: function () {}
};
</script>
<style>
.load-more {
width: 100%;
height: 100rpx;
}
.load-more .more-data {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.load-more .more-data image {
width: 35rpx;
height: 35rpx;
margin-right: 10rpx;
}
.load-more .more-data .content {
font-size: 28rpx;
color: #999;
}
.load-more .no-data {
width: 100%;
height: 100%;
text-align: center;
line-height: 100rpx;
}
.load-more .no-data .content {
font-size: 28rpx;
color: #999;
}
</style>