Added viewers, tree node viewers and fixed forms for new damage schema

This commit is contained in:
Thaum Rystra
2020-05-19 00:15:05 +02:00
parent 93ab67a91b
commit 4a039e769b
13 changed files with 196 additions and 11 deletions

View File

@@ -0,0 +1,31 @@
<template lang="html">
<div class="layout row align-center justify-start">
<property-icon
class="mr-2"
:type="model.type"
:class="selected && 'primary--text'"
/>
<div
class="text-no-wrap text-truncate"
>
<computed
class="mr-1"
:value="model.amount"
:expect-number="false"
/>
{{ model.damageType }} damage
</div>
</div>
</template>
<script>
import treeNodeViewMixin from '/imports/ui/properties/treeNodeViews/treeNodeViewMixin.js';
import ComputedForCreature from '/imports/ui/components/computation/ComputedForCreature.vue';
export default {
components: {
Computed: ComputedForCreature,
},
mixins: [treeNodeViewMixin],
}
</script>