feat: 模板导出导入 + 模板应用自动刷新主窗口 + 窗口放大 + 状态栏可拖拽
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user