feat(NavigationMenu): control items open & defaultOpen on vertical

Resolves #2608
This commit is contained in:
Benjamin Canac
2024-11-12 11:12:19 +01:00
parent 3584a3328b
commit 30218f1b5b
3 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ const orientations = Object.keys(theme.variants.orientation)
const color = ref(theme.defaultVariants.color)
const highlightColor = ref()
const variant = ref(theme.defaultVariants.variant)
const orientation = ref('horizontal' as const)
const orientation = ref('vertical' as const)
const highlight = ref(true)
const items = [
@@ -16,6 +16,7 @@ const items = [
label: 'Documentation',
icon: 'i-lucide-book-open',
badge: 10,
defaultOpen: true,
children: [{
label: 'Introduction',
description: 'Fully styled and customizable components for Nuxt.',