index.vue
820 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
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--
* @FileDescription: index.vue
* @Author: kahu
* @Date: 2022/11/21
* @LastEditors: kahu
* @LastEditTime: 2022/11/21
-->
<template>
<view class="no-more-content" v-if="show">
<view class="line" />
<view class="text">
<slot>没有更多了</slot>
</view>
<view class="line" />
</view>
</template>
<script>
export default {
name: "NoMore",
data() {
return {}
},
props:{
show:{
type:Boolean,
default:false
}
},
methods: {}
}
</script>
<style
lang="scss"
scoped
>
.no-more-content{
margin-top: 35rpx;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.line{
width: 20vw;
height: 2rpx;
background-color: #808080;
}
.text{
color: #808080;
margin: 0 50rpx;
}
}
</style>