mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
43 lines
1.1 KiB
Vue
43 lines
1.1 KiB
Vue
<script setup lang="ts">
|
|
extendCompodiumMeta({
|
|
defaultProps: {
|
|
items: [
|
|
{
|
|
label: 'app',
|
|
icon: 'i-lucide-folder',
|
|
defaultExpanded: true,
|
|
children: [{
|
|
label: 'composables',
|
|
icon: 'i-lucide-folder',
|
|
defaultExpanded: true,
|
|
children: [
|
|
{ label: 'useAuth.ts', icon: 'vscode-icons:file-type-typescript' },
|
|
{ label: 'useUser.ts', icon: 'vscode-icons:file-type-typescript' }
|
|
]
|
|
},
|
|
{
|
|
label: 'components',
|
|
icon: 'i-lucide-folder',
|
|
children: [
|
|
{
|
|
label: 'Home',
|
|
icon: 'i-lucide-folder',
|
|
children: [
|
|
{ label: 'Card.vue', icon: 'vscode-icons:file-type-vue' },
|
|
{ label: 'Button.vue', icon: 'vscode-icons:file-type-vue' }
|
|
]
|
|
}
|
|
]
|
|
}]
|
|
},
|
|
{ label: 'app.vue', icon: 'vscode-icons:file-type-vue' },
|
|
{ label: 'nuxt.config.ts', icon: 'vscode-icons:file-type-nuxt' }
|
|
]
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<UTree />
|
|
</template>
|