index.vue
694 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="visible">
<div class="tips">
<span class="iconfont iconempty"></span>
<div class="tips">{{innerText ? innerText :'暂无记录'}}</div>
</div>
</div>
</template>
<script>
export default {
props: ['visible', 'innerText'],
data() {
return {
key: 'value'
}
}
}
</script>
<style lang="scss" scoped>
.empty-tips {
box-sizing: border-box;
position: fixed;
text-align: center;
color: #888;
font-size: 32px;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
top: 30%;
.iconfont {
font-size: 160px;
}
.tips {
position: relative;
padding: 12px;
}
}
</style>