From d421a1fa3b655388fba243e409b947ee006c46b2 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 16 Jun 2026 18:29:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AF=B9=E7=A7=B0=E6=9D=A1=E5=BD=A2=E5=9B=BE=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BB=A5=E5=8F=8A=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=9B=BE=E8=A1=A8=E8=81=94=E5=8A=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E8=83=BD=E5=A4=9F=E9=80=89=E6=8B=A9=E6=8C=87=E6=A0=87?= =?UTF-8?q?=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/visualization/LinkageSet.vue | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/core/core-frontend/src/components/visualization/LinkageSet.vue b/core/core-frontend/src/components/visualization/LinkageSet.vue index b471a36a81..cf7c9bd64b 100644 --- a/core/core-frontend/src/components/visualization/LinkageSet.vue +++ b/core/core-frontend/src/components/visualization/LinkageSet.vue @@ -354,22 +354,35 @@ const toggleSameDs = ref(true) const toggleDiffDs = ref(true) -const LINKAGE_FIELD_PROPS = [ - 'xAxis', - 'xAxisExt', - 'extStack', +const LINKAGE_DIMENSION_FIELD_PROPS = ['xAxis', 'xAxisExt', 'extStack', 'drillFields'] + +const MULTI_SCATTER_LINKAGE_FIELD_PROPS = [ 'extColor', + 'xAxis', 'yAxis', - 'yAxisExt', 'extBubble', + 'yAxisExt', 'extLabel', - 'extTooltip', - 'drillFields' + 'extTooltip' ] +const getLinkageFieldProps = chart => { + if (chart?.type === 'multi-scatter') { + return MULTI_SCATTER_LINKAGE_FIELD_PROPS + } + const props = [...LINKAGE_DIMENSION_FIELD_PROPS] + if (chart?.type?.includes('chart-mix')) { + props.push('extBubble') + } + if (['table-normal', 'indicator'].includes(chart?.type)) { + props.push('yAxis') + } + return props +} + const getDraggedFieldIds = chart => { const ids = new Set() - LINKAGE_FIELD_PROPS.forEach(prop => { + getLinkageFieldProps(chart).forEach(prop => { const fields = chart?.[prop] if (!Array.isArray(fields)) { return