多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
866 B

2 months ago
<script setup lang="ts">
import { YoutubeVue3 } from 'youtube-vue3'
import type { ProductFeedItem } from '../../../lib/types'
import { extractYoutubeVideoId } from '../../../utils/urlUtils'
2 months ago
const props = defineProps<{
item: ProductFeedItem
isRecent?: boolean
2 months ago
}>()
const {
item: { Title, Description, Url },
} = props
2 months ago
</script>
<template>
<div class="mt-6 border-b-1 border-gray-200">
<YoutubeVue3
:videoid="extractYoutubeVideoId(Url)"
class="!rounded-xl"
:height="470"
:width="764"
:autoplay="0"
:controls="1"
/>
<div class="flex flex-col py-5 gap-4">
<div class="text-gray-900 font-bold text-2xl">
{{ Title }}
</div>
<div class="text-gray-900">
{{ Description.length > 200 ? `${Description.slice(0, 280)}...` : Description }}
</div>
</div>
2 months ago
</div>
</template>