From c3c0681293d5eb3effd0c9eeb7e8558c20251dc9 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 26 Apr 2022 18:44:32 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=8D=A1=E5=A4=B4=E9=83=A8=E5=8F=B3=E4=BE=A7=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeTabs.vue | 5 ++++- frontend/src/styles/index.scss | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/widget/DeWidget/DeTabs.vue b/frontend/src/components/widget/DeWidget/DeTabs.vue index a0cedc4081..40a6eaf09b 100644 --- a/frontend/src/components/widget/DeWidget/DeTabs.vue +++ b/frontend/src/components/widget/DeWidget/DeTabs.vue @@ -6,7 +6,7 @@ type="card" style-type="radioGroup" class="de-tabs-height" - :class="isEdit ? 'de-tabs-edit' : ''" + :class="isCurrentEdit ? 'de-tabs-edit' : ''" :font-color="fontColor" :active-color="activeColor" :border-color="borderColor" @@ -249,6 +249,9 @@ export default { }, titleValid() { return !!this.textarea && !!this.textarea.trim() + }, + isCurrentEdit() { + return this.isEdit && this.curComponent && this.curComponent.id === this.element.id } }, watch: { diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index ca8f3457e0..d3b3752e6a 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -143,7 +143,7 @@ div:focus { height: 100vh !important; } } -.de-tabs-edit { +.de-tabs-edit>.el-tabs__header{ padding-right: 50px !important; } .de-tabs {