Overhaul of character action components, actions now consume resources

This commit is contained in:
Stefan Zermatten
2020-06-15 22:30:27 +02:00
parent dc18734d1f
commit 3f540d0f14
16 changed files with 502 additions and 179 deletions

View File

@@ -0,0 +1,30 @@
<template lang="html">
<component
:is="treeNodeView"
:model="model"
:selected="selected"
/>
</template>
<script>
import treeNodeViewIndex from '/imports/ui/properties/treeNodeViews/treeNodeViewIndex.js';
export default {
components: {
...treeNodeViewIndex
},
props: {
model: {
type: Object,
required: true,
},
selected: Boolean,
},
computed: {
treeNodeView(){
let type = this.model.type;
return treeNodeViewIndex[type] || treeNodeViewIndex.default;
},
}
}
</script>