mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-28 03:32:29 +01:00
* fixes: show ten pets in a row - show pet / no feeding progress if mount already owned * fixes: disabled filter instead of hiding them * fixes: don't hide special pets - same item style for mounts * fixes: avatar changes of pet / mount * fixes: unfocus first dropdown-item by css * fixes: unfocus first dropdown-item by css (remove :focus style)- added "What does my pet like to eat?" popover
46 lines
863 B
Vue
46 lines
863 B
Vue
<template lang="pug">
|
|
b-popover(
|
|
:triggers="[showPopover?'hover':'']",
|
|
:placement="popoverPosition",
|
|
)
|
|
span(slot="content")
|
|
slot(name="popoverContent", :item="item")
|
|
|
|
.item-wrapper
|
|
.item(
|
|
:class="{'item-empty': emptyItem}",
|
|
)
|
|
slot(name="itemBadge", :item="item")
|
|
span.item-content(:class="itemContentClass")
|
|
</template>
|
|
|
|
<script>
|
|
import bPopover from 'bootstrap-vue/lib/components/popover';
|
|
|
|
export default {
|
|
components: {
|
|
bPopover,
|
|
},
|
|
props: {
|
|
item: {
|
|
type: Object,
|
|
},
|
|
itemContentClass: {
|
|
type: String,
|
|
},
|
|
emptyItem: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
popoverPosition: {
|
|
type: String,
|
|
default: 'bottom',
|
|
},
|
|
showPopover: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
},
|
|
};
|
|
</script>
|