Added viewers, tree node viewers and fixed forms for new damage schema
This commit is contained in:
31
app/imports/ui/properties/treeNodeViews/DamageTreeNode.vue
Normal file
31
app/imports/ui/properties/treeNodeViews/DamageTreeNode.vue
Normal 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>
|
||||
Reference in New Issue
Block a user