mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-25 00:37:24 +08:00
🐞 fix: 修复在歌词界面添加到歌单抽屉被遮挡问题
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
placement="right"
|
placement="right"
|
||||||
@update:show="$emit('update:modelValue', $event)"
|
@update:show="$emit('update:modelValue', $event)"
|
||||||
:unstable-show-mask="false"
|
:unstable-show-mask="false"
|
||||||
|
:show-mask="false"
|
||||||
>
|
>
|
||||||
<n-drawer-content :title="t('comp.playlistDrawer.title')" class="mac-style-drawer">
|
<n-drawer-content :title="t('comp.playlistDrawer.title')" class="mac-style-drawer">
|
||||||
<n-scrollbar class="h-full">
|
<n-scrollbar class="h-full">
|
||||||
|
|||||||
@@ -343,7 +343,12 @@ const playMusicEvent = async () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const musicFullVisible = ref(false);
|
const musicFullVisible = computed({
|
||||||
|
get: () => playerStore.musicFull,
|
||||||
|
set: (value) => {
|
||||||
|
playerStore.setMusicFull(value);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// 设置musicFull
|
// 设置musicFull
|
||||||
const setMusicFull = () => {
|
const setMusicFull = () => {
|
||||||
|
|||||||
@@ -125,6 +125,8 @@ const currentSongId = ref<number | undefined>();
|
|||||||
const openPlaylistDrawer = (songId: number, isOpen: boolean = true) => {
|
const openPlaylistDrawer = (songId: number, isOpen: boolean = true) => {
|
||||||
currentSongId.value = songId;
|
currentSongId.value = songId;
|
||||||
showPlaylistDrawer.value = isOpen;
|
showPlaylistDrawer.value = isOpen;
|
||||||
|
playerStore.setMusicFull(false);
|
||||||
|
playerStore.setPlayListDrawerVisible(!isOpen);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 将方法提供给全局
|
// 将方法提供给全局
|
||||||
|
|||||||
Reference in New Issue
Block a user