2018-09-17 19:14:12 +02:00
|
|
|
<template>
|
|
|
|
<x-column :name="name" :column="column" :is-stacked="isStacked">
|
2018-11-05 17:40:11 +01:00
|
|
|
<span slot="header"><fa :icon="['far', 'envelope']"/>{{ name }}</span>
|
2018-09-17 19:14:12 +02:00
|
|
|
|
2018-10-21 09:18:02 +02:00
|
|
|
<x-direct/>
|
2018-09-17 19:14:12 +02:00
|
|
|
</x-column>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2019-02-14 21:08:59 +01:00
|
|
|
import i18n from '../../../i18n';
|
2018-09-17 19:14:12 +02:00
|
|
|
import XColumn from './deck.column.vue';
|
|
|
|
import XDirect from './deck.direct.vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 19:44:35 +01:00
|
|
|
i18n: i18n(),
|
2018-09-17 19:14:12 +02:00
|
|
|
components: {
|
|
|
|
XColumn,
|
|
|
|
XDirect
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
column: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
isStacked: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
name(): string {
|
|
|
|
if (this.column.name) return this.column.name;
|
2018-11-08 19:44:35 +01:00
|
|
|
return this.$t('@deck.direct');
|
2018-09-17 19:14:12 +02:00
|
|
|
}
|
|
|
|
},
|
2018-10-19 19:49:39 +02:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
focus() {
|
|
|
|
this.$refs.tl.focus();
|
2018-10-21 09:18:02 +02:00
|
|
|
}
|
2018-10-19 19:49:39 +02:00
|
|
|
}
|
2018-09-17 19:14:12 +02:00
|
|
|
});
|
|
|
|
</script>
|