diff --git a/publish/changeLog.md b/publish/changeLog.md index 89312420..511d548b 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -5,6 +5,7 @@ - 新增歌曲列表右键菜单 - 新增自定义列表,创建列表的按钮在表头`#`左侧,鼠标移上去才会显示;编辑列表名字时,按`ESC`键可快速取消编辑,按回车键或使输入框失去焦点即可保存列表名字,右击列表可编辑已创建的列表,“试听列表”与“我的收藏”两个列表固定不可编辑 - 改变排行榜布局,新增更多排行榜 +- 新增我的列表右键菜单复制歌曲名选项 ### 优化 diff --git a/src/renderer/components/core/Player.vue b/src/renderer/components/core/Player.vue index 73828d4b..c92f85ed 100644 --- a/src/renderer/components/core/Player.vue +++ b/src/renderer/components/core/Player.vue @@ -113,7 +113,7 @@ export default { // }, title() { return this.musicInfo.name - ? `${this.musicInfo.name} - ${this.musicInfo.singer}` + ? this.setting.download.fileName.replace('歌名', this.musicInfo.name).replace('歌手', this.musicInfo.singer) : '^-^' }, nowPlayTimeStr() { diff --git a/src/renderer/lang/cns/view/list.json b/src/renderer/lang/cns/view/list.json index f8db424d..7ce8ad1d 100644 --- a/src/renderer/lang/cns/view/list.json +++ b/src/renderer/lang/cns/view/list.json @@ -6,6 +6,7 @@ "lists_movedown": "下移", "lists_remove": "删除", "list_play": "播放", + "list_copy_name": "复制歌曲名", "list_add_to": "添加到...", "list_move_to": "移动到...", "list_download": "下载", diff --git a/src/renderer/lang/cnt/view/list.json b/src/renderer/lang/cnt/view/list.json index fa7838b4..286b38a7 100644 --- a/src/renderer/lang/cnt/view/list.json +++ b/src/renderer/lang/cnt/view/list.json @@ -6,6 +6,7 @@ "lists_movedown": "下移", "lists_remove": "刪除", "list_play": "播放", + "list_copy_name": "複製歌曲名", "list_add_to": "添加到...", "list_move_to": "移動到...", "list_download": "下載", diff --git a/src/renderer/lang/en/view/list.json b/src/renderer/lang/en/view/list.json index 9b528e1f..4b7d9675 100644 --- a/src/renderer/lang/en/view/list.json +++ b/src/renderer/lang/en/view/list.json @@ -6,6 +6,7 @@ "lists_movedown": "Move Down", "lists_remove": "Remove", "list_play": "Play", + "list_copy_name": "Copy name", "list_add_to": "Add to ...", "list_move_to": "Move to ...", "list_download": "Download", diff --git a/src/renderer/views/List.vue b/src/renderer/views/List.vue index 31d71a92..80187143 100644 --- a/src/renderer/views/List.vue +++ b/src/renderer/views/List.vue @@ -114,6 +114,7 @@ export default { isShowItemMenu: false, itemMenuControl: { play: true, + copyName: true, addTo: true, moveTo: true, download: true, @@ -204,6 +205,11 @@ export default { action: 'download', disabled: !this.listMenu.itemMenuControl.download, }, + { + name: this.$t('view.list.list_copy_name'), + action: 'copyName', + disabled: !this.listMenu.itemMenuControl.copyName, + }, { name: this.$t('view.list.list_add_to'), action: 'addTo', @@ -706,6 +712,10 @@ export default { case 'play': this.testPlay(index) break + case 'copyName': + minfo = this.list[index] + clipboardWriteText(this.setting.download.fileName.replace('歌名', minfo.name).replace('歌手', minfo.singer)) + break case 'addTo': if (this.selectdListDetailData.length) { this.$nextTick(() => {