diff --git a/src/views/lyrics.vue b/src/views/lyrics.vue
index 27520d6..e73a993 100644
--- a/src/views/lyrics.vue
+++ b/src/views/lyrics.vue
@@ -76,26 +76,50 @@
-
@@ -260,6 +284,14 @@ export default {
currentTrack() {
return this.player.currentTrack;
},
+ volume: {
+ get() {
+ return this.player.volume;
+ },
+ set(value) {
+ this.player.volume = value;
+ },
+ },
imageUrl() {
return this.player.currentTrack?.al?.picUrl + '?param=1024y1024';
},
@@ -474,6 +506,9 @@ export default {
getListPath() {
return getListSourcePath();
},
+ mute() {
+ this.player.mute();
+ },
},
};
@@ -591,17 +626,31 @@ export default {
display: flex;
justify-content: space-between;
- .buttons {
+ .top-right {
display: flex;
- align-items: center;
-
- button {
- margin: 0 0 0 4px;
+ justify-content: space-between;
+
+ .volume-control {
+ margin: 0 10px;
+ display: flex;
+ align-items: center;
+ .volume-bar {
+ width: 84px;
+ }
}
- .svg-icon {
- height: 18px;
- width: 18px;
+ .buttons {
+ display: flex;
+ align-items: center;
+
+ button {
+ margin: 0 0 0 4px;
+ }
+
+ .svg-icon {
+ height: 18px;
+ width: 18px;
+ }
}
}
}