style: 仪表板选项卡头部右侧样式优化

This commit is contained in:
fit2cloud-chenyw 2022-04-26 18:44:32 +08:00
parent ce152ac0e6
commit c3c0681293
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
type="card" type="card"
style-type="radioGroup" style-type="radioGroup"
class="de-tabs-height" class="de-tabs-height"
:class="isEdit ? 'de-tabs-edit' : ''" :class="isCurrentEdit ? 'de-tabs-edit' : ''"
:font-color="fontColor" :font-color="fontColor"
:active-color="activeColor" :active-color="activeColor"
:border-color="borderColor" :border-color="borderColor"
@ -249,6 +249,9 @@ export default {
}, },
titleValid() { titleValid() {
return !!this.textarea && !!this.textarea.trim() return !!this.textarea && !!this.textarea.trim()
},
isCurrentEdit() {
return this.isEdit && this.curComponent && this.curComponent.id === this.element.id
} }
}, },
watch: { watch: {

View File

@ -143,7 +143,7 @@ div:focus {
height: 100vh !important; height: 100vh !important;
} }
} }
.de-tabs-edit { .de-tabs-edit>.el-tabs__header{
padding-right: 50px !important; padding-right: 50px !important;
} }
.de-tabs { .de-tabs {