From aeac77b90fdb2cee6e1fae24e9ed5c07da6630e4 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: 星期四, 04 四月 2024 20:41:58 +0800 Subject: [PATCH] chore: 拖动元素时的背景图 --- src/components/BpmnDesign/panel/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/components/BpmnDesign/panel/index.vue b/src/components/BpmnDesign/panel/index.vue index aa39af1..c282723 100644 --- a/src/components/BpmnDesign/panel/index.vue +++ b/src/components/BpmnDesign/panel/index.vue @@ -11,6 +11,8 @@ import StartEndPanel from './StartEndPanel.vue'; import GatewayPanel from './GatewayPanel.vue'; import SequenceFlowPanel from './SequenceFlowPanel.vue'; +import ParticipantPanel from './ParticipantPanel.vue'; +import SubProcessPanel from './SubProcessPanel.vue'; import { Modeler, ModdleElement } from 'bpmn'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; interface propsType { @@ -45,7 +47,9 @@ if (sequenceType.includes(type)) return SequenceFlowPanel; if (gatewayType.includes(type)) return GatewayPanel; if (processType.includes(type)) return ProcessPanel; - return proxy?.$modal.msgWarning('闈㈡澘寮�鍙戜腑....'); + if (type === 'bpmn:Participant') return ParticipantPanel; + if (type === 'bpmn:SubProcess') return SubProcessPanel; + //return proxy?.$modal.msgWarning('闈㈡澘寮�鍙戜腑....'); }); const nodeName = computed(() => { -- Gitblit v1.9.3