diff --git a/packages/s2-core/src/cell/data-cell.ts b/packages/s2-core/src/cell/data-cell.ts index 1d8f03cce7..00afa3eb01 100644 --- a/packages/s2-core/src/cell/data-cell.ts +++ b/packages/s2-core/src/cell/data-cell.ts @@ -178,9 +178,7 @@ export class DataCell extends BaseCell { this.drawTextShape(); this.drawConditionIconShapes(); } - if (this.meta.isFrozenCorner) { - this.drawBorderShape(); - } + this.drawBorderShape(); this.update(); } diff --git a/packages/s2-core/src/common/interface/s2Options.ts b/packages/s2-core/src/common/interface/s2Options.ts index 1729e80677..4c3c1edc3b 100644 --- a/packages/s2-core/src/common/interface/s2Options.ts +++ b/packages/s2-core/src/common/interface/s2Options.ts @@ -125,6 +125,7 @@ export interface S2Options S2PivotSheetOptions { // custom data set dataSet?: (spreadsheet: SpreadSheet) => BaseDataSet; + afterRealCellRender?: (spreadsheet: SpreadSheet) => void; } export interface S2RenderOptions { diff --git a/packages/s2-core/src/facet/base-facet.ts b/packages/s2-core/src/facet/base-facet.ts index fa605b817a..7e49aec491 100644 --- a/packages/s2-core/src/facet/base-facet.ts +++ b/packages/s2-core/src/facet/base-facet.ts @@ -1066,6 +1066,9 @@ export abstract class BaseFacet { ); }); this.preCellIndexes = indexes; + if (this.spreadsheet.options.afterRealCellRender) { + this.spreadsheet.options.afterRealCellRender(this.spreadsheet); + } }; protected init() {