{{ runtimeStore.editDict.name }}
@@ -210,15 +256,15 @@ let isAddWord = $ref(false)
-
+
添加单词
@@ -237,66 +283,86 @@ let isAddWord = $ref(false)
- 关闭
- 确定
+ 关闭
+ 确定
-
+
-
+
+
+
+
+
+
+ data.index = i"
- :list="runtimeStore.editDict.words"
- :activeIndex="data.index"/>
+ :list="store.currentDict.words"
+ :activeIndex="data.index">
+
+
+
+
+
+ ref="dictFormRef"
+ :rules="dictRules"
+ :model="dictForm"
+ label-width="120rem">
-
+
-
+
+ v-model="dictForm.languageCategory" placeholder="请选择选项">
-
-
+
+
-
+ v-model="dictForm.tags" placeholder="请选择选项">
+
-
+
返回
确定
-
+
@@ -324,6 +390,7 @@ let isAddWord = $ref(false)
.more-info {
display: grid;
grid-template-columns: repeat(2, 1fr);
+ display: none;
}
}
@@ -404,7 +471,7 @@ let isAddWord = $ref(false)
}
}
- .list {
+ .list-wrapper {
width: 350rem;
display: flex;
flex-direction: column;
@@ -427,6 +494,12 @@ let isAddWord = $ref(false)
}
}
}
+
+ .edit {
+ padding: 0 $space;
+ width: 100%;
+ box-sizing: border-box;
+ }
}
}
\ No newline at end of file
diff --git a/src/components/Modal/DictModal.vue b/src/components/Modal/DictModal.vue
index 014db094..6ef2c7fa 100644
--- a/src/components/Modal/DictModal.vue
+++ b/src/components/Modal/DictModal.vue
@@ -12,7 +12,7 @@ import DictGroup from "@/components/Toolbar/DictGroup.vue";
import {v4 as uuidv4} from "uuid";
import {ActivityCalendar} from "vue-activity-calendar";
import "vue-activity-calendar/style.css";
-import ChapterList from "@/components/ChapterList.vue";
+import ChapterList from "@/components/list/ChapterList.vue";
import WordListModal from "@/components/Modal/WordListModal.vue";
import {isArticle} from "@/hooks/article.ts";
import {useRuntimeStore} from "@/stores/runtime.ts";
diff --git a/src/components/Modal/WordListModal.vue b/src/components/Modal/WordListModal.vue
index 27c9e5ad..7c6e6cd1 100644
--- a/src/components/Modal/WordListModal.vue
+++ b/src/components/Modal/WordListModal.vue
@@ -6,7 +6,7 @@ import {$ref} from "vue/macros";
import {onMounted, onUnmounted, watch} from "vue";
import {usePlayWordAudio} from "@/hooks/sound.ts";
import {emitter, EventKey} from "@/utils/eventBus.ts";
-import ListItem from "@/components/ListItem.vue";
+import ListItem from "@/components/list/ListItem.vue";
import {Word} from "@/types.ts";
import {useRuntimeStore} from "@/stores/runtime.ts";
diff --git a/src/components/Practice/Panel.vue b/src/components/Practice/Panel.vue
index 57497f3f..1244cc26 100644
--- a/src/components/Practice/Panel.vue
+++ b/src/components/Practice/Panel.vue
@@ -1,6 +1,6 @@
+
+
+
+
+
+ {{ word.name }}
+ {{ word.usphone }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/WordList.vue b/src/components/list/WordList.vue
similarity index 95%
rename from src/components/WordList.vue
rename to src/components/list/WordList.vue
index 512c93f8..49e8f003 100644
--- a/src/components/WordList.vue
+++ b/src/components/list/WordList.vue
@@ -1,8 +1,8 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/stores/base.ts b/src/stores/base.ts
index 9e47c6d4..9448eacc 100644
--- a/src/stores/base.ts
+++ b/src/stores/base.ts
@@ -216,8 +216,8 @@ export const useBaseStore = defineStore('base', {
r.json().then(v => {
if (this.currentDict.translateLanguage === 'common') {
const runtimeStore = useRuntimeStore()
- fetch('./translate/en2zh_CN.json').then(r => {
- r.json().then((list: Word[]) => {
+ fetch('./translate/en2zh_CN.json').then(r2 => {
+ r2.json().then((list: Word[]) => {
runtimeStore.translateWordList = list
this.currentDict.originWords = cloneDeep(v)