From cd48d46318437be2cde3206e5fff08267460c60c Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Thu, 21 Dec 2023 19:22:53 +0900 Subject: [PATCH] =?UTF-8?q?(add)=20AsideNav=E3=82=92=E5=80=8B=E5=88=A5?= =?UTF-8?q?=E3=81=A7=E9=96=8B=E9=96=89=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=20Fix=20#63?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/content/MkIndex.vue | 4 ++-- components/docs/AsideNav.vue | 23 ++++++++++++++++++----- components/g/LargeLinks.vue | 2 +- components/g/Links.vue | 2 +- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/components/content/MkIndex.vue b/components/content/MkIndex.vue index cc0b4584..77da4879 100644 --- a/components/content/MkIndex.vue +++ b/components/content/MkIndex.vue @@ -2,10 +2,10 @@

{{ item.navTitle || item.title }} diff --git a/components/docs/AsideNav.vue b/components/docs/AsideNav.vue index c5708c12..d0beabe3 100644 --- a/components/docs/AsideNav.vue +++ b/components/docs/AsideNav.vue @@ -8,7 +8,7 @@ :key="link.text" :class="[ depth === 2 && 'border-l-2 flex flex-col', - path.includes(link._path) ? 'border-accent-500' : 'border-gray-300', + path.includes(link._path) ? 'border-accent-500' : 'border-gray-300 dark:border-gray-600', ]" >
-
+
+
{{ link.title }}
@@ -51,6 +58,12 @@ import ArrowIco from "bi/chevron-right.svg"; const isAsideNavOpen = useState('miHub_docs_asideNav_openState', () => false); +const manualOpen = useState>('miHub-docs-aside-manual-collapse', () => ({})); + +onUnmounted(() => { + manualOpen.value = {}; +}); + const props = withDefaults(defineProps<{ links: NavItem[]; depth?: number; diff --git a/components/g/LargeLinks.vue b/components/g/LargeLinks.vue index 8d2d8c0c..6c49be42 100644 --- a/components/g/LargeLinks.vue +++ b/components/g/LargeLinks.vue @@ -1,6 +1,6 @@