2018-06-05 15:54:03 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2018-06-05 22:18:08 +02:00
|
|
|
<x-column :id="column.id">
|
2018-06-05 15:54:03 +02:00
|
|
|
<span slot="header">
|
2018-06-06 18:17:29 +02: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 22:18:08 +02:00
|
|
|
<template v-if="column.type == 'list'">%fa:list%{{ column.list.title }}</template>
|
2018-06-05 15:54:03 +02:00
|
|
|
</span>
|
2018-06-05 22:18:08 +02:00
|
|
|
|
|
|
|
<x-list-tl v-if="column.type == 'list'" :list="column.list"/>
|
|
|
|
<x-tl v-else :src="column.type"/>
|
2018-06-05 15:54:03 +02: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 22:18:08 +02:00
|
|
|
import XListTl from './deck.list-tl.vue';
|
2018-06-05 15:54:03 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XColumn,
|
2018-06-05 22:18:08 +02:00
|
|
|
XTl,
|
|
|
|
XListTl
|
2018-06-05 15:54:03 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
2018-06-05 22:18:08 +02:00
|
|
|
column: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
2018-06-05 15:54:03 +02:00
|
|
|
}
|
2018-06-05 22:18:08 +02:00
|
|
|
}
|
2018-06-05 15:54:03 +02:00
|
|
|
});
|
|
|
|
</script>
|