mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-14 06:30:49 +08:00
23 lines
385 B
Vue
23 lines
385 B
Vue
<template>
|
|
<div v-if="isPlay" class="bottom" :style="{ height }"></div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useStore } from 'vuex';
|
|
|
|
const store = useStore();
|
|
const isPlay = computed(() => store.state.isPlay as boolean);
|
|
defineProps({
|
|
height: {
|
|
type: String,
|
|
default: undefined,
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.bottom {
|
|
@apply h-28;
|
|
}
|
|
</style>
|