From bce4973fb4505e76111a5d5877f2413e3ad20302 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 29 Oct 2024 12:15:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=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=E5=B5=8C=E5=85=A5?= =?UTF-8?q?=E5=BC=8F=E5=8F=AF=E8=A7=86=E5=8C=96=E8=B5=84=E6=BA=90=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=B8=B2=E6=9F=93=E5=AE=8C=E6=AF=95=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom-component/user-view/Component.vue | 13 ------------- .../src/pages/panel/ViewWrapper.vue | 7 +++++-- core/core-frontend/src/utils/canvasUtils.ts | 18 +++++++++++------- .../views/dashboard/DashboardPreviewShow.vue | 3 ++- .../src/views/dashboard/index.vue | 3 ++- .../src/views/data-visualization/DvPreview.vue | 1 - .../views/data-visualization/PreviewCanvas.vue | 10 +++++++--- .../views/data-visualization/PreviewShow.vue | 5 ++++- .../src/views/data-visualization/index.vue | 4 +++- 9 files changed, 34 insertions(+), 30 deletions(-) diff --git a/core/core-frontend/src/custom-component/user-view/Component.vue b/core/core-frontend/src/custom-component/user-view/Component.vue index 6034d08caf..2ad47f36e0 100644 --- a/core/core-frontend/src/custom-component/user-view/Component.vue +++ b/core/core-frontend/src/custom-component/user-view/Component.vue @@ -64,19 +64,6 @@ const props = defineProps({ const { element, view, active, searchCount, scale } = toRefs(props) const autoStyle = computed(() => { return { zoom: scale.value } - // if (element.value.innerType === 'rich-text') { - // - // 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)' - // } as CSSProperties - // } else { - // return {} - // } }) const emits = defineEmits(['onPointClick']) diff --git a/core/core-frontend/src/pages/panel/ViewWrapper.vue b/core/core-frontend/src/pages/panel/ViewWrapper.vue index 55ef838011..313df29e69 100644 --- a/core/core-frontend/src/pages/panel/ViewWrapper.vue +++ b/core/core-frontend/src/pages/panel/ViewWrapper.vue @@ -1,6 +1,6 @@