feat: 模板导出导入 + 模板应用自动刷新主窗口 + 窗口放大 + 状态栏可拖拽

This commit is contained in:
2026-07-16 13:41:58 +08:00
parent e84b0705e5
commit 7d4551e7f2
6 changed files with 123 additions and 62 deletions
+3
View File
@@ -115,12 +115,15 @@ export interface ElectronAPI {
getNextIndex: () => Promise<number>
setNextIndex: (idx: number) => Promise<void>
resetNextIndex: () => Promise<void>
onUpdated: (callback: () => void) => () => void
}
template: {
list: () => Promise<TemplateItem[]>
save: (data: { name: string; course: string; questions?: QuestionItem[] }) => Promise<number | null>
delete: (id: number) => Promise<boolean>
apply: (id: number) => Promise<boolean>
exportJson: () => Promise<boolean>
importJson: () => Promise<{ count: number } | null>
}
dialog: {
open: (type: string, data?: any) => Promise<void>