From 598df69abd920396201551751a36c9626e4e2984 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 26 Mar 2025 11:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=90=8D=E7=A7=B0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA=E4=B8=8A=E6=96=B9=E6=98=BE=E7=A4=BA=E5=B9=B6?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E9=9A=90=E8=97=8F=E6=97=B6=EF=BC=8C=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=A1=86=E7=9A=84=E4=BD=8D=E7=BD=AE=E6=9C=AA=E5=8F=98?= =?UTF-8?q?=E5=8C=96=20#15491?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Component.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index bd0ccec2b2..042700c370 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -750,15 +750,19 @@ const labelStyle = computed(() => { return style }) +const comLayout = computed(() => { + return customStyle.labelShow ? customStyle.layout : 'horizontal' +}) + const paddingTop = computed(() => { return { - paddingTop: customStyle.layout !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0' + paddingTop: comLayout.value !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0' } }) const marginRight = computed(() => { return { - marginRight: customStyle.layout === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px' + marginRight: comLayout.value === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px' } }) @@ -784,11 +788,7 @@ const autoStyle = computed(() => { {{ customStyle.title }}