feat(nav): add NavGroup and NavItem components for navigation structure

This commit is contained in:
2026-02-09 01:52:33 +08:00
parent 32e3f68cf5
commit 04d0d02f08
7 changed files with 199 additions and 177 deletions

View File

@@ -0,0 +1,7 @@
<script lang="ts" setup></script>
<template>
<div></div>
</template>
<style scoped></style>

View File

@@ -1,25 +1,16 @@
<script setup lang="ts">
const props = defineProps({
icon: {
type: String,
default: 'i-tabler-photo-filled',
},
label: {
type: String,
required: true,
},
to: {
type: String,
required: true,
},
admin: {
type: Boolean,
default: false,
},
hide: {
type: Boolean,
default: false,
},
export type NavItemProps = {
label: string
icon: string
to: string
admin?: boolean
hide?: boolean
}
const props = withDefaults(defineProps<NavItemProps>(), {
icon: 'i-tabler-photo-filled',
admin: false,
hide: false,
})
const route = useRoute()