docs(accordion): update

This commit is contained in:
Benjamin Canac
2024-07-24 17:22:12 +02:00
parent 3c1d8162ca
commit 8bac288687
7 changed files with 284 additions and 4 deletions

View File

@@ -8,12 +8,12 @@ const items = [
}
]
const active = ref('1')
const active = ref('0')
// Note: This is for demonstration purposes only.
onMounted(() => {
setInterval(() => {
active.value = active.value === '0' ? '1' : '0'
active.value = String((Number(active.value) + 1) % items.length)
}, 2000)
})
</script>