This commit is contained in:
syuilo
2018-06-06 05:18:08 +09:00
parent 0d8c83f27c
commit 69b5de3346
11 changed files with 505 additions and 163 deletions

View File

@ -1,13 +1,15 @@
<template>
<div>
<x-column>
<x-column :id="column.id">
<span slot="header">
<template v-if="src == 'home'">%fa:home% %i18n:@home%</template>
<template v-if="src == 'local'">%fa:R comments% %i18n:@local%</template>
<template v-if="src == 'global'">%fa:globe% %i18n:@global%</template>
<template v-if="src == 'list'">%fa:list% {{ list.title }}</template>
<template v-if="column.type == 'home'">%fa:home%%i18n:@home%</template>
<template v-if="column.type == 'local'">%fa:R comments%%i18n:@local%</template>
<template v-if="column.type == 'global'">%fa:globe%%i18n:@global%</template>
<template v-if="column.type == 'list'">%fa:list%{{ column.list.title }}</template>
</span>
<x-tl :src="src"/>
<x-list-tl v-if="column.type == 'list'" :list="column.list"/>
<x-tl v-else :src="column.type"/>
</x-column>
</div>
</template>
@ -16,18 +18,20 @@
import Vue from 'vue';
import XColumn from './deck.column.vue';
import XTl from './deck.tl.vue';
import XListTl from './deck.list-tl.vue';
export default Vue.extend({
components: {
XColumn,
XTl
XTl,
XListTl
},
props: {
src: {
type: String,
required: false
column: {
type: Object,
required: true
}
},
}
});
</script>