新增我的列表右键菜单复制歌曲名选项
parent
5ce6aafc07
commit
cfef06a15b
|
@ -5,6 +5,7 @@
|
||||||
- 新增歌曲列表右键菜单
|
- 新增歌曲列表右键菜单
|
||||||
- 新增自定义列表,创建列表的按钮在表头`#`左侧,鼠标移上去才会显示;编辑列表名字时,按`ESC`键可快速取消编辑,按回车键或使输入框失去焦点即可保存列表名字,右击列表可编辑已创建的列表,“试听列表”与“我的收藏”两个列表固定不可编辑
|
- 新增自定义列表,创建列表的按钮在表头`#`左侧,鼠标移上去才会显示;编辑列表名字时,按`ESC`键可快速取消编辑,按回车键或使输入框失去焦点即可保存列表名字,右击列表可编辑已创建的列表,“试听列表”与“我的收藏”两个列表固定不可编辑
|
||||||
- 改变排行榜布局,新增更多排行榜
|
- 改变排行榜布局,新增更多排行榜
|
||||||
|
- 新增我的列表右键菜单复制歌曲名选项
|
||||||
|
|
||||||
### 优化
|
### 优化
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ export default {
|
||||||
// },
|
// },
|
||||||
title() {
|
title() {
|
||||||
return this.musicInfo.name
|
return this.musicInfo.name
|
||||||
? `${this.musicInfo.name} - ${this.musicInfo.singer}`
|
? this.setting.download.fileName.replace('歌名', this.musicInfo.name).replace('歌手', this.musicInfo.singer)
|
||||||
: '^-^'
|
: '^-^'
|
||||||
},
|
},
|
||||||
nowPlayTimeStr() {
|
nowPlayTimeStr() {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"lists_movedown": "下移",
|
"lists_movedown": "下移",
|
||||||
"lists_remove": "删除",
|
"lists_remove": "删除",
|
||||||
"list_play": "播放",
|
"list_play": "播放",
|
||||||
|
"list_copy_name": "复制歌曲名",
|
||||||
"list_add_to": "添加到...",
|
"list_add_to": "添加到...",
|
||||||
"list_move_to": "移动到...",
|
"list_move_to": "移动到...",
|
||||||
"list_download": "下载",
|
"list_download": "下载",
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"lists_movedown": "下移",
|
"lists_movedown": "下移",
|
||||||
"lists_remove": "刪除",
|
"lists_remove": "刪除",
|
||||||
"list_play": "播放",
|
"list_play": "播放",
|
||||||
|
"list_copy_name": "複製歌曲名",
|
||||||
"list_add_to": "添加到...",
|
"list_add_to": "添加到...",
|
||||||
"list_move_to": "移動到...",
|
"list_move_to": "移動到...",
|
||||||
"list_download": "下載",
|
"list_download": "下載",
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"lists_movedown": "Move Down",
|
"lists_movedown": "Move Down",
|
||||||
"lists_remove": "Remove",
|
"lists_remove": "Remove",
|
||||||
"list_play": "Play",
|
"list_play": "Play",
|
||||||
|
"list_copy_name": "Copy name",
|
||||||
"list_add_to": "Add to ...",
|
"list_add_to": "Add to ...",
|
||||||
"list_move_to": "Move to ...",
|
"list_move_to": "Move to ...",
|
||||||
"list_download": "Download",
|
"list_download": "Download",
|
||||||
|
|
|
@ -114,6 +114,7 @@ export default {
|
||||||
isShowItemMenu: false,
|
isShowItemMenu: false,
|
||||||
itemMenuControl: {
|
itemMenuControl: {
|
||||||
play: true,
|
play: true,
|
||||||
|
copyName: true,
|
||||||
addTo: true,
|
addTo: true,
|
||||||
moveTo: true,
|
moveTo: true,
|
||||||
download: true,
|
download: true,
|
||||||
|
@ -204,6 +205,11 @@ export default {
|
||||||
action: 'download',
|
action: 'download',
|
||||||
disabled: !this.listMenu.itemMenuControl.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'),
|
name: this.$t('view.list.list_add_to'),
|
||||||
action: 'addTo',
|
action: 'addTo',
|
||||||
|
@ -706,6 +712,10 @@ export default {
|
||||||
case 'play':
|
case 'play':
|
||||||
this.testPlay(index)
|
this.testPlay(index)
|
||||||
break
|
break
|
||||||
|
case 'copyName':
|
||||||
|
minfo = this.list[index]
|
||||||
|
clipboardWriteText(this.setting.download.fileName.replace('歌名', minfo.name).replace('歌手', minfo.singer))
|
||||||
|
break
|
||||||
case 'addTo':
|
case 'addTo':
|
||||||
if (this.selectdListDetailData.length) {
|
if (this.selectdListDetailData.length) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
Loading…
Reference in New Issue