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
commit 2dcd72cec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
<template>
<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
slot="header"
class="clearfix license-header"
@ -110,6 +113,15 @@ export default {
}
},
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([
'user'
])
@ -202,6 +214,12 @@ export default {
padding: 0;
}
}
.about-card-medium {
height: 415px !important;
}
.about-card-max {
height: 430px !important;
}
.license-header {
height: 100px;
background-image: url('../../../assets/license_header.png');