Removed all UI computations from viewers and components

This commit is contained in:
Stefan Zermatten
2021-01-31 18:42:17 +02:00
parent a5284bf6e8
commit aee899e181
27 changed files with 107 additions and 232 deletions

View File

@@ -71,7 +71,10 @@
/>
</template>
<template v-if="model.summary">
<property-description :value="model.summary" />
<property-description
:string="model.summary"
:calculations="model.summaryCalculations"
/>
<v-divider
v-if="children.length"
class="my-2"

View File

@@ -53,22 +53,14 @@
@mouseleave="hover = false"
>
<v-list-tile-title>
{{ model.hitDiceSize }} <computed
class="d-inline"
signed
value="constitution.modifier"
/>
{{ model.hitDiceSize }} {{ model.constitutionMod }}
</v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
</template>
<script>
import ComputedForCreature from '/imports/ui/components/computation/ComputedForCreature.vue';
export default {
components: {
Computed: ComputedForCreature,
},
inject: {
context: { default: {} }
},

View File

@@ -11,7 +11,10 @@
{{ model.name }}
</v-card-title>
<v-card-text>
<property-description :value="model.description" />
<property-description
:string="model.description"
:calculations="model.descriptionCalculations"
/>
</v-card-text>
</v-card>
</template>