File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22import type { ContentNavigationItem } from ' @nuxt/content'
33import type { NavigationMenuItem } from ' @nuxt/ui'
44
5- defineProps <{
5+ const props = defineProps <{
66 links: NavigationMenuItem []
77}>()
88
99const config = useRuntimeConfig ().public
1010
1111const navigation = inject <Ref <ContentNavigationItem []>>(' navigation' )
1212
13- // const items = computed(() => props.links.map(({ icon, ...link }) => link))
13+ const items = computed (() => props .links .map (({ icon , ... link }) => link ))
1414
1515defineShortcuts ({
1616 meta_g : () => {
@@ -38,7 +38,10 @@ defineShortcuts({
3838 </NuxtLink >
3939 </template >
4040
41- <!-- <UNavigationMenu :items="items" variant="link" /> -->
41+ <UNavigationMenu
42+ :items =" items"
43+ variant =" link"
44+ />
4245
4346 <template #right >
4447 <UColorModeButton />
You can’t perform that action at this time.
0 commit comments