Skip to content

Commit

Permalink
fix: 修复明细表空数据占位符背景穿透的问题 close #3077 (#3079)
Browse files Browse the repository at this point in the history
* fix: 修复明细表空数据占位符背景穿透的问题 close #3077

* fix: 增加透明度
  • Loading branch information
lijinke666 authored Jan 17, 2025
1 parent 09a1f06 commit 4d2f941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/s2-core/src/facet/table-facet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class TableFacet extends FrozenFacet {
}

const { empty } = this.spreadsheet.options.placeholder!;
const { background } = this.spreadsheet.theme;
const { icon, description } = this.spreadsheet.theme.empty;
const {
horizontalBorderWidth,
Expand All @@ -148,6 +149,8 @@ export class TableFacet extends FrozenFacet {
stroke: horizontalBorderColor,
strokeWidth: horizontalBorderWidth,
strokeOpacity: horizontalBorderColorOpacity,
fill: background?.color,
fillOpacity: background?.opacity ?? 1,
},
});

Expand All @@ -173,6 +176,8 @@ export class TableFacet extends FrozenFacet {
y: descY,
},
});

this.emptyPlaceholderGroup.toFront();
}

private getDataCellAdaptiveHeight(viewMeta: ViewMeta): number {
Expand Down

0 comments on commit 4d2f941

Please sign in to comment.