feat: 列表添加多选下载功能,支持批量选择和下载音乐

This commit is contained in:
alger
2025-06-04 20:19:44 +08:00
parent 3ac3159058
commit 1221101821
3 changed files with 93 additions and 2 deletions
@@ -126,7 +126,6 @@ const artists = computed(() => baseItem.value?.artists || []);
// 包装方法,避免直接访问可能为undefined的ref
const onToggleSelect = () => {
baseItem.value?.toggleSelect();
emit('select', props.item.id, !props.selected);
};
const onArtistClick = (id: number) => baseItem.value?.handleArtistClick(id);
const onToggleFavorite = (event: Event) => {
@@ -131,7 +131,6 @@ const artists = computed(() => baseItem.value?.artists || []);
// 包装方法,避免直接访问可能为undefined的ref
const onToggleSelect = () => {
baseItem.value?.toggleSelect();
emit('select', props.item.id, !props.selected);
};
const onImageLoad = (event: Event) => baseItem.value?.imageLoad(event);
const onArtistClick = (id: number) => baseItem.value?.handleArtistClick(id);