mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
29 lines
550 B
Vue
29 lines
550 B
Vue
<template>
|
|
<v-list density="compact">
|
|
<v-list-item
|
|
v-for="(item, index) in items"
|
|
:key="index"
|
|
:value="item"
|
|
@click="item.onClick(obj)"
|
|
>
|
|
<template #prepend>
|
|
<v-icon :color="item.color" :icon="item.icon"></v-icon>
|
|
</template>
|
|
<v-list-item-title>{{ item.label }}</v-list-item-title>
|
|
</v-list-item>
|
|
</v-list>
|
|
</template>
|
|
|
|
<script setup lang="js">
|
|
defineProps({
|
|
items: {
|
|
type: Object,
|
|
default: () => {},
|
|
},
|
|
obj: {
|
|
type: Object,
|
|
default: () => {},
|
|
},
|
|
})
|
|
</script>
|