0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-09 21:15:06 +00:00
VueTube/NUXT/components/ListRenderers/horizontalListRenderer.vue
2022-03-25 09:54:21 +13:00

39 lines
869 B
Vue

<template>
<div>
<v-list-item
v-for="(video, index) in render.items"
:key="index"
class="pa-0"
>
<component
v-if="getComponents()[Object.keys(video)[0]]"
:is="Object.keys(video)[0]"
:key="video[Object.keys(video)[0]].videoId"
:video="video[Object.keys(video)[0]]"
></component>
</v-list-item>
</div>
</template>
<script>
import compactVideoRenderer from "~/components/CompactRenderers/compactVideoRenderer.vue";
import gridVideoRenderer from "~/components/gridRenderers/gridVideoRenderer.vue";
export default {
components: {
gridVideoRenderer,
compactVideoRenderer,
},
props: ["render"],
methods: {
getComponents() {
return this.$options.components;
},
},
mounted() {
console.log("horizontalListRenderer received: ", this.render);
},
};
</script>