diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-18 20:36:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-18 20:36:33 +0900 |
| commit | c7cc3dcdfd2c0962a39e7186852a17dbd09b6a5b (patch) | |
| tree | c2e1671787c00daa8963c879dba6fbdab6f02d66 /src/client/app/common/views/deck/deck.column-template.vue | |
| parent | Fix bug (diff) | |
| download | sharkey-c7cc3dcdfd2c0962a39e7186852a17dbd09b6a5b.tar.gz sharkey-c7cc3dcdfd2c0962a39e7186852a17dbd09b6a5b.tar.bz2 sharkey-c7cc3dcdfd2c0962a39e7186852a17dbd09b6a5b.zip | |
ユーザーグループ
Resolve #3218
Diffstat (limited to 'src/client/app/common/views/deck/deck.column-template.vue')
| -rw-r--r-- | src/client/app/common/views/deck/deck.column-template.vue | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/client/app/common/views/deck/deck.column-template.vue b/src/client/app/common/views/deck/deck.column-template.vue new file mode 100644 index 0000000000..09583de4b2 --- /dev/null +++ b/src/client/app/common/views/deck/deck.column-template.vue @@ -0,0 +1,45 @@ +<template> +<x-column> + <template #header> + <fa :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> |