From 08a2d2f8af8c175b46c73d165297f6d22ecae001 Mon Sep 17 00:00:00 2001 From: luckyasme <807254037@qq.com> Date: Wed, 12 Mar 2025 16:44:50 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E6=A3=80=E8=A7=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/style/highlight/atom-one-dark.scss | 2 +- .../src/assets/svg-icons/icon-outlink.svg | 12 ++ .../src/components/DocBugDialog.vue | 3 - .../src/components/FloatingButtonDocs.vue | 22 ++-- .../src/components/GiteeViewSource.vue | 61 ++++++++++ .../components/feedback/FeedbackSlider.vue | 6 +- .../{useRoute.ts => useLocation.ts} | 2 +- docs/.vitepress/src/layouts/LayoutDoc.vue | 105 +++++++++--------- docs/.vitepress/src/stores/menu.ts | 6 +- docs/.vitepress/src/utils/common.ts | 26 +++++ 10 files changed, 175 insertions(+), 70 deletions(-) create mode 100644 docs/.vitepress/src/assets/svg-icons/icon-outlink.svg create mode 100644 docs/.vitepress/src/components/GiteeViewSource.vue rename docs/.vitepress/src/composables/{useRoute.ts => useLocation.ts} (96%) diff --git a/docs/.vitepress/src/assets/style/highlight/atom-one-dark.scss b/docs/.vitepress/src/assets/style/highlight/atom-one-dark.scss index 5add95d..01e88d5 100644 --- a/docs/.vitepress/src/assets/style/highlight/atom-one-dark.scss +++ b/docs/.vitepress/src/assets/style/highlight/atom-one-dark.scss @@ -29,7 +29,7 @@ hue-6-2: #e6c07b */ .hljs { - color: #abb2bf; + color: var(--o-color-info2); background: #2b2b2f; } diff --git a/docs/.vitepress/src/assets/svg-icons/icon-outlink.svg b/docs/.vitepress/src/assets/svg-icons/icon-outlink.svg new file mode 100644 index 0000000..1bd3ac3 --- /dev/null +++ b/docs/.vitepress/src/assets/svg-icons/icon-outlink.svg @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/docs/.vitepress/src/components/DocBugDialog.vue b/docs/.vitepress/src/components/DocBugDialog.vue index cc5ea00..be5a28b 100644 --- a/docs/.vitepress/src/components/DocBugDialog.vue +++ b/docs/.vitepress/src/components/DocBugDialog.vue @@ -200,9 +200,6 @@ const change = (visible: boolean) => { diff --git a/docs/.vitepress/src/components/FloatingButtonDocs.vue b/docs/.vitepress/src/components/FloatingButtonDocs.vue index 0b7112a..8bff96a 100644 --- a/docs/.vitepress/src/components/FloatingButtonDocs.vue +++ b/docs/.vitepress/src/components/FloatingButtonDocs.vue @@ -87,7 +87,11 @@ const updateItemScore = (value: number, index: number) => { showPopup.value = true; }; -const updateItemScoreAfter = () => {}; +const updateItemScoreAfter = (index: number) => { + if (multiRate[index]) { + multiRate[index].isChange = true; + } +}; // -------------------- 论坛、issues -------------------- const floatData = reactive([ @@ -134,13 +138,13 @@ const marks_mb: Marks = Array(RATE_MAX_MB + 1) }, Object.create(null)); const floatDataMb = reactive([ - { + /* { img: computed(() => { return IconScore; }), id: 'score', textMb: '我要评分', - }, + }, */ ...floatData, ]); @@ -188,7 +192,7 @@ onUnmounted(() => {