修改移动端侧边导航栏

This commit is contained in:
2025-07-26 20:07:10 +08:00
parent e991e675aa
commit 2a07a42ccd
3 changed files with 10 additions and 31 deletions

View File

@@ -42,7 +42,7 @@
<!-- 总目录及展示页导航 -->
<div class="flex items-center px-8 p-1">
<ContentDirectory />
<DocsAsideLeftTop />
</div>
<!-- 分隔线 -->
@@ -59,30 +59,6 @@
<script setup lang="ts">
import type { ContentNavigationItem } from "@nuxt/content";
const { header } = useAppConfig();
// const searchQuery = ref("");
// 折叠状态管理
// const expandedGroups = ref<Set<string>>(new Set())
// 切换分组展开状态
// const toggleGroup = (groupPath: string) => {
// if (expandedGroups.value.has(groupPath)) {
// expandedGroups.value.delete(groupPath)
// } else {
// expandedGroups.value.add(groupPath)
// }
// }
// 检查分组是否展开
// const isGroupExpanded = (groupPath: string) => {
// return expandedGroups.value.has(groupPath)
// }
// // 使用官方的 queryCollectionNavigation 方法获取导航数据
// const { data: navigation, pending, error, refresh } = await useAsyncData('content-navigation', () => {
// return queryCollectionNavigation('docs', ['description'])
// })
const navigation = inject<Ref<ContentNavigationItem[]>>("navigation");
// const handleSearch = () => {