From d15e55174326d83355d35450d84ed93a2c40580f Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Thu, 10 Mar 2022 20:54:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E5=A4=A7=E4=BA=8E100%=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Lines/LineCommon/index.vue | 4 ++++ src/store/modules/chartEditStore/chartEditStore.ts | 1 - .../ContentEdit/components/EditRange/index.vue | 14 ++++++++++++-- src/views/chart/ContentEdit/hooks/useStyle.hook.ts | 3 +-- src/views/chart/ContentEdit/index.vue | 2 -- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/packages/components/Charts/Lines/LineCommon/index.vue b/src/packages/components/Charts/Lines/LineCommon/index.vue index d45e8dd8..4a977edd 100644 --- a/src/packages/components/Charts/Lines/LineCommon/index.vue +++ b/src/packages/components/Charts/Lines/LineCommon/index.vue @@ -11,6 +11,7 @@ import { LineChart } from 'echarts/charts' import config, { includes } from './config' import { mergeTheme } from '@/packages/public/chart' import { GridComponent, TooltipComponent, LegendComponent } from 'echarts/components' +import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' const props = defineProps({ themeSetting: { @@ -35,7 +36,10 @@ use([ LegendComponent ]) +const chartEditStore = useChartEditStore() + const option = computed(() => { + console.log(chartEditStore.getEditCanvasConfig.chartThemeColor) return mergeTheme(props.chartConfig.option, props.themeSetting, includes) }) diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index 55c49771..c819f229 100644 --- a/src/store/modules/chartEditStore/chartEditStore.ts +++ b/src/store/modules/chartEditStore/chartEditStore.ts @@ -541,7 +541,6 @@ export const useChartEditStore = defineStore({ if (!this.getEditCanvas.lockScale) { this.setPageSizeClass() this.setPageSize(scale) - this.setPageStyle('transform', `scale(${scale})`) this.getEditCanvas.userScale = scale if (sys) { this.getEditCanvas.scale = scale diff --git a/src/views/chart/ContentEdit/components/EditRange/index.vue b/src/views/chart/ContentEdit/components/EditRange/index.vue index 2813119f..911079e8 100644 --- a/src/views/chart/ContentEdit/components/EditRange/index.vue +++ b/src/views/chart/ContentEdit/components/EditRange/index.vue @@ -1,6 +1,6 @@