noData.vue
860 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
<template>
<div class="scrm-sub-client-container">
<!-- 有图标无数据文字情况 -->
<div class="nodata" v-if="type == 'hasIconText'">
<img src="@/assets/clientDataOverview/nodata.png" alt="" />
<p>暂无数据</p>
</div>
<!-- 没有图标有无数据文字 -->
<div class="nodata" v-if="type == 'hasText'">
<p>暂无数据</p>
</div>
</div>
</template>
<script>
export default {
props: {
type: {
type: String,
default: ''
}
}
}
</script>
<style lang="scss" scoped>
.scrm-sub-client-container {
.nodata {
position: absolute;
text-align: center;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 9;
p {
height: 22px;
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 22px;
}
}
}
</style>