From 9cf9f25f4424447691e03e9034155d1541badd43 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 22 May 2025 12:50:29 +0200 Subject: [PATCH] feat(NavigationMenu): add `trigger` type in items --- .../app/pages/components/navigation-menu.vue | 1 + src/runtime/components/NavigationMenu.vue | 25 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/playground/app/pages/components/navigation-menu.vue b/playground/app/pages/components/navigation-menu.vue index ce5be1fe..55413ad9 100644 --- a/playground/app/pages/components/navigation-menu.vue +++ b/playground/app/pages/components/navigation-menu.vue @@ -47,6 +47,7 @@ const items = [ label: 'Components', icon: 'i-lucide-box', to: '/components/navigation-menu', + type: 'trigger', active: true, defaultOpen: true, children: [{ diff --git a/src/runtime/components/NavigationMenu.vue b/src/runtime/components/NavigationMenu.vue index 2970fdae..87d236e7 100644 --- a/src/runtime/components/NavigationMenu.vue +++ b/src/runtime/components/NavigationMenu.vue @@ -42,10 +42,11 @@ export interface NavigationMenuItem extends Omit - + - - + + - - + + - - + + - +