2020-07-10 20:13:11 -05:00
|
|
|
<template>
|
|
|
|
<!-- TODO: リファクタの余地がありそう -->
|
2020-12-26 03:33:54 -06:00
|
|
|
<XMainColumn v-if="column.type === 'main'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XWidgetsColumn v-else-if="column.type === 'widgets'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
2020-12-18 20:12:02 -06:00
|
|
|
<XNotificationsColumn v-else-if="column.type === 'notifications'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XTlColumn v-else-if="column.type === 'tl'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XListColumn v-else-if="column.type === 'list'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XAntennaColumn v-else-if="column.type === 'antenna'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XMentionsColumn v-else-if="column.type === 'mentions'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
|
|
|
<XDirectColumn v-else-if="column.type === 'direct'" :column="column" :is-stacked="isStacked" @parent-focus="$emit('parent-focus', $event)"/>
|
2020-07-10 20:13:11 -05:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 06:12:00 -05:00
|
|
|
import { defineComponent } from 'vue';
|
2020-12-26 03:33:54 -06:00
|
|
|
import XMainColumn from './main-column.vue';
|
2020-07-10 20:13:11 -05:00
|
|
|
import XTlColumn from './tl-column.vue';
|
|
|
|
import XAntennaColumn from './antenna-column.vue';
|
|
|
|
import XListColumn from './list-column.vue';
|
|
|
|
import XNotificationsColumn from './notifications-column.vue';
|
|
|
|
import XWidgetsColumn from './widgets-column.vue';
|
|
|
|
import XMentionsColumn from './mentions-column.vue';
|
|
|
|
import XDirectColumn from './direct-column.vue';
|
|
|
|
|
2020-10-17 06:12:00 -05:00
|
|
|
export default defineComponent({
|
2020-07-10 20:13:11 -05:00
|
|
|
components: {
|
2020-12-26 03:33:54 -06:00
|
|
|
XMainColumn,
|
2020-07-10 20:13:11 -05:00
|
|
|
XTlColumn,
|
|
|
|
XAntennaColumn,
|
|
|
|
XListColumn,
|
|
|
|
XNotificationsColumn,
|
|
|
|
XWidgetsColumn,
|
|
|
|
XMentionsColumn,
|
|
|
|
XDirectColumn
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
column: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
isStacked: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
focus() {
|
|
|
|
this.$children[0].focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|