feat:add update prompts to dynamically introduce the xlsx library

This commit is contained in:
zyronon
2025-09-15 00:16:31 +08:00
parent fadcf0fff6
commit 12a22baf2b
22 changed files with 488 additions and 202 deletions

View File

@@ -6,7 +6,6 @@ import {nanoid} from "nanoid";
export function getDefaultWord(val: Partial<Word> = {}): Word {
return {
custom: false,
id: nanoid(6),
"word": "",
"phonetic0": "",
"phonetic1": "",
@@ -19,7 +18,8 @@ export function getDefaultWord(val: Partial<Word> = {}): Word {
"rels": []
},
"etymology": [],
...val
...val,
id: val?.id ? val.id : nanoid(6),
}
}