You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
import { defineMenu } from '@/runtime/DefineMenu.ts'
|
|
import Model3DView from '@/components/Model3DView.vue'
|
|
import ThreePerfView from '@/components/ThreePerfView.vue'
|
|
import ThreePerfView2 from '@/components/ThreePerfView2.vue'
|
|
|
|
export default defineMenu((menus) => {
|
|
menus.insertChildren('tool',
|
|
{
|
|
name: 'tool', label: '小工具', order: 3, disabled: false
|
|
},
|
|
[
|
|
{
|
|
name: 'model3dview', label: '模型查看器', order: 1,
|
|
click: () => {
|
|
system.showDialog(Model3DView, {
|
|
title: '模型查看器',
|
|
width: 950,
|
|
height: 950,
|
|
showClose: true,
|
|
showMax: true,
|
|
showCancelButton: false,
|
|
showOkButton: false,
|
|
dialogClass: 'model-3d-view-wrap'
|
|
})
|
|
}
|
|
},
|
|
{
|
|
name: 'threePerfView', label: '性能测试', order: 3,
|
|
click: () => {
|
|
system.showDialog(ThreePerfView, {
|
|
title: '性能测试',
|
|
width: 950,
|
|
height: 400,
|
|
showClose: true,
|
|
showMax: true,
|
|
showCancelButton: false,
|
|
showOkButton: false,
|
|
dialogClass: 'model-3d-view-wrap'
|
|
})
|
|
}
|
|
},
|
|
{
|
|
name: 'threePerfView2', label: '性能测试2', order: 3,
|
|
click: () => {
|
|
system.showDialog(ThreePerfView2, {
|
|
title: '性能测试2',
|
|
width: 950,
|
|
height: 400,
|
|
showClose: true,
|
|
showMax: true,
|
|
showCancelButton: false,
|
|
showOkButton: false,
|
|
dialogClass: 'model-3d-view-wrap'
|
|
})
|
|
}
|
|
}
|
|
]
|
|
)
|
|
})
|
|
|