From 9078eb5f4cff78be74bee56845cdbcc5134046a2 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 6 Nov 2024 16:49:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=A1=A8=E5=90=88=E5=B9=B6=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=A0=BC=E5=BA=8F=E5=8F=B7=E5=88=97=E8=AE=A1=E7=AE=97=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index 6c8acb6709..82983fd5c8 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1505,7 +1505,10 @@ export function configMergeCells(chart: Chart, options: S2Options, dataConfig: S } export function getRowIndex(mergedCellsInfo: MergedCellInfo[][], meta: ViewMeta): number { - let curRangeStartIndex = 0 + if (!mergedCellsInfo?.length) { + return meta.rowIndex + 1 + } + let curRangeStartIndex = meta.rowIndex const lostCells = mergedCellsInfo.reduce((p, n) => { if (n[0].colIndex !== 0) { return p