diff --git a/components.d.ts b/components.d.ts index 69266dcc..1db7a9f4 100644 --- a/components.d.ts +++ b/components.d.ts @@ -31,7 +31,6 @@ declare module 'vue' { ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] - ElIcon: typeof import('element-plus/es')['ElIcon'] ElInput: typeof import('element-plus/es')['ElInput'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElOption: typeof import('element-plus/es')['ElOption'] @@ -53,8 +52,6 @@ declare module 'vue' { PopConfirm: typeof import('./src/components/PopConfirm.vue')['default'] RepeatSetting: typeof import('./src/components/toolbar/RepeatSetting.vue')['default'] Ring: typeof import('./src/components/Ring.vue')['default'] - RouterLink: typeof import('vue-router')['RouterLink'] - RouterView: typeof import('vue-router')['RouterView'] SettingDialog: typeof import('./src/components/dialog/SettingDialog.vue')['default'] Slide: typeof import('./src/components/Slide.vue')['default'] Toolbar: typeof import('./src/components/toolbar/index.vue')['default'] diff --git a/src/pages/dict/DictManage.vue b/src/pages/dict/DictManage.vue new file mode 100644 index 00000000..922da5e1 --- /dev/null +++ b/src/pages/dict/DictManage.vue @@ -0,0 +1,1145 @@ + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + 翻译: + + {{ i }} + + + + + + + + + + + + + {{ runtimeStore.editDict.name }} + + + + + + + + + + 章节管理 + 智能分配 + + + + + + + + + 第{{ index + 1 }}章 + {{ runtimeStore.editDict.chapterWords[index].length }}词 + + + + + + + + + + + + + + + 全选 + + {{ chapterIndex > -1 ? `第${chapterIndex + 1}章` : '' }} 单词列表 + + + + + + + + + {{ source.name }} + {{ source.usphone }} + + + + {{ item }} + + + + + + + + + + + 左 + + + 右 + + + + + + + 全选 + + 未分配单词列表 + + + + + + + + + + {{ source.name }} + {{ source.usphone }} + + + + {{ item }} + + + + + + + + + + + + {{ wordFormMode === FormMode.Add ? '添加' : '修改' }}单词 + + + + + + + + + + + + + + + + 关闭 + {{ + wordFormMode === FormMode.Add ? '添加' : '保存' + }} + + + + + + + + + + {{ dictForm.id ? '修改' : '添加' }}词典 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 关闭 + 确定 + + + + + + + + + + + + 为您自动创建章节以及分配单词 + 注意:已存在的章节将被删除! + + + 每章单词数 + 最小:10 + + 最大:{{ runtimeStore.editDict.words.length ?? 10 }} + + + 鼠标按住滑块,按键盘左右箭头可进行微调 + + + 将会创建 + + {{ Math.ceil(runtimeStore.editDict.words.length / chapterWordNumber) }}章 + + + + 每章 + + {{ chapterWordNumber }}个单词 + + + + 最后一章 + + {{ runtimeStore.editDict.words.length % chapterWordNumber }}个单词 + + + + + + + + + + + diff --git a/src/pages/dict/index.vue b/src/pages/dict/index.vue index 39a5f077..ff3e8795 100644 --- a/src/pages/dict/index.vue +++ b/src/pages/dict/index.vue @@ -1,1132 +1,16 @@ - - - - - - - - {{ item.name }} - - - - - - - - - - - - 翻译: - - {{ i }} - - - - - - - - - - - - - {{ runtimeStore.editDict.name }} - - - - - - - - - - 章节列表 - 智能分配 - - - - - - - - - 第{{ index + 1 }}章 - {{ runtimeStore.editDict.chapterWords[index].length }}词 - - - - - - - - - - - - - - - 全选 - - {{ chapterIndex > -1 ? `第${chapterIndex + 1}章` : '' }} 单词列表 - - - - - - - - - {{ source.name }} - {{ source.usphone }} - - - - {{ item }} - - - - - - - - - - - >左 - - - 右 - - - - - - - 全选 - - 未分配单词列表 - - - - - - - - - - {{ source.name }} - {{ source.usphone }} - - - - {{ item }} - - - - - - - - - - - - {{ wordFormMode === FormMode.Add ? '添加' : '修改' }}单词 - - - - - - - - - - - - - - - - 关闭 - {{ - wordFormMode === FormMode.Add ? '添加' : '保存' - }} - - - - - - - - - - {{ dictForm.id ? '修改' : '添加' }}词典 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 关闭 - 确定 - - - - - - + + - - - - 为您自动创建章节以及分配单词 - 注意:已存在的章节将被删除! - - - 每章单词数 - 最小:10 - - 最大:{{ runtimeStore.editDict.words.length ?? 10 }} - - - - 将会创建 - - {{ Math.round(runtimeStore.editDict.words.length / chapterWordNumber) }}章 - - - - 每章 - - {{ chapterWordNumber }}个单词 - - - - - - -