aplayer样式改为组件内

This commit is contained in:
2023-01-15 17:34:27 +08:00
parent d04a1e2515
commit 224ebbc5ec
9 changed files with 11 additions and 10 deletions
+2 -2
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}]
@@ -108,7 +108,7 @@
},
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-bar-wrap {
margin: 0 0 0 5px;
@@ -71,7 +71,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-volume-wrap {
position: relative;
@@ -84,7 +84,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-controller {
display: flex;
@@ -19,7 +19,7 @@
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-icon {
width: 15px;
height: 15px;
@@ -58,7 +58,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
.aplayer-list {
overflow: hidden;
@@ -96,7 +96,7 @@
}
}
</script>
<style lang="less">
<style lang="less" scoped>
@import "../less/variables";
.aplayer-lrc {
@@ -78,7 +78,7 @@
}
</script>
<style lang="less">
<style lang="less" scoped>
@import "../less/variables";
.aplayer-float {
+2 -1
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;
}
}