新增我的列表右键菜单复制歌曲名选项
This commit is contained in:
@@ -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