2018-09-17 17:14:12 +00:00
|
|
|
<template>
|
|
|
|
<x-column :name="name" :column="column" :is-stacked="isStacked">
|
2019-02-18 00:48:00 +00:00
|
|
|
<template v-slot:header><fa :icon="['far', 'envelope']"/>{{ name }}</template>
|
2018-09-17 17:14:12 +00:00
|
|
|
|
2018-10-21 07:18:02 +00:00
|
|
|
<x-direct/>
|
2018-09-17 17:14:12 +00:00
|
|
|
</x-column>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2019-02-14 20:08:59 +00:00
|
|
|
import i18n from '../../../i18n';
|
2018-09-17 17:14:12 +00:00
|
|
|
import XColumn from './deck.column.vue';
|
|
|
|
import XDirect from './deck.direct.vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
2018-11-08 18:44:35 +00:00
|
|
|
i18n: i18n(),
|
2018-09-17 17:14:12 +00: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 18:44:35 +00:00
|
|
|
return this.$t('@deck.direct');
|
2018-09-17 17:14:12 +00:00
|
|
|
}
|
|
|
|
},
|
2018-10-19 17:49:39 +00:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
focus() {
|
|
|
|
this.$refs.tl.focus();
|
2018-10-21 07:18:02 +00:00
|
|
|
}
|
2018-10-19 17:49:39 +00:00
|
|
|
}
|
2018-09-17 17:14:12 +00:00
|
|
|
});
|
|
|
|
</script>
|