BUG 27522

This commit is contained in:
aixianling
2022-02-28 15:40:59 +08:00
parent d9788c214d
commit 86e378053e
2 changed files with 20 additions and 7 deletions

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB