mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(Tabs): improve
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
const items = [
|
||||
{
|
||||
label: 'Account'
|
||||
},
|
||||
{
|
||||
label: 'Password'
|
||||
}
|
||||
]
|
||||
|
||||
const active = ref('1')
|
||||
|
||||
// Note: This is for demonstration purposes only.
|
||||
onMounted(() => {
|
||||
setInterval(() => {
|
||||
active.value = active.value === '0' ? '1' : '0'
|
||||
}, 2000)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UTabs v-model="active" :content="false" :items="items" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user