DemoMenuBasic.vue
654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script setup>
const menusVariant = [
'primary',
'secondary',
'success',
'info',
'warning',
'error',
]
const items = [
{
title: 'Option 1',
value: 'Option 1',
},
{
title: 'Option 2',
value: 'Option 2',
},
{
title: 'Option 3',
value: 'Option 3',
},
]
</script>
<template>
<div class="demo-space-x">
<VMenu
v-for="menu in menusVariant"
:key="menu"
>
<template #activator="{ props }">
<VBtn
:color="menu"
v-bind="props"
>
{{ menu }}
</VBtn>
</template>
<VList :items="items" />
</VMenu>
</div>
</template>