0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-29 06:33:05 +00:00
VueTube/NUXT/components/ListRenderers/verticalListRenderer.vue

36 lines
814 B
Vue
Raw Normal View History

2022-03-24 11:47:13 +00:00
<template>
2022-05-18 03:19:22 +00:00
<div class="fill-width">
2022-03-24 11:47:13 +00:00
<v-list-item
v-for="(video, index) in render.items"
:key="index"
2022-04-25 03:24:46 +00:00
class="pa-0 min-height-0"
2022-03-24 11:47:13 +00:00
>
<component
:is="Object.keys(video)[0]"
2022-05-18 03:19:22 +00:00
v-if="getComponents()[Object.keys(video)[0]]"
2022-03-24 11:47:13 +00:00
:key="video[Object.keys(video)[0]].videoId"
:video="video[Object.keys(video)[0]]"
></component>
</v-list-item>
</div>
</template>
<script>
2022-03-24 20:54:21 +00:00
import gridVideoRenderer from "~/components/gridRenderers/gridVideoRenderer.vue";
2022-03-24 20:46:17 +00:00
import compactVideoRenderer from "~/components/CompactRenderers/compactVideoRenderer.vue";
2022-03-24 11:47:13 +00:00
export default {
components: {
gridVideoRenderer,
compactVideoRenderer,
},
props: ["render"],
methods: {
getComponents() {
return this.$options.components;
},
},
};
</script>