mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
docs(accordion): update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user