feat torrents page

This commit is contained in:
jxxghp
2023-10-11 21:21:49 +08:00
parent 914239f434
commit c59d3e28b9
3 changed files with 206 additions and 181 deletions
+20
View File
@@ -0,0 +1,20 @@
<script lang="ts" setup>
import type { Context } from '@/api/types'
// 定义输入参数
defineProps({
// 数据列表
items: Array as PropType<Context[]>,
})
</script>
<template>
<VList lines="one">
<VListItem
v-for="item in items"
:key="`${item.torrent_info.title}_${item.torrent_info.site_name}_${item.torrent_info.page_url}`"
:title="item.torrent_info.title"
:subtitle="item.torrent_info.description"
/>
</VList>
</template>