mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-19 15:19:30 +08:00
fix types
This commit is contained in:
20
src/components/cards/MediaCard.vue
Normal file
20
src/components/cards/MediaCard.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts" setup>
|
||||
import { MediaInfo } from "@/api/types";
|
||||
|
||||
// 输入参数
|
||||
const props = defineProps({
|
||||
media: Object as PropType<MediaInfo>
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VResponsive aspect-ratio="1/2" max-width="11rem">
|
||||
<VCard>
|
||||
<VImg
|
||||
:src="props.media?.poster_path"
|
||||
cover
|
||||
/>
|
||||
</VCard>
|
||||
</VResponsive>
|
||||
</template>
|
||||
Reference in New Issue
Block a user