aplayer样式改为组件内

This commit is contained in:
灌糖包子 2023-01-15 17:34:27 +08:00
parent d04a1e2515
commit 224ebbc5ec
Signed by: sookie
GPG Key ID: 0599BECB75C1E68D
9 changed files with 11 additions and 10 deletions

View File

@ -142,7 +142,7 @@
</template>
</el-dialog>
<el-drawer v-model="musicPlaying" :close-on-click-modal="false" size="40%" title="播放音乐">
<a-player ref="player" autoplay showLrc :list="musicList" :music="musicList[0]" @play="musicPlay"/>
<a-player v-if="musicPlaying" ref="player" autoplay showLrc :list="musicList" :music="musicList[0]" @play="musicPlay"/>
</el-drawer>
</div>
</template>
@ -312,7 +312,7 @@ export default class Music extends BaseList<MusicPage> {
const currentMusic = player.currentMusic
const mediaSession: any = navigator.mediaSession
mediaSession.metadata = new MediaMetadata({
title: currentMusic.name,
title: currentMusic.title,
artist: currentMusic.artist,
album: currentMusic.album,
artwork: [{src: currentMusic.pic}]

View File

@ -108,7 +108,7 @@
},
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-bar-wrap {
margin: 0 0 0 5px;

View File

@ -71,7 +71,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-volume-wrap {
position: relative;

View File

@ -84,7 +84,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-controller {
display: flex;

View File

@ -19,7 +19,7 @@
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-icon {
width: 15px;
height: 15px;

View File

@ -58,7 +58,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-list {
overflow: hidden;

View File

@ -96,7 +96,7 @@
}
}
</script>
<style lang="less">
<style lang="less" scoped>
@import "../less/variables";
.aplayer-lrc {

View File

@ -78,7 +78,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
@import "../less/variables";
.aplayer-float {

View File

@ -866,7 +866,7 @@
</script>
<style lang="less">
<style lang="less" scoped>
@import "./less/variables";
.aplayer {
@ -921,6 +921,7 @@
.aplayer-author {
font-size: 12px;
color: #666;
margin-left: 10px;
}
}