添加首页歌单cat跳转

This commit is contained in:
alger
2021-10-08 17:16:33 +08:00
parent db259e0090
commit 0bbc2558a5
6 changed files with 120 additions and 14 deletions
+41
View File
@@ -0,0 +1,41 @@
<script lang="ts" setup>
import { computed, ref } from 'vue';
import { setAnimationClass, setAnimationDelay } from "@/utils";
const props = defineProps({
showPop: {
type: Boolean,
default: false
},
showClose: {
type: Boolean,
default: true
},
})
const musicFullClass = computed(() => {
if (props.showPop) {
return setAnimationClass('animate__fadeInUp')
} else {
return setAnimationClass('animate__fadeOutDown')
}
})
</script>
<template>
<div class="pop-page" v-show="props.showPop" :class="musicFullClass">
<i class="iconfont icon-icon_error close" v-if="props.showClose" @click="close()"></i>
<slot></slot>
</div>
</template>
<style lang="scss" scoped>
.pop-page {
height: 800px;
@apply relative;
.close {
@apply absolute top-4 right-4 cursor-pointer text-white text-3xl;
}
}
</style>