2020-02-18 07:57:00 +00:00
|
|
|
<template>
|
2020-06-25 08:14:25 +00:00
|
|
|
<v-popover
|
|
|
|
offset="16"
|
|
|
|
trigger="hover"
|
|
|
|
class="popover"
|
|
|
|
:class="{ inline, clickable: actor && actor.type === ActorType.GROUP }"
|
|
|
|
>
|
2020-02-18 07:57:00 +00:00
|
|
|
<slot></slot>
|
|
|
|
<template slot="popover" class="popover">
|
2020-06-16 10:03:09 +00:00
|
|
|
<actor-card :full="true" :actor="actor" :popover="true" />
|
2020-02-18 07:57:00 +00:00
|
|
|
</template>
|
|
|
|
</v-popover>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue, Prop } from "vue-property-decorator";
|
2020-06-25 08:14:25 +00:00
|
|
|
import { IActor, ActorType } from "../../types/actor";
|
2020-02-18 07:57:00 +00:00
|
|
|
import ActorCard from "./ActorCard.vue";
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
ActorCard,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class PopoverActorCard extends Vue {
|
|
|
|
@Prop({ required: true, type: Object }) actor!: IActor;
|
|
|
|
|
|
|
|
@Prop({ required: false, type: Boolean, default: false }) inline!: boolean;
|
2020-06-25 08:14:25 +00:00
|
|
|
|
|
|
|
ActorType = ActorType;
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.inline {
|
|
|
|
display: inline;
|
|
|
|
}
|
2020-06-25 08:14:25 +00:00
|
|
|
.popover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|