From fdbdfa1ca29c75ceb43b1b3332557451fb97aba0 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 8 Apr 2025 15:45:55 +0800 Subject: [PATCH] =?UTF-8?q?pref(=E5=9B=BE=E8=A1=A8):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=BC=96=E8=BE=91=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=8C=87=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/TooltipSelector.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue index 99b01fd2fd..adda489957 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue @@ -86,6 +86,9 @@ const changeChartType = () => { }) } }) + if (formatter[0]) { + curSeriesFormatter.value = formatter[0] + } emit('onTooltipChange', { data: state.tooltipForm, render: false }, 'seriesTooltipFormatter') emit('onExtTooltipChange', extTooltip.value) } @@ -109,6 +112,9 @@ const changeDataset = () => { }) } }) + if (formatter[0]) { + curSeriesFormatter.value = formatter[0] + } } const AXIS_PROP: AxisType[] = ['yAxis', 'yAxisExt', 'extBubble'] @@ -271,6 +277,9 @@ const init = () => { }, {}) if (!curSeriesFormatter?.value || !seriesAxisMap[curSeriesFormatter.value?.seriesId]) { curSeriesFormatter.value = {} + if (formatter[0]) { + curSeriesFormatter.value = formatter[0] + } } else { curSeriesFormatter.value = seriesAxisMap[curSeriesFormatter.value?.seriesId] } @@ -688,6 +697,7 @@ onMounted(() => {
+ {{ curSeriesFormatter }}