From 8d4b2320abe1c18dacbb97296a7fdbedbf7aa970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Wed, 10 Dec 2025 15:13:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):?= =?UTF-8?q?=20=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E6=94=AF=E6=8C=81=E9=85=8D=E8=89=B2=20(#1757?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visualization/DePreviewPopDialog.vue | 18 +++++++- .../component-background/CanvasBackground.vue | 46 +++++++++++++++++++ core/core-frontend/src/locales/en.ts | 2 + core/core-frontend/src/locales/tw.ts | 2 + core/core-frontend/src/locales/zh-CN.ts | 2 + core/core-frontend/src/utils/canvasUtils.ts | 3 ++ .../editor/util/dataVisualization.ts | 2 + 7 files changed, 73 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue b/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue index 1262eb11d7..c0b52c37eb 100644 --- a/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue +++ b/core/core-frontend/src/components/visualization/DePreviewPopDialog.vue @@ -27,6 +27,10 @@ import { computed, reactive, ref } from 'vue' import { useEmbedded } from '@/store/modules/embedded' import { XpackComponent } from '@/components/plugin' +import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' +import { storeToRefs } from 'pinia' +const dvMainStore = dvMainStoreWithOut() +const { canvasStyleData } = storeToRefs(dvMainStore) const state = reactive({ dialogShow: false, name: '', @@ -39,9 +43,16 @@ const xpackIframe = ref() const embeddedStore = useEmbedded() const dialogStyle = computed(() => { if (state.fullscreen) { - return {} + return [ + { '--ed-dialog-bg-color': canvasStyleData.value.dialogBackgroundColor }, + { '--ed-dialog__close-button': canvasStyleData.value.dialogButton } + ] } else { - return { height: state.height } + return [ + { '--ed-dialog-bg-color': canvasStyleData.value.dialogBackgroundColor }, + { '--ed-dialog__close-button': canvasStyleData.value.dialogButton }, + { height: state.height } + ] } }) @@ -82,6 +93,9 @@ defineExpose({