mirror of
https://github.com/ljcoder2015/obsidian-excel.git
synced 2026-07-22 08:30:28 +00:00
feat: add sheet default rows stting
This commit is contained in:
parent
63c041ba05
commit
0346ab7ca3
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ export class ExcelView extends TextFileView {
|
|||
var sheetAny = sheet as any
|
||||
if (sheetAny.rows) {
|
||||
const last = Object.keys(sheetAny.rows).last() || "100"
|
||||
sheetAny.rows.len = Math.max(100, parseInt(last) + 20)
|
||||
const max = parseInt(this.plugin.settings.defaultRowsLen)
|
||||
sheetAny.rows.len = Math.max(max, parseInt(last) + 20)
|
||||
}
|
||||
})
|
||||
this.saveData(JSON.stringify(sheetData))
|
||||
|
|
|
|||
Loading…
Reference in a new issue