feat: 初步实现歌词界面

This commit is contained in:
qier222 2022-04-08 01:02:25 +08:00
parent 1eb38937fc
commit 530581ba82
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
15 changed files with 635 additions and 18 deletions

View file

@ -5,7 +5,7 @@ import SvgIcon from '@/components/SvgIcon'
import useUserLikedTracksIDs, {
useMutationLikeATrack,
} from '@/hooks/useUserLikedTracksIDs'
import { player } from '@/store'
import { player, state } from '@/store'
import { resizeImage } from '@/utils/common'
import { State as PlayerState, Mode as PlayerMode } from '@/utils/player'
@ -152,7 +152,9 @@ const Others = () => {
<IconButton onClick={() => toast('施工中...')}>
<SvgIcon className='h-6 w-6' name='volume' />
</IconButton>
<IconButton onClick={() => toast('施工中...')}>
{/* Lyric */}
<IconButton onClick={() => (state.uiStates.showLyricPanel = true)}>
<SvgIcon className='h-6 w-6' name='lyrics' />
</IconButton>
</div>