diff --git a/src/pages/dict/components/ArticleDetail.vue b/src/pages/dict/components/ArticleDetail.vue index a8c63e1b..364685d6 100644 --- a/src/pages/dict/components/ArticleDetail.vue +++ b/src/pages/dict/components/ArticleDetail.vue @@ -7,13 +7,19 @@ import {useRuntimeStore} from "@/stores/runtime.ts"; import ArticleList3 from "@/components/list/ArticleList3.vue"; import {$ref} from "vue/macros"; import VirtualWordList2 from "@/components/list/VirtualWordList2.vue"; +import {cloneDeep} from "lodash-es"; +import {Article, DefaultArticle, TranslateType} from "@/types.ts"; const runtimeStore = useRuntimeStore() let chapterIndex = $ref(0) +let article: Article = $ref(cloneDeep(DefaultArticle)) function handleCheckedChange(val) { chapterIndex = val.index + article = val.data } + + +
+
①原文
+
+
标题:
+

{{ article.title }}

+
+
+
正文:
+

+ {{ article.text }} +

+
+
+
+
①原文
+
+
标题:
+

{{ article.titleTranslate }}

+
+
+
正文:
+

+ {{ article.textCustomTranslate }} +

+
+
@@ -99,6 +131,8 @@ function handleCheckedChange(val) { .article-detail { width: 100%; height: 100%; + display: flex; + gap: var(--space); .chapter-list { width: 400rem; @@ -146,5 +180,10 @@ function handleCheckedChange(val) { overflow: hidden; } } + + .article-content { + flex: 1; + overflow: auto; + } } \ No newline at end of file