From 5390a80d7f3d6867a24047215355086a1b2ff9f9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 30 Oct 2024 16:40:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E7=BB=84=E4=BB=B6=E5=AD=97=E4=BD=93=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/v-query/Component.vue | 10 +--------- .../components/views/components/ChartComponentS2.vue | 7 +------ 2 files changed, 2 insertions(+), 15 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 1c4c893f33..c762516597 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -620,15 +620,7 @@ const marginRight = computed(() => { }) const autoStyle = computed(() => { - return { - position: 'absolute', - height: 100 / scale.value + '%!important', - width: 100 / scale.value + '%!important', - left: 50 * (1 - 1 / scale.value) + '%', // 放大余量 除以 2 - top: 50 * (1 - 1 / scale.value) + '%', // 放大余量 除以 2 - transform: 'scale(' + scale.value + ') translateZ(0)', - opacity: element.value?.style?.opacity || 1 - } as CSSProperties + return { zoom: scale.value } }) diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue index b2a5f6a58d..bc01240514 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue @@ -604,12 +604,7 @@ onBeforeUnmount(() => { }) const autoStyle = computed(() => { - return { - height: 20 * scale.value + 8 + 'px', - width: 100 / scale.value + '%!important', - left: 50 * (1 - 1 / scale.value) + '%', // 放大余量 除以 2 - transform: 'scale(' + scale.value + ') translateZ(0)' - } + return { zoom: scale.value } }) const autoHeightStyle = computed(() => {