forked from github/dataease
Merge pull request #10289 from dataease/pr@dev-v2@refactor_menu-sort3
refactor(仪表板、数据大屏): 调整功能菜单顺序
This commit is contained in:
commit
5d14981ca2
@ -52,7 +52,8 @@ const handleCommand = (command: string | number | object) => {
|
||||
}
|
||||
const callBack = param => {
|
||||
if (props.node.leaf && props.node?.weight >= 7) {
|
||||
menus.value.splice(2, 0, param)
|
||||
menus.value[0]['divided'] = true
|
||||
menus.value.splice(0, 0, param)
|
||||
}
|
||||
}
|
||||
const emit = defineEmits(['handleCommand'])
|
||||
|
@ -133,6 +133,11 @@ const resourceTypeList = computed(() => {
|
||||
|
||||
const menuList = computed(() => {
|
||||
const list = [
|
||||
{
|
||||
label: '复制',
|
||||
command: 'copy',
|
||||
svgName: 'dv-copy-dark'
|
||||
},
|
||||
{
|
||||
label: '移动到',
|
||||
command: 'move',
|
||||
@ -148,16 +153,6 @@ const menuList = computed(() => {
|
||||
command: 'delete',
|
||||
svgName: 'dv-delete',
|
||||
divided: true
|
||||
},
|
||||
{
|
||||
label: '编辑',
|
||||
command: 'edit',
|
||||
svgName: 'dv-edit'
|
||||
},
|
||||
{
|
||||
label: '复制',
|
||||
command: 'copy',
|
||||
svgName: 'dv-copy-dark'
|
||||
}
|
||||
]
|
||||
return list
|
||||
|
Loading…
Reference in New Issue
Block a user