forked from github/dataease
Merge pull request #13174 from dataease/pr@dev-v2@fix_table_info_merge_index_calc
fix(图表): 修复明细表合并单元格序号列计算错误
This commit is contained in:
commit
c59b2e9c64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user