新增复制播放标题的功能
parent
955375f423
commit
b15cfa1892
|
@ -1,4 +1,10 @@
|
||||||
|
### 新增
|
||||||
|
|
||||||
|
- 新增 MAC 版本退出快捷键支持
|
||||||
|
- 新增点击播放器中的歌曲标题可以复制标题的功能(遇到好听的歌曲方便分享)
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
- 修复 MAC 系统下软件关闭时再次从 dock 打开时报错的Bug
|
- 修复 MAC 系统下软件关闭时再次从 dock 打开时报错的Bug
|
||||||
- 修复下载的歌曲文件名中包含命名规则不允许的符号时下载失败的问题(若歌曲名包含这些符号会自动将其移除)
|
- 修复下载的歌曲文件名中包含命名规则不允许的符号时下载失败的问题(若歌曲名包含这些符号会自动将其移除)
|
||||||
|
- 修复 MAC 版本不能复制粘贴的问题
|
||||||
|
|
|
@ -7,7 +7,7 @@ div(:class="$style.player")
|
||||||
div(:class="$style.right")
|
div(:class="$style.right")
|
||||||
div(:class="$style.column1")
|
div(:class="$style.column1")
|
||||||
div(:class="$style.container")
|
div(:class="$style.container")
|
||||||
div(:class="$style.title") {{title}}
|
div(:class="$style.title" @click="handleCopy(title)" :title="title + '(点击复制)'") {{title}}
|
||||||
div(:class="$style.volumeContent")
|
div(:class="$style.volumeContent")
|
||||||
div(:class="$style.volume" @click.stop='handleChangeVolume' :title="`当前音量:${volumeStr}%`")
|
div(:class="$style.volume" @click.stop='handleChangeVolume' :title="`当前音量:${volumeStr}%`")
|
||||||
div(:class="$style.volumeBar" :style="{ width: volumeStr + '%' }")
|
div(:class="$style.volumeBar" :style="{ width: volumeStr + '%' }")
|
||||||
|
@ -48,7 +48,7 @@ div(:class="$style.player")
|
||||||
<script>
|
<script>
|
||||||
import Lyric from 'lrc-file-parser'
|
import Lyric from 'lrc-file-parser'
|
||||||
import { rendererSend } from '../../../common/icp'
|
import { rendererSend } from '../../../common/icp'
|
||||||
import { formatPlayTime2, getRandom, checkPath, setTitle } from '../../utils'
|
import { formatPlayTime2, getRandom, checkPath, setTitle, clipboardWriteText } from '../../utils'
|
||||||
import { mapGetters, mapActions, mapMutations } from 'vuex'
|
import { mapGetters, mapActions, mapMutations } from 'vuex'
|
||||||
import { requestMsg } from '../../utils/message'
|
import { requestMsg } from '../../utils/message'
|
||||||
|
|
||||||
|
@ -456,6 +456,9 @@ export default {
|
||||||
handleSaveVolume(volume) {
|
handleSaveVolume(volume) {
|
||||||
this.setVolume(volume)
|
this.setVolume(volume)
|
||||||
},
|
},
|
||||||
|
handleCopy(text) {
|
||||||
|
clipboardWriteText(text)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue