mirror of
https://github.com/romancm/gamebrary
synced 2024-12-24 18:13:16 +00:00
26 lines
461 B
Vue
26 lines
461 B
Vue
|
<template lang="html">
|
||
|
<b-tab v-if="game.videos">
|
||
|
<template v-slot:title>
|
||
|
Videos
|
||
|
<b-badge>{{ game.videos.length }}</b-badge>
|
||
|
</template>
|
||
|
|
||
|
<b-embed
|
||
|
v-for="{ video_id } in game.videos"
|
||
|
:key="video_id"
|
||
|
type="iframe"
|
||
|
aspect="16by9"
|
||
|
:src="`https://www.youtube.com/embed/${video_id}`"
|
||
|
allowfullscreen
|
||
|
/>
|
||
|
</b-tab>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: {
|
||
|
game: Object,
|
||
|
},
|
||
|
};
|
||
|
</script>
|