+
已学习{{ store.currentStudyProgress }}%
{{ store.sdict.lastLearnIndex }} / {{
@@ -97,9 +82,12 @@ function changePerDayStudyNumber() {
+
+ 预计完成日期:{{ _getAccomplishDate(store.sdict.words.length, store.sdict.perDayStudyNumber) }}
+
+
今日任务
@@ -119,12 +107,24 @@ function changePerDayStudyNumber() {
-
+
+
+
+ 每日目标
+
+ {{ store.sdict.perDayStudyNumber }}
+
+ 个单词
+
开始学习
+
diff --git a/src/types.ts b/src/types.ts
index aabe5e41..479b78ed 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -16,28 +16,26 @@ export type Word = {
"phonetic0": string,
"phonetic1": string,
"trans": WordTrans[]
- checked?: boolean,
sentences?: { v: string, tran: string }[],
relWords?: { w: string, tran: string }[],
phrases?: { v: string, tran: string } [],
synos?: { w: string, tran: string } [],
- memory?: any,
+ memory?: string,
}
-export const DefaultWord: Word = {
- word: '',
- phonetic0: '',
- phonetic1: '',
- trans: [],
-}
-export function getDefaultWord(val?: any) {
+export function getDefaultWord(val?: any): Word {
return {
id: '',
word: '',
phonetic0: '',
phonetic1: '',
trans: [],
+ sentences: [],
+ relWords: [],
+ phrases: [],
+ synos: [],
+ memory: '',
...val
}
}