mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 02:10:40 +01:00
@@ -1,31 +1,20 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const links = [{
|
const links = [{
|
||||||
label: 'Navigation',
|
label: 'Vertical Navigation',
|
||||||
children: [{
|
to: '/navigation/vertical-navigation'
|
||||||
label: 'Vertical Navigation',
|
|
||||||
to: '/navigation/vertical-navigation'
|
|
||||||
}, {
|
|
||||||
label: 'Command Palette',
|
|
||||||
to: '/navigation/command-palette'
|
|
||||||
}]
|
|
||||||
}, {
|
}, {
|
||||||
label: 'Data',
|
label: 'Command Palette',
|
||||||
children: [{
|
to: '/navigation/command-palette'
|
||||||
label: 'Table',
|
}, {
|
||||||
to: '/data/table'
|
label: 'Table',
|
||||||
}]
|
to: '/data/table'
|
||||||
}]
|
}]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UVerticalNavigation :links="links">
|
<UVerticalNavigation :links="links">
|
||||||
<template #default="{ link }">
|
<template #default="{ link }">
|
||||||
<div class="relative text-left w-full">
|
<span class="group-hover:text-primary relative">{{ link.label }}</span>
|
||||||
<div class="mb-2">
|
|
||||||
{{ link.label }}
|
|
||||||
</div>
|
|
||||||
<UVerticalNavigation v-if="link.children" :links="link.children" />
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</UVerticalNavigation>
|
</UVerticalNavigation>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user