dropdown menu

This commit is contained in:
jxxghp
2023-07-02 11:47:46 +08:00
parent 8ee6b0900f
commit 05bdefb059
+21 -1
View File
@@ -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>