35 lines
716 B
Vue
35 lines
716 B
Vue
<template lang="html">
|
|
<v-card :color="model.color" :data-id="model._id" hover @click="clickProperty(model._id)">
|
|
<v-card-title class="title">
|
|
{{model.name}}
|
|
</v-card-title>
|
|
<v-card-text>
|
|
<property-description :value="model.description"/>
|
|
</v-card-text>
|
|
</v-card>
|
|
</template>
|
|
|
|
<script>
|
|
import PropertyDescription from '/imports/ui/properties/viewers/shared/PropertyDescription.vue';
|
|
export default {
|
|
components: {
|
|
PropertyDescription,
|
|
},
|
|
props: {
|
|
model: Object,
|
|
},
|
|
methods: {
|
|
clickProperty(_id){
|
|
this.$store.commit('pushDialogStack', {
|
|
component: 'creature-property-dialog',
|
|
elementId: `${_id}`,
|
|
data: {_id},
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="css" scoped>
|
|
</style>
|