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