mizzkey/src/client/app/common/views/deck/deck.column-template.vue

46 lines
556 B
Vue
Raw Normal View History

2019-02-15 22:50:58 +01:00
<template>
<x-column>
2019-02-18 03:13:56 +01:00
<template #header>
2019-05-18 13:36:33 +02:00
<fa :icon="icon"/>{{ title }}
2019-02-18 01:48:00 +01:00
</template>
2019-02-15 22:50:58 +01:00
<div>
2019-05-18 13:36:33 +02:00
<component :is="component" @init="init" v-bind="$attrs"/>
2019-02-15 22:50:58 +01:00
</div>
</x-column>
</template>
<script lang="ts">
import Vue from 'vue';
import XColumn from './deck.column.vue';
export default Vue.extend({
components: {
XColumn,
2019-05-18 13:36:33 +02:00
},
props: {
component: {
required: true
}
2019-02-15 22:50:58 +01:00
},
data() {
return {
2019-05-18 13:36:33 +02:00
title: null,
icon: null,
2019-02-15 22:50:58 +01:00
};
2019-05-18 13:36:33 +02:00
},
mounted() {
},
methods: {
init(v) {
this.title = v.title;
this.icon = v.icon;
}
2019-02-15 22:50:58 +01:00
}
});
</script>