Files
panel/resources/js/views/demos/components/tabs/DemoTabsFixed.vue

42 lines
864 B
Vue
Raw Normal View History

2025-08-04 16:33:07 +03:30
<script setup>
const currentTab = ref('Appetizers')
const items = [
'Fixed Tab 1',
'Fixed Tab 2',
'Fixed Tab 3',
'Fixed Tab 4',
]
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>
<VCard>
<VTabs
v-model="currentTab"
fixed-tabs
>
<VTab
v-for="item in items"
:key="item"
:value="item"
>
{{ item }}
</VTab>
</VTabs>
<VCardText>
<VWindow v-model="currentTab">
<VWindowItem
v-for="item in items"
:key="item"
:value="item"
>
{{ tabItemText }}
</VWindowItem>
</VWindow>
</VCardText>
</VCard>
</template>