DemoTabsGrow.vue
757 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
<script setup>
const currentTab = ref('Appetizers')
const items = [
'Appetizers',
'Entrees',
'Deserts',
'Cocktails',
]
const tabItemText = 'hortbread chocolate bar marshmallow bear claw tiramisu chocolate cookie wafer. Gummies sweet brownie brownie marshmallow chocolate cake pastry. Topping macaroon shortbread liquorice dragée macaroon.'
</script>
<template>
<VTabs
v-model="currentTab"
grow
>
<VTab
v-for="item in items"
:key="item"
:value="item"
>
{{ item }}
</VTab>
</VTabs>
<VWindow
v-model="currentTab"
class="mt-6"
>
<VWindowItem
v-for="item in items"
:key="item"
:value="item"
>
{{ tabItemText }}
</VWindowItem>
</VWindow>
</template>