From 46c2987ebfd30b2b071a96a745b7270e852e96de Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Sat, 10 May 2025 13:09:17 +0200 Subject: [PATCH] feat(NavigationMenu): handle `tooltip` in items Resolves #4050 --- src/runtime/components/NavigationMenu.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/NavigationMenu.vue b/src/runtime/components/NavigationMenu.vue index ed46489a..f7fb0c43 100644 --- a/src/runtime/components/NavigationMenu.vue +++ b/src/runtime/components/NavigationMenu.vue @@ -3,7 +3,7 @@ import type { NavigationMenuRootProps, NavigationMenuRootEmits, NavigationMenuContentProps, NavigationMenuContentEmits, CollapsibleRootProps } from 'reka-ui' import type { AppConfig } from '@nuxt/schema' import theme from '#build/ui/navigation-menu' -import type { AvatarProps, BadgeProps, LinkProps } from '../types' +import type { AvatarProps, BadgeProps, LinkProps, TooltipProps } from '../types' import type { ArrayOrNested, DynamicSlots, MergeTypes, NestedItem, EmitsToProps, ComponentConfig } from '../types/utils' type NavigationMenu = ComponentConfig @@ -26,6 +26,12 @@ export interface NavigationMenuItem extends Omit>(), { orientation: 'horizontal', @@ -256,7 +263,12 @@ const lists = computed(() => :disabled="item.disabled" @select="item.onSelect" > - + + + + + +