diff --git a/src/components/AudioPlayer/PlayerCard.tsx b/src/components/AudioPlayer/PlayerCard.tsx index f2e78f4..c22f6a4 100644 --- a/src/components/AudioPlayer/PlayerCard.tsx +++ b/src/components/AudioPlayer/PlayerCard.tsx @@ -8,7 +8,7 @@ import clientHttp from '@/utils/request/client'; import styles from './index.module.css'; import Lrc from './Lrc'; -import SongCardList from './widget/SongList'; +import SongList from './widget/SongList'; import { Header } from '@/components'; import { useAudioStore } from '@/store'; @@ -150,7 +150,7 @@ export default function PlayerCard({ show, className }: Prop) {
- +
diff --git a/src/components/AudioPlayer/widget/SongList.tsx b/src/components/AudioPlayer/widget/SongList.tsx index 204895b..2addefe 100644 --- a/src/components/AudioPlayer/widget/SongList.tsx +++ b/src/components/AudioPlayer/widget/SongList.tsx @@ -25,7 +25,6 @@ interface Props { /** 收藏按钮的显示逻辑 always: 总是显示 playing: 播放时显示 */ collectType?: 'always' | 'playing'; className?: string; - style?: React.CSSProperties; } export default function SongCardList({ height, listInfo, songList, className, collectType = 'always', style }: Props) { @@ -66,12 +65,11 @@ export default function SongCardList({ height, listInfo, songList, className, co setAudioId(id); }; - function Item({ index }: { index: number }) { + function Item({ index, style }: { index: number; style: React.CSSProperties }) { const item = songList[index]; return ( -
+