diff --git a/src/components/BpmnDesign/hooks/usePanel.ts b/src/components/BpmnDesign/hooks/usePanel.ts index 8f92c53..35e5ff5 100644 --- a/src/components/BpmnDesign/hooks/usePanel.ts +++ b/src/components/BpmnDesign/hooks/usePanel.ts @@ -1,8 +1,7 @@ -import { Ref } from 'vue'; import showConfig from '@/components/BpmnDesign/assets/showConfig'; - +import { Moddle, Modeler, Modeling } from 'bpmn'; interface Options { - modeler: any; + modeler: Modeler; element: any; } @@ -17,7 +16,7 @@ export default (ops: Options) => { const config = computed(() => showConfig[elementType.value] || {}); const updateProperties = (properties: any) => { - const modeling = modeler.get('modeling'); + const modeling = modeler.get('modeling'); modeling.updateProperties(element, properties); }; @@ -33,7 +32,7 @@ export default (ops: Options) => { }; const documentationChange = (newVal: string) => { if (newVal) { - const documentationElement = modeler.get('moddle').create('bpmn:Documentation', { text: newVal }); + const documentationElement = modeler.get('moddle').create('bpmn:Documentation', { text: newVal }); updateProperties({ documentation: [documentationElement] }); } else { updateProperties({ documentation: null }); diff --git a/src/components/BpmnDesign/hooks/useParseElement.ts b/src/components/BpmnDesign/hooks/useParseElement.ts index c5fb419..7945d61 100644 --- a/src/components/BpmnDesign/hooks/useParseElement.ts +++ b/src/components/BpmnDesign/hooks/useParseElement.ts @@ -1,8 +1,9 @@ import { Ref } from 'vue'; import usePanel from '@/components/BpmnDesign/hooks/usePanel'; +import { Modeler } from 'bpmn'; interface Options { - modeler: any; + modeler: Modeler; element: any; } diff --git a/src/components/BpmnDesign/panel/GatewayPanel.vue b/src/components/BpmnDesign/panel/GatewayPanel.vue index 0877aa6..53c55bb 100644 --- a/src/components/BpmnDesign/panel/GatewayPanel.vue +++ b/src/components/BpmnDesign/panel/GatewayPanel.vue @@ -16,12 +16,13 @@