mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: 搜索页面和一堆更新
This commit is contained in:
parent
4d7bc14827
commit
b4590c3c34
17 changed files with 279 additions and 87 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import React, { Fragment, memo } from 'react'
|
||||
import { memo } from 'react'
|
||||
import Button, { Color as ButtonColor } from '@/components/Button'
|
||||
import Skeleton from '@/components/Skeleton'
|
||||
import SvgIcon from '@/components/SvgIcon'
|
||||
|
|
@ -25,7 +25,7 @@ const Header = memo(
|
|||
const coverUrl = resizeImage(playlist?.coverImgUrl || '', 'lg')
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<>
|
||||
{/* Header background */}
|
||||
<div className='absolute top-0 left-0 z-0 h-[24rem] w-full overflow-hidden'>
|
||||
<img src={coverUrl} className='absolute top-0 w-full blur-[100px]' />
|
||||
|
|
@ -134,7 +134,7 @@ const Header = memo(
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Fragment>
|
||||
</>
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
@ -188,7 +188,7 @@ const Tracks = memo(
|
|||
}, [tracksPages])
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<>
|
||||
{isLoadingPlaylist ? (
|
||||
<TracksList tracks={[]} isSkeleton={true} />
|
||||
) : isLoadingTracks ? (
|
||||
|
|
@ -199,7 +199,7 @@ const Tracks = memo(
|
|||
) : (
|
||||
<TracksList tracks={tracks} onTrackDoubleClick={handlePlay} />
|
||||
)}
|
||||
</Fragment>
|
||||
</>
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue