docs(tabs): update examples

This commit is contained in:
Benjamin Canac
2024-07-24 14:22:02 +02:00
parent ecad41a7fa
commit e1b0936105
3 changed files with 30 additions and 27 deletions

View File

@@ -9,6 +9,13 @@ const items = [
]
const selected = ref('1')
// Note: This is for demonstration purposes only.
onMounted(() => {
setInterval(() => {
selected.value = selected.value === '0' ? '1' : '0'
}, 1000)
})
</script>
<template>