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

@@ -11,30 +11,19 @@
<div
class="text-no-wrap text-truncate"
>
<computed
class="mr-1"
:value="model.amount"
:expect-number="false"
/>
<span class="mr-1">
{{ model.damageType }}
</span>
<span v-if="model.damageType !== 'healing'">
damage
</span>
{{ model.amountResult }}
{{ model.damageType }}<span
v-if="model.damageType !== 'healing'"
>&nbsp;damage</span>
</div>
</div>
</template>
<script>
import treeNodeViewMixin from '/imports/ui/properties/treeNodeViews/treeNodeViewMixin.js';
import ComputedForCreature from '/imports/ui/components/computation/ComputedForCreature.vue';
import { getPropertyIcon } from '/imports/constants/PROPERTIES.js';
export default {
components: {
Computed: ComputedForCreature,
},
mixins: [treeNodeViewMixin],
computed: {
icon(){