This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/components/Answer.vue

18 lines
571 B
Vue
Raw Normal View History

2021-04-08 05:37:31 -07:00
<template>
2021-04-08 09:15:54 -07:00
<details v-if="$t('faq.questions.' + question, [], false)" :class="['border mb-3', small ? 'small' : '']" @click="$emit('click')">
2021-04-08 05:37:31 -07:00
<summary :class="['bg-light', small ? 'p-2' : 'p-3']"><T>faq.questions.{{question}}.question</T></summary>
<div :class="['border-top', small ? 'p-2' : 'p-3']">
<T>faq.questions.{{question}}.answer</T>
</div>
</details>
</template>
<script>
export default {
props: {
question: { required: true },
small: { type: Boolean },
}
}
</script>