mizzkey/src/client/app/common/views/deck/deck.column-template.vue
2019-05-18 21:22:37 +09:00

46 lines
568 B
Vue

<template>
<x-column>
<template #header>
<fa v-if="icon" :icon="icon"/>{{ title }}
</template>
<div>
<component :is="component" @init="init" v-bind="$attrs"/>
</div>
</x-column>
</template>
<script lang="ts">
import Vue from 'vue';
import XColumn from './deck.column.vue';
export default Vue.extend({
components: {
XColumn,
},
props: {
component: {
required: true
}
},
data() {
return {
title: null,
icon: null,
};
},
mounted() {
},
methods: {
init(v) {
this.title = v.title;
this.icon = v.icon;
}
}
});
</script>