Skip to content

Commit

Permalink
Merge pull request imsyy#210 from first19326/dev
Browse files Browse the repository at this point in the history
修复了一些小问题
  • Loading branch information
imsyy authored Nov 3, 2023
2 parents 1716f53 + 17b278f commit 6c58920
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 7 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
</section>
</div>
<!-- 移动端菜单按钮 -->
<Icon class="menu" size="24" @click="store.mobileOpenState = !store.mobileOpenState">
<Icon
class="menu"
size="24"
v-show="!store.backgroundShow"
@click="store.mobileOpenState = !store.mobileOpenState"
>
<component :is="store.mobileOpenState ? CloseSmall : HamburgerButton" />
</Icon>
<!-- 页脚 -->
Expand Down Expand Up @@ -178,7 +183,7 @@ onBeforeUnmount(() => {
.i-icon {
transform: translateY(2px);
}
@media (min-width: 720px) {
@media (min-width: 721px) {
display: none;
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/Background.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="cover">
<div :class="store.backgroundShow ? 'cover show' : 'cover'">
<img
v-show="store.imgLoadStatus"
class="bg"
Expand Down Expand Up @@ -99,6 +99,10 @@ onBeforeUnmount(() => {
transition: 0.25s;
z-index: -1;
&.show {
z-index: 1;
}
.bg {
position: absolute;
left: 0;
Expand Down
8 changes: 1 addition & 7 deletions src/components/Music.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>
<!-- 音乐列表弹窗 -->
<Transition name="fade">
<Transition name="fade" mode="out-in">
<div class="music-list" v-show="musicListShow" @click="musicListShow = false">
<Transition name="zoom">
<div class="list" v-show="musicListShow" @click.stop>
Expand Down Expand Up @@ -281,12 +281,6 @@ watch(
}
// 弹窗动画
.fade-enter-active {
animation: fade 0.3s ease-in-out;
}
.fade-leave-active {
animation: fade 0.3s ease-in-out reverse;
}
.zoom-enter-active {
animation: zoom 0.4s ease-in-out;
}
Expand Down

0 comments on commit 6c58920

Please sign in to comment.