@@ -142,6 +142,7 @@ NodeGroup.config({
stroke: '#808080',
},
+ tools:['node-editor'],
})
// endregion
@@ -475,17 +475,11 @@ export default class Process {
+
// region 双击工序进入编辑模式
this.graph.on('node:dblclick', ({ node, e }) => {
- //如果是工序组 进入编辑模式
- if (node.data?.parent) {
- node.addTools({
- name: 'node-editor',
- args: {
- event: e,
- },
- })
- } else {
+ //如果双击的不是工序组,显示弹窗
+ if (!node.data?.parent) {
//设置值
store.commit('setCurrentNodeId', node.id)
//显示弹窗