新增我的列表右键菜单复制歌曲名选项
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"lists_movedown": "下移",
|
||||
"lists_remove": "删除",
|
||||
"list_play": "播放",
|
||||
"list_copy_name": "复制歌曲名",
|
||||
"list_add_to": "添加到...",
|
||||
"list_move_to": "移动到...",
|
||||
"list_download": "下载",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"lists_movedown": "下移",
|
||||
"lists_remove": "刪除",
|
||||
"list_play": "播放",
|
||||
"list_copy_name": "複製歌曲名",
|
||||
"list_add_to": "添加到...",
|
||||
"list_move_to": "移動到...",
|
||||
"list_download": "下載",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user