From 30cf3a2caa89beb3efa9fdfe77227bc0d8cf788d Mon Sep 17 00:00:00 2001 From: LiuHao Date: Mon, 18 Mar 2024 14:17:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0=E5=A4=9A=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BpmnDesign/hooks/usePanel.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/components/BpmnDesign/hooks/usePanel.ts b/src/components/BpmnDesign/hooks/usePanel.ts index 0dbc3f3..9168fe2 100644 --- a/src/components/BpmnDesign/hooks/usePanel.ts +++ b/src/components/BpmnDesign/hooks/usePanel.ts @@ -1,6 +1,7 @@ import showConfig from '@/components/BpmnDesign/assets/showConfig'; import { ModdleElement } from 'bpmn'; import useModelerStore from '@/store/modules/modeler'; +import { MultiInstanceTypeEnum } from '@/enums/bpmn/IndexEnums'; interface Options { element: ModdleElement; } @@ -114,8 +115,18 @@ export default (ops: Options) => { updateProperties({ name: newVal }); } }; + + const constant = { + MultiInstanceType: [ + { id: '373d4b81-a0d1-4eb8-8685-0d2fb1b468e2', label: '无', value: MultiInstanceTypeEnum.NONE }, + { id: 'b5acea7c-b7e5-46b0-8778-390db091bdab', label: '串行', value: MultiInstanceTypeEnum.SERIAL }, + { id: 'b4f0c683-1ccc-43c4-8380-e1b998986caf', label: '并行', value: MultiInstanceTypeEnum.PARALLEL } + ] + }; + return { elementType, + constant, showConfig: config, updateProperties,