From 634bbc0d1d49ed621867e33642b926649400f9d6 Mon Sep 17 00:00:00 2001 From: ulleo Date: Thu, 18 Apr 2024 13:43:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8F=8C=E8=BD=B4=E5=9B=BE=E5=8F=B3=E8=BD=B4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/editor/editor-style/ChartStyle.vue | 5 ++++- .../editor/editor-style/components/DualYAxisSelector.vue | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index f0d8a217c1..e2a1938f3b 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -116,11 +116,14 @@ const onChangeXAxisForm = (val, prop) => { } const onChangeYAxisForm = (val, prop) => { + if (prop === 'show' && chart.value.type === 'chart-mix') { + chart.value.customStyle.yAxisExt.show = val.show + onChangeYAxisExtForm(chart.value.customStyle.yAxisExt, 'show') + } state.initReady && emit('onChangeYAxisForm', val, prop) } const onChangeYAxisExtForm = (val, prop) => { - console.log(val, prop) state.initReady && emit('onChangeYAxisExtForm', val, prop) } diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelector.vue index 545c0549f4..6320476048 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelector.vue @@ -49,7 +49,6 @@ const changeAxisStyle = (val, prop) => { } const changeSubAxisStyle = (val, prop) => { - console.log(val, prop) emit('onChangeYAxisExtForm', val, prop) }