33 lines
528 B
Vue
33 lines
528 B
Vue
<template>
|
|
<view class="load-more-c">
|
|
<view v-if="type==1">加载中...</view>
|
|
<view v-else-if="type==0">上拉加载更多</view>
|
|
<view v-else>没有更多了</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name:"loadmore",
|
|
props: {
|
|
type: {
|
|
type: Number,
|
|
default: 1
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.load-more-c{
|
|
width: 100%;
|
|
color: #777;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
</style> |