Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheet): fix row、col style not effect when the cell is null (#6286)
VicKun44c935f06625
diff --git a/packages/engine-render/src/components/sheets/sheet.render-skeleton.ts b/packages/engine-render/src/components/sheets/sheet.render-skeleton.tsindex 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);