c-loading.vue
712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template>
<view class="m-loading">
<u-loadmore :status="loading" :icon="icon" :loadText="loadText" bgColor="#F7F7F7" marginTop='12rpx' marginBottom='12rpx'></u-loadmore>
</view>
</template>
<script>
export default {
props: {
loading: {
type: String,
default: 'loadmore'
},
icon: {
type: Boolean,
default: true
},
loadText: {
type: Object,
default () {
return {
loadmore: '点击或上拉加载更多',
loading: '正在加载',
nomore: '没有更多了'
}
}
}
},
data() {
return {};
}
};
</script>
<style lang="scss">
.m-loading {
background-color: #F7F7F7;
padding: 20rpx 0;
}
</style>