fix(sheet): fix row、col style not effect when the cell is null (#6286)

This commit is contained in:
VicKun
2025-12-11 16:37:38 +08:00
committed by GitHub
parent cfb10c28aa
commit 44c935f066
@@ -1457,9 +1457,8 @@ export class SpreadsheetSkeleton extends SheetSkeleton {
}
const cell = this.worksheet.getCell(row, col) || this.worksheet.getCellRaw(row, col);
if (!cell) return;
const style = this.worksheet.getComposedCellStyleByCellData(row, col, cell);
if (!cell && !style) return;
this._setBgStylesCache(row, col, style, options);
this._setBorderStylesCache(row, col, style, options);