From bd8b6ac171ffdbb9c5aed7c308cd2fbdbb9aac6e Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 30 Sep 2024 14:19:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E4=B8=8B=E6=8B=89=E3=80=81=E6=95=B0=E5=AD=97?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E6=9C=AA?= =?UTF-8?q?=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Component.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 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 4da028f2d3..234e3ee497 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -180,14 +180,10 @@ const setCustomStyle = val => { customStyle.placeholderShow = placeholderShow ?? true customStyle.placeholderSize = placeholderSize ?? 14 nextTick(() => { - vQueryRef.value.style.setProperty('--ed-font-size-base', `${customStyle.placeholderSize}px`) vQueryRef.value.style.setProperty( '--ed-component-size', `${customStyle.placeholderSize + 18}px` ) - vQueryRef.value.querySelectorAll('.ed-tag').forEach(ele => { - ele.style.setProperty('--ed-tag-font-size', `${customStyle.placeholderSize}px`) - }) }) customStyle.placeholder = placeholder ?? '请选择' customStyle.titleShow = titleShow @@ -716,10 +712,10 @@ const autoStyle = computed(() => { height: 100%; overflow: auto; position: relative; - --ed-font-size-base: 14px; + --ed-font-size-base: v-bind(boxWidth); :deep(.ed-tag) { - --ed-tag-font-size: 14px; + --ed-tag-font-size: v-bind(boxWidth); } :deep(.ed-select-v2) {