2018-06-05 08:54:03 -05:00
|
|
|
<template>
|
|
|
|
<div>
|
2018-06-05 15:18:08 -05:00
|
|
|
<x-column :id="column.id">
|
2018-06-05 08:54:03 -05:00
|
|
|
<span slot="header">
|
2018-06-06 11:17:29 -05:00
|
|
|
<template v-if="column.type == 'home'">%fa:home%%i18n:common.deck.home%</template>
|
|
|
|
<template v-if="column.type == 'local'">%fa:R comments%%i18n:common.deck.local%</template>
|
|
|
|
<template v-if="column.type == 'global'">%fa:globe%%i18n:common.deck.global%</template>
|
2018-06-05 15:18:08 -05:00
|
|
|
<template v-if="column.type == 'list'">%fa:list%{{ column.list.title }}</template>
|
2018-06-05 08:54:03 -05:00
|
|
|
</span>
|
2018-06-05 15:18:08 -05:00
|
|
|
|
|
|
|
<x-list-tl v-if="column.type == 'list'" :list="column.list"/>
|
|
|
|
<x-tl v-else :src="column.type"/>
|
2018-06-05 08:54:03 -05:00
|
|
|
</x-column>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import XColumn from './deck.column.vue';
|
|
|
|
import XTl from './deck.tl.vue';
|
2018-06-05 15:18:08 -05:00
|
|
|
import XListTl from './deck.list-tl.vue';
|
2018-06-05 08:54:03 -05:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XColumn,
|
2018-06-05 15:18:08 -05:00
|
|
|
XTl,
|
|
|
|
XListTl
|
2018-06-05 08:54:03 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
2018-06-05 15:18:08 -05:00
|
|
|
column: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
2018-06-05 08:54:03 -05:00
|
|
|
}
|
2018-06-05 15:18:08 -05:00
|
|
|
}
|
2018-06-05 08:54:03 -05:00
|
|
|
});
|
|
|
|
</script>
|