This commit is contained in:
jxxghp
2023-07-02 19:32:25 +08:00
parent a1ee522b83
commit 501a470607
2 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const getPercentage = () => {
// 速度 // 速度
const getSpeedText = () => { const getSpeedText = () => {
return `${props.info?.upspeed}B/s ↓${props.info?.dlspeed}B/s`; return ` ${props.info?.upspeed}/s ↓ ${props.info?.dlspeed}/s`;
}; };
// 下载状态 // 下载状态
+22 -3
View File
@@ -42,6 +42,25 @@ const getStatusColor = (status: boolean) => {
return status ? "success" : "error"; return status ? "success" : "error";
}; };
// 弹出菜单
const dropdownItems = ref([
{
title: '重新整理',
value: 1,
props: {
prependIcon: 'mdi-redo-variant',
},
},
{
title: '删除',
value: 2,
props: {
prependIcon: 'mdi-trash-can-outline',
color: 'error',
},
}
])
// 加载时获取数据 // 加载时获取数据
onMounted(fetchData); onMounted(fetchData);
</script> </script>
@@ -60,8 +79,8 @@ onMounted(fetchData);
<template #item.title="{ item }"> <template #item.title="{ item }">
<div class="d-flex"> <div class="d-flex">
<VAvatar><VIcon :icon="getIcon(item.raw.type || '')"></VIcon></VAvatar> <VAvatar><VIcon :icon="getIcon(item.raw.type || '')"></VIcon></VAvatar>
<div class="d-flex flex-column ms-1 text-high-emphasis"> <div class="d-flex flex-column ms-1">
<span class="d-block whitespace-nowrap"> <span class="d-block whitespace-nowrap text-high-emphasis">
{{ item.raw.title }} {{ item.raw.seasons }}{{ item.raw.episodes }} {{ item.raw.title }} {{ item.raw.seasons }}{{ item.raw.episodes }}
</span> </span>
<small>{{ item.raw.category }}</small> <small>{{ item.raw.category }}</small>
@@ -86,7 +105,7 @@ onMounted(fetchData);
{{ item.raw.errmsg }} {{ item.raw.errmsg }}
</template> </template>
<template #item.actions="{ item }"> <template #item.actions="{ item }">
<MoreBtn /> <MoreBtn :item-props="true" :menu-list="dropdownItems" />
</template> </template>
<template #no-data> 没有数据 </template> <template #no-data> 没有数据 </template>
</VDataTable> </VDataTable>