Merge pull request #4369 from dataease/pr@dev@style_lic_info_page

style(关于页面): 许可证样式动态高度
This commit is contained in:
fit2cloud-chenyw
2023-01-13 16:46:01 +08:00
committed by GitHub

View File

@@ -1,6 +1,9 @@
<template> <template>
<div style="width: 100%;display: flex;justify-content: center;"> <div style="width: 100%;display: flex;justify-content: center;">
<el-card class="box-card about-card"> <el-card
class="box-card about-card"
:class="dynamicCardClass"
>
<div <div
slot="header" slot="header"
class="clearfix license-header" class="clearfix license-header"
@@ -110,6 +113,15 @@ export default {
} }
}, },
computed: { computed: {
dynamicCardClass() {
if (this.license?.serialNo && this.license?.remark) {
return 'about-card-max'
}
if (!this.license?.serialNo && !this.license?.remark) {
return ''
}
return 'about-card-medium'
},
...mapGetters([ ...mapGetters([
'user' 'user'
]) ])
@@ -202,6 +214,12 @@ export default {
padding: 0; padding: 0;
} }
} }
.about-card-medium {
height: 415px !important;
}
.about-card-max {
height: 430px !important;
}
.license-header { .license-header {
height: 100px; height: 100px;
background-image: url('../../../assets/license_header.png'); background-image: url('../../../assets/license_header.png');