index.vue
698 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
<template>
<div class="empty-tips" v-if="visb">
<div class="tips">
<span class="iconfont iconempty"></span>
<div class="tips">{{innerText ? innerText :'这里空空如也~'}}</div>
</div>
</div>
</template>
<script>
export default {
props: ['visb', 'innerText'],
data() {
return {
key: 'value'
}
}
}
</script>
<style lang="scss" scoped>
.empty-tips {
box-sizing: border-box;
position: fixed;
text-align: center;
color: #666666;
font-size: 32px;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
top: 35%;
.iconfont {
font-size: 100px;
}
.tips {
position: relative;
padding: 20px;
}
}
</style>