2017-05-20 17:59:45 +00:00
|
|
|
<template lang="pug">
|
|
|
|
|
div
|
2017-05-21 13:38:33 +00:00
|
|
|
h4.popover-content-title {{ item.text() }}
|
|
|
|
|
.popover-content-text {{ item.notes() }}
|
2017-05-20 17:59:45 +00:00
|
|
|
.popover-content-attr(v-for="attr in ATTRIBUTES", :key="attr", v-once)
|
2017-05-21 13:38:33 +00:00
|
|
|
span.popover-content-attr-key {{ `${$t(attr)}: ` }}
|
|
|
|
|
span.popover-content-attr-val {{ `+${item[attr]}` }}
|
2017-05-20 17:59:45 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { mapState } from 'client/libs/store';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
item: {
|
|
|
|
|
type: Object,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapState({
|
|
|
|
|
ATTRIBUTES: 'constants.ATTRIBUTES',
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|