2017-11-13 01:23:39 -05:00
|
|
|
<template lang="html">
|
2018-03-30 17:58:56 -04:00
|
|
|
<div v-if="item.contents" :class="classes">
|
|
|
|
<header v-if="! item.no_header">
|
|
|
|
{{ t(item.i18n_key, item.title, item) }}
|
|
|
|
</header>
|
|
|
|
<section
|
|
|
|
v-if="item.description"
|
|
|
|
class="tw-pd-b-1"
|
|
|
|
v-html="t(item.desc_i18n_key, item.description, item)"
|
2017-11-13 01:23:39 -05:00
|
|
|
/>
|
2018-03-30 17:58:56 -04:00
|
|
|
<component
|
|
|
|
v-for="i in item.contents"
|
|
|
|
:is="i.component"
|
|
|
|
:context="context"
|
|
|
|
:item="i"
|
|
|
|
:key="i.full_key"
|
2017-11-13 01:23:39 -05:00
|
|
|
/>
|
2018-03-30 17:58:56 -04:00
|
|
|
</div>
|
2017-11-13 01:23:39 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ['item', 'context'],
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
classes() {
|
|
|
|
return [
|
|
|
|
'ffz--menu-container',
|
2017-12-13 17:35:20 -05:00
|
|
|
this.item.full_box ? 'tw-border' : 'tw-border-t'
|
2017-11-13 01:23:39 -05:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|