Files
dvcp_v2_wxcp_app/src/components/AiEmpty.vue
2022-01-27 15:16:26 +08:00

50 lines
934 B
Vue

<template>
<div class="emptyWrap">
<img class="emptyImg" :src="emptyImg">
<div class="emptyText">{{ description }}</div>
</div>
</template>
<script>
export default {
name: "AiEmpty",
props: {
img: {default: "https://cdn.cunwuyun.cn/dvcp/h5/Empty.png"},
noPermit: Boolean,
description: {
default: '暂无相关信息',
type: String
}
},
computed: {
emptyImg() {
return this.noPermit ? "https://cdn.cunwuyun.cn/dvcp/h5/no-admin.png" : this.img
}
}
}
</script>
<style lang="scss" scoped>
.emptyWrap {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// margin-top: 100px;
margin-bottom: 20px;
.emptyImg {
width: 400px;
height: 240px;
}
.emptyText {
font-size: 29px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(183, 183, 183, 1);
}
}
</style>