index.vue
1.04 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
<!-- 数据空展示组件 -->
<template>
<div class="empty-box">
<img
v-if="!src"
class="icon"
src="@/assets/icon-empty.png"
/>
<img
v-else
class="icon"
src="@/assets/empty.png"
/>
<span
class="label"
style="margin-top: 25px; color: #818693"
>{{
desc || '没有找到您要的内容哦~'
}}</span>
</div>
</template>
<script>
export default {
components: {},
filters: {},
props: {
src: {
type: String,
required: false,
default: ''
},
desc: {
type: String,
required: false,
default: ''
}
},
data() {
return {}
},
computed: {},
watch: {},
created() {},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.empty-box {
width: 100%;
min-height: 320px;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
.icon {
width: 336px;
height: 232px;
}
.label {
font-size: 14px;
color: #20232a;
line-height: 21px;
}
}
</style>