2020-07-10 20:13:11 -05:00
|
|
|
<template>
|
|
|
|
<!-- TODO: リファクタの余地がありそう -->
|
2020-10-17 06:12:00 -05:00
|
|
|
<XWidgetsColumn v-if="column.type === 'widgets'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<XNotificationsColumn v-else-if="column.type === 'notifications'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<XTlColumn v-else-if="column.type === 'tl'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<XListColumn v-else-if="column.type === 'list'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<XAntennaColumn v-else-if="column.type === 'antenna'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<!-- TODO: <XTlColumn v-else-if="column.type === 'hashtag'" :column="column" :is-stacked="isStacked" v-on="$listeners"/> -->
|
|
|
|
<XMentionsColumn v-else-if="column.type === 'mentions'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
|
|
|
<XDirectColumn v-else-if="column.type === 'direct'" :column="column" :is-stacked="isStacked" v-on="$listeners"/>
|
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-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: {
|
|
|
|
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>
|