website/pages/docs.vue

26 lines
626 B
Vue
Raw Permalink Normal View History

2024-05-25 15:20:10 +08:00
<script setup lang="ts">
import type { NavItem } from '@nuxt/content/dist/runtime/types'
const navigation = inject<Ref<NavItem[]>>('navigation', ref([]))
const links = computed(() => navigation.value.find((item) => item._path === '/docs')?.children ?? [])
</script>
<template>
<UContainer>
<UPage>
<template #left>
<UAside>
<template #top>
<UContentSearchButton class="rounded-md" size="sm" />
</template>
<UNavigationTree :links="mapContentNavigation(links)" />
</UAside>
</template>
<NuxtPage />
</UPage>
</UContainer>
</template>