mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 06:23:41 +09:00
41 lines
867 B
Markdown
41 lines
867 B
Markdown
### VCollapse
|
|
|
|
Vuero provides 2 collapse component variations:
|
|
`<VCollapse />` and `<VCollapse with-chevron />`.
|
|
There are 2 available variations that you can use to change the
|
|
collapse header icon. Pass an **Array** to the `items` props to render
|
|
the chosen collapse component. Check markup for more details.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
const data = [
|
|
{
|
|
title: 'Accordion Item 1',
|
|
content: 'Sed ut perspiciatis unde omnis iste ...',
|
|
},
|
|
{
|
|
title: 'Accordion Item 2',
|
|
content: 'Sed ut perspiciatis unde omnis iste ...',
|
|
},
|
|
{
|
|
title: 'Accordion Item 3',
|
|
content: 'Sed ut perspiciatis unde omnis iste ...',
|
|
},
|
|
]
|
|
</script>
|
|
|
|
<template>
|
|
<div class="column is-6">
|
|
<VCollapse :items="data" />
|
|
</div>
|
|
|
|
<div class="column is-6">
|
|
<VCollapse :items="data" with-chevron />
|
|
</div>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|