From cb9506c6691b20249174ff43e924a7e4ea934536 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 25 Jul 2024 16:27:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=B9=E9=87=8F=E8=AE=BE=E7=BD=AE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=83=8C=E6=99=AF=E9=BB=98=E8=AE=A4=E5=80=BC=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/data-visualization/dvMain.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 567afe4125..331caadd92 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -16,6 +16,8 @@ import { useEmitt } from '@/hooks/web/useEmitt' import chartViewManager from '@/views/chart/components/js/panel' import { COMMON_COMPONENT_BACKGROUND_BASE, + COMMON_COMPONENT_BACKGROUND_DARK, + COMMON_COMPONENT_BACKGROUND_LIGHT, defaultStyleValue, findBaseDeFaultAttr } from '@/custom-component/component-list' @@ -630,7 +632,11 @@ export const dvMainStore = defineStore('dataVisualization', { mode: 'batchOpt', render: batchAttachInfo.render, type: batchAttachInfo.type, - commonBackground: deepCopy(COMMON_COMPONENT_BACKGROUND_BASE), + commonBackground: deepCopy( + this.curOriginThemes === 'light' + ? COMMON_COMPONENT_BACKGROUND_LIGHT + : COMMON_COMPONENT_BACKGROUND_DARK + ), customAttr: this.changeProperties.customAttr, customStyle: this.changeProperties.customStyle }