Skip to content

Commit 0346ab7

Browse files
committed
feat: add sheet default rows stting
1 parent 63c041b commit 0346ab7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ExcelView.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export class ExcelView extends TextFileView {
106106
var sheetAny = sheet as any
107107
if (sheetAny.rows) {
108108
const last = Object.keys(sheetAny.rows).last() || "100"
109-
sheetAny.rows.len = Math.max(100, parseInt(last) + 20)
109+
const max = parseInt(this.plugin.settings.defaultRowsLen)
110+
sheetAny.rows.len = Math.max(max, parseInt(last) + 20)
110111
}
111112
})
112113
this.saveData(JSON.stringify(sheetData))

0 commit comments

Comments
 (0)