Skip to content

Commit

Permalink
fix: when no data corner show title error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Feb 8, 2025
1 parent 250c77a commit d1a6a8a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/vtable/src/layout/pivot-header-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,14 @@ export class PivotHeaderLayoutMap implements LayoutMapAPI {
) {
this._cornerHeaderCellFullPathIds = [];
const results: HeaderData[] = [];
const colLevelCount = this._getColumnHeaderTreeExpandedMaxLevelCount()
? this._getColumnHeaderTreeExpandedMaxLevelCount()
: this.columnHeaderLevelCount;
const rowLevelCount = this._getRowHeaderTreeExpandedMaxLevelCount()
? this._getRowHeaderTreeExpandedMaxLevelCount()
: this.rowHeaderLevelCount;
const colLevelCount =
this.columnHierarchyType === 'grid-tree'
? this._getColumnHeaderTreeExpandedMaxLevelCount() || this.columnHeaderLevelCount
: this.columnHeaderLevelCount;
const rowLevelCount =
this.rowHierarchyType === 'grid-tree'
? this._getRowHeaderTreeExpandedMaxLevelCount() || this.rowHeaderLevelCount
: this.rowHeaderLevelCount;
if (this.cornerSetting.titleOnDimension === 'all') {
if (this.indicatorsAsCol) {
if (colDimensionKeys) {
Expand Down

0 comments on commit d1a6a8a

Please sign in to comment.