Merge pull request #13174 from dataease/pr@dev-v2@fix_table_info_merge_index_calc

fix(图表): 修复明细表合并单元格序号列计算错误
This commit is contained in:
wisonic-s
2024-11-06 16:49:57 +08:00
committed by GitHub

View File

@@ -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