diff --git a/components.d.ts b/components.d.ts index 8eff84d8..d480b586 100644 --- a/components.d.ts +++ b/components.d.ts @@ -65,7 +65,6 @@ declare module 'vue' { VirtualWordList2: typeof import('./src/components/list/VirtualWordList2.vue')['default'] VolumeIcon: typeof import('./src/components/icon/VolumeIcon.vue')['default'] VolumeSetting: typeof import('./src/components/toolbar/VolumeSetting.vue')['default'] - WordChapterList: typeof import('./src/components/list2/WordChapterList.vue')['default'] WordItem: typeof import('./src/components/list/WordItem.vue')['default'] WordList: typeof import('./src/components/list2/WordList.vue')['default'] WordListDialog: typeof import('./src/components/dialog/WordListDialog.vue')['default'] diff --git a/src/components/dialog/DictDiglog.vue b/src/components/dialog/DictDiglog.vue index 85f2f2ca..c1a509de 100644 --- a/src/components/dialog/DictDiglog.vue +++ b/src/components/dialog/DictDiglog.vue @@ -8,7 +8,6 @@ import BaseButton from "@/components/BaseButton.vue"; import {Icon} from '@iconify/vue'; import {ActivityCalendar} from "vue-activity-calendar"; import "vue-activity-calendar/style.css"; -import ChapterList from "@/components/list/ChapterList.vue"; import WordListDialog from "@/components/dialog/WordListDialog.vue"; import {isArticle} from "@/hooks/article.ts"; import {useRuntimeStore} from "@/stores/runtime.ts"; @@ -23,7 +22,7 @@ import {nanoid} from "nanoid"; import DictListPanel from "@/components/DictListPanel.vue"; import {useRouter} from "vue-router"; import ArticleList4 from "@/components/list2/ArticleList4.vue"; -import WordChapterList from "@/components/list2/WordChapterList.vue"; +import BaseList from "@/components/list2/BaseList.vue"; const store = useBaseStore() const settingStore = useSettingStore() @@ -78,7 +77,7 @@ async function selectDict(val: { dict: DictResource | Dict, index: number }) { } } } - chapterList2 = Array.from({length: runtimeStore.editDict.chapterWords.length}).map((v, i) => ({id: i})) + chapterList2 = runtimeStore.editDict.chapterWords.map((v, i) => ({id: i})) loading = false } @@ -341,18 +340,24 @@ function showWordListModal(val: { item: Word, index: number }) {