<template>
<div v-for="(item, index) in items" :key="index">
<span @click="item.open = !item.open">{{ item.question }}</span>
<span v-if="item.open">{{ item.answer }}</span>
</div>
</template>
<script>
export default {
data: {
faqs: [
{
open: false,
question: '...',
answer: '...',
},
],
},
}
</script>