2020-02-18 08:57:00 +01:00
|
|
|
<template>
|
2020-06-17 16:45:52 +02:00
|
|
|
<v-popover offset="16" trigger="hover" :class="{ inline }" class="clickable">
|
2020-02-18 08:57:00 +01:00
|
|
|
<slot></slot>
|
|
|
|
<template slot="popover" class="popover">
|
2020-06-16 12:03:09 +02:00
|
|
|
<actor-card :full="true" :actor="actor" :popover="true" />
|
2020-02-18 08:57:00 +01:00
|
|
|
</template>
|
|
|
|
</v-popover>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue, Prop } from "vue-property-decorator";
|
|
|
|
import { IActor } from "../../types/actor";
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.inline {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|