Skip to content

Commit

Permalink
fix: rowSeriesNumber when be frozen can render customlayout #2653
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Oct 23, 2024
1 parent 0beb60c commit 2e7e89f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/vtable/src/scenegraph/group-creater/column-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,16 @@ export function createComplexColumn(
) {
cellLocation = 'body';
}
const define =
cellLocation !== 'body'
? table.getHeaderDefine(colForDefine, rowForDefine)
: table.getBodyColumnDefine(colForDefine, rowForDefine);
let define;
if (!table.isPivotTable() && table.isSeriesNumberInBody(col, row)) {
// 序号列 传入的cellLocation是'rowHeader'(不清楚为什么)。这里处理下获取到的define值
define = table.getBodyColumnDefine(colForDefine, rowForDefine);
} else {
define =
cellLocation !== 'body'
? table.getHeaderDefine(colForDefine, rowForDefine)
: table.getBodyColumnDefine(colForDefine, rowForDefine);
}
let mayHaveIcon =
cellLocation !== 'body'
? true
Expand Down

0 comments on commit 2e7e89f

Please sign in to comment.