新增全局加载组件
This commit is contained in:
parent
525446f782
commit
43f1362501
33
components/loadmore.vue
Normal file
33
components/loadmore.vue
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<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>
|
Loading…
x
Reference in New Issue
Block a user