From 6fb0a7e63bee0e567ca2bf907be393ba10a9be79 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 30 Sep 2024 14:12:44 +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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 36c96eaeb0..4da028f2d3 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -185,6 +185,9 @@ const setCustomStyle = val => { '--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 @@ -495,6 +498,10 @@ watch( } ) +const boxWidth = computed(() => { + return `${customStyle.placeholderSize}px` +}) + const queryData = () => { let requiredName = '' const emitterList = (element.value.propValue || []).reduce((pre, next) => { @@ -711,6 +718,14 @@ const autoStyle = computed(() => { position: relative; --ed-font-size-base: 14px; + :deep(.ed-tag) { + --ed-tag-font-size: 14px; + } + + :deep(.ed-select-v2) { + font-size: v-bind(boxWidth); + } + .no-list-label { width: 100%; position: absolute;