web / components /VodGrid.vue
hanbinsite's picture
feat: implement all web pages with player, search, favorites, auth, useApi composable
dfa6264
Raw History Blame Contribute Delete
355 Bytes
<template>
<div :class="gridClass">
<VodCard v-for="vod in list" :key="vod.id" :vod="vod" />
</div>
</template>
<script setup lang="ts">
import type { VodUserItem } from '~/types/vod'
defineProps<{ list: VodUserItem[] }>()
const gridClass = 'grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-3 sm:gap-4'
</script>