From 44c935f066259727f21adbb8ada3a9ee608d7121 Mon Sep 17 00:00:00 2001 From: VicKun Date: Thu, 11 Dec 2025 16:37:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(sheet):=20fix=20row=E3=80=81col=20style=20n?= =?UTF-8?q?ot=20effect=20when=20the=20cell=20is=20null=20(#6286)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/sheets/sheet.render-skeleton.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/engine-render/src/components/sheets/sheet.render-skeleton.ts b/packages/engine-render/src/components/sheets/sheet.render-skeleton.ts index 13a66a156e..31b22b7642 100644 --- a/packages/engine-render/src/components/sheets/sheet.render-skeleton.ts +++ b/packages/engine-render/src/components/sheets/sheet.render-skeleton.ts @@ -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);