mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
28 lines
589 B
Vue
28 lines
589 B
Vue
<template>
|
|
<UMain>
|
|
<UContainer>
|
|
<UPage>
|
|
<template #left>
|
|
<UAside>
|
|
<template #top>
|
|
<AsideTabs />
|
|
</template>
|
|
|
|
<UNavigationTree :links="mapContentNavigation(navigation)" />
|
|
</UAside>
|
|
</template>
|
|
|
|
<slot />
|
|
</UPage>
|
|
</UContainer>
|
|
</UMain>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { NavItem } from '@nuxt/content'
|
|
|
|
const nav = inject<Ref<NavItem[]>>('navigation')
|
|
|
|
const navigation = computed(() => nav.value.filter(item => !item._path.startsWith('/pro')))
|
|
</script>
|