Empty.vue
874 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>
<!-- 空状态,没有数据的时候 -->
<el-empty v-bind="$attrs" />
<!-- <div class="empty">
<svg-icon class="right-icon" :icon="nodataObj[type].svgName"></svg-icon>
<div class="nodata-text">{{ description}}</div>
</div> -->
</template>
<script>
export default {
props: {
// 显示的提示文字
// description: {
// type: String,
// default: null,
// },
},
data() {
return {}
},
}
</script>
<style lang="scss" scoped>
// .empty {
// width: 100%;
// height: 100%;
// display: flex;
// flex-direction: column;
// text-align: center;
// align-items: center;
// justify-content: center;
// .right-icon {
// width: 80px;
// height: 64px;
// }
// .nodata-text {
// font-size: 14px;
// font-weight: 400;
// color: #4e5969;
// line-height: 22px;
// }
// }
</style>