Skip to content

Commit

Permalink
feat: map missing / empty cells to ensure table layout consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronicStone committed Dec 5, 2023
1 parent 3be3b9d commit 80837ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chronicstone/typed-xlsx",
"type": "module",
"version": "0.1.3-rc0",
"version": "0.1.3",
"packageManager": "pnpm@8.11.0",
"description": "_description_",
"author": "ChronicStone <cthao.pro@gmail.com>",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ export class ExcelBuilder<UsedSheetKeys extends string = never> {
const style = column._ref.cellStyle?.(row) ?? {}

if (!workbook.Sheets[sheetName][cellRef])
return
workbook.Sheets[sheetName][cellRef] = { v: '', t: 's' } satisfies XLSX.CellObject

workbook.Sheets[sheetName][cellRef].s = deepmerge(
style,
{
Expand Down

0 comments on commit 80837ce

Please sign in to comment.