|
|
@ -66,7 +66,7 @@ export default function SongCardList({ height, listInfo, songList, className, co
|
|
|
|
setAudioId(id);
|
|
|
|
setAudioId(id);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function Item({ index, style }: { index: number; style: React.CSSProperties }) {
|
|
|
|
function Item({ index }: { index: number }) {
|
|
|
|
const item = songList[index];
|
|
|
|
const item = songList[index];
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -77,7 +77,6 @@ export default function SongCardList({ height, listInfo, songList, className, co
|
|
|
|
showEq={item?.id === audioId}
|
|
|
|
showEq={item?.id === audioId}
|
|
|
|
onPlay={handlePlayList}
|
|
|
|
onPlay={handlePlayList}
|
|
|
|
showCollect={collectType === 'always' || (collectType === 'playing' && item.id === audioId)}
|
|
|
|
showCollect={collectType === 'always' || (collectType === 'playing' && item.id === audioId)}
|
|
|
|
style={style}
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|