mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-09 04:55:07 +00:00
36 lines
762 B
Vue
36 lines
762 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 gridVideoRenderer from "../GridRenderers/gridVideoRenderer.vue";
|
||
|
import compactVideoRenderer from "../CompactRenderers/compactVideoRenderer.vue";
|
||
|
|
||
|
export default {
|
||
|
components: {
|
||
|
gridVideoRenderer,
|
||
|
compactVideoRenderer,
|
||
|
},
|
||
|
props: ["render"],
|
||
|
|
||
|
methods: {
|
||
|
getComponents() {
|
||
|
return this.$options.components;
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
</script>
|