From 0f10d9882099256a77b86e5786a7e2ee71c83d46 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 16 Apr 2024 17:28:18 +0200 Subject: [PATCH] feat(NavigationMenu): pass `index` to slots --- src/runtime/components/NavigationMenu.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/runtime/components/NavigationMenu.vue b/src/runtime/components/NavigationMenu.vue index c421609b..1ef4cf97 100644 --- a/src/runtime/components/NavigationMenu.vue +++ b/src/runtime/components/NavigationMenu.vue @@ -28,7 +28,7 @@ export interface NavigationMenuProps extends Omit = (props: { link: T, active: boolean }) => any +type SlotProps = (props: { link: T, active: boolean, index: number }) => any export interface NavigationMenuSlots { leading: SlotProps @@ -57,25 +57,25 @@ const lists = computed(() => props.links?.length ? (Array.isArray(props.links[0]