mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
dropdown menu
This commit is contained in:
@@ -25,6 +25,26 @@ const getPercentage = () => {
|
|||||||
}
|
}
|
||||||
return Math.round((((props.media?.total_episode || 0) - (props.media?.lack_episode || 0)) / (props.media?.total_episode || 1)) * 100);
|
return Math.round((((props.media?.total_episode || 0) - (props.media?.lack_episode || 0)) / (props.media?.total_episode || 1)) * 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 弹出菜单
|
||||||
|
const dropdownItems = ref([
|
||||||
|
{
|
||||||
|
title: '编辑',
|
||||||
|
value: 1,
|
||||||
|
props: {
|
||||||
|
prependIcon: 'mdi-file-edit-outline',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '删除',
|
||||||
|
value: 2,
|
||||||
|
props: {
|
||||||
|
prependIcon: 'mdi-trash-can-outline',
|
||||||
|
color: 'error',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
])
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -42,7 +62,7 @@ const getPercentage = () => {
|
|||||||
</VCardTitle>
|
</VCardTitle>
|
||||||
<template #append>
|
<template #append>
|
||||||
<div class="me-n3">
|
<div class="me-n3">
|
||||||
<MoreBtn color="white" />
|
<MoreBtn color="white" :menu-list="dropdownItems" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user