feat(nav): add NavGroup and NavItem components for navigation structure
This commit is contained in:
7
components/aigc/nav/NavGroup.vue
Normal file
7
components/aigc/nav/NavGroup.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user