fix: bpmn相关type第一次安装依赖&运行报错
| | |
| | | import showConfig from '../assets/showConfig'; |
| | | import { ModdleElement } from 'bpmn'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | import useModelerStore from '@/store/modules/modeler'; |
| | | import { MultiInstanceTypeEnum } from '@/enums/bpmn/IndexEnums'; |
| | | interface Options { |
| | |
| | | import { ModdleElement } from 'bpmn'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | |
| | | interface Options { |
| | | element: ModdleElement; |
| | |
| | | import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'; |
| | | import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'; |
| | | import './assets/style/index.scss'; |
| | | import { Canvas, Modeler } from 'bpmn'; |
| | | import type { Canvas, Modeler } from 'bpmn'; |
| | | import PropertyPanel from './panel/index.vue'; |
| | | import BpmnModeler from 'bpmn-js/lib/Modeler.js'; |
| | | import defaultXML from './assets/defaultXML'; |
| | |
| | | <script setup lang="ts"> |
| | | import useParseElement from '../hooks/useParseElement'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import { Modeler, ModdleElement } from 'bpmn'; |
| | | import { GatewayPanel } from 'bpmnDesign'; |
| | | import type { Modeler, ModdleElement } from 'bpmn'; |
| | | import type { GatewayPanel } from 'bpmnDesign'; |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | |
| | | interface PropType { |
| | |
| | | import useParseElement from '../hooks/useParseElement'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import { ModdleElement } from 'bpmn'; |
| | | import { ParticipantPanel } from 'bpmnDesign'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | import type { ParticipantPanel } from 'bpmnDesign'; |
| | | |
| | | interface PropType { |
| | | element: ModdleElement; |
| | |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import useParseElement from '../hooks/useParseElement'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import { Modeler, ModdleElement } from 'bpmn'; |
| | | import { ProcessPanel } from 'bpmnDesign'; |
| | | import type { Modeler, ModdleElement } from 'bpmn'; |
| | | import type { ProcessPanel } from 'bpmnDesign'; |
| | | |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | |
| | |
| | | import useModelerStore from '@/store/modules/modeler'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import { Modeler, ModdleElement } from 'bpmn'; |
| | | import { SequenceFlowPanel } from 'bpmnDesign'; |
| | | import type { Modeler, ModdleElement } from 'bpmn'; |
| | | import type { SequenceFlowPanel } from 'bpmnDesign'; |
| | | |
| | | interface PropType { |
| | | element: ModdleElement; |
| | |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import useParseElement from '../hooks/useParseElement'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import { Modeler, ModdleElement } from 'bpmn'; |
| | | import { StartEndPanel } from 'bpmnDesign'; |
| | | import type { Modeler, ModdleElement } from 'bpmn'; |
| | | import type { StartEndPanel } from 'bpmnDesign'; |
| | | |
| | | interface PropType { |
| | | element: ModdleElement; |
| | |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import useParseElement from '../hooks/useParseElement'; |
| | | import usePanel from '../hooks/usePanel'; |
| | | import { ModdleElement } from 'bpmn'; |
| | | import { SubProcessPanel } from 'bpmnDesign'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | import type { SubProcessPanel } from 'bpmnDesign'; |
| | | import { MultiInstanceTypeEnum } from '@/enums/bpmn/IndexEnums'; |
| | | |
| | | interface PropType { |
| | |
| | | import ExecutionListener from './property/ExecutionListener.vue'; |
| | | import TaskListener from './property/TaskListener.vue'; |
| | | import DueDate from './property/DueDate.vue'; |
| | | import { ModdleElement } from 'bpmn'; |
| | | import { TaskPanel } from 'bpmnDesign'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | import type { TaskPanel } from 'bpmnDesign'; |
| | | import { AllocationTypeEnum, MultiInstanceTypeEnum, SpecifyDescEnum } from '@/enums/bpmn/IndexEnums'; |
| | | import { UserVO } from '@/api/system/user/types'; |
| | | import { RoleVO } from '@/api/system/role/types'; |
| | |
| | | import SequenceFlowPanel from './SequenceFlowPanel.vue'; |
| | | import ParticipantPanel from './ParticipantPanel.vue'; |
| | | import SubProcessPanel from './SubProcessPanel.vue'; |
| | | import { Modeler, ModdleElement } from 'bpmn'; |
| | | import type { Modeler, ModdleElement } from 'bpmn'; |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | interface propsType { |
| | | modeler: Modeler; |
| | |
| | | <script setup lang="ts"> |
| | | import ListenerParam from './ListenerParam.vue'; |
| | | import { VxeTableEvents, VxeTableInstance, VxeTablePropTypes } from 'vxe-table'; |
| | | import { ExecutionListenerVO } from 'bpmnDesign'; |
| | | import { Moddle, Modeler, ModdleElement } from 'bpmn'; |
| | | import type { ExecutionListenerVO } from 'bpmnDesign'; |
| | | import type { Moddle, Modeler, ModdleElement } from 'bpmn'; |
| | | |
| | | import usePanel from '../../hooks/usePanel'; |
| | | import useDialog from '@/hooks/useDialog'; |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { VXETable, VxeTableInstance, VxeTablePropTypes } from 'vxe-table'; |
| | | import { ParamVO } from 'bpmnDesign'; |
| | | import type { ParamVO } from 'bpmnDesign'; |
| | | import useDialog from '@/hooks/useDialog'; |
| | | |
| | | interface PropType { |
| | |
| | | <script setup lang="ts"> |
| | | import ListenerParam from './ListenerParam.vue'; |
| | | import { VxeTableEvents, VxeTableInstance, VxeTablePropTypes } from 'vxe-table'; |
| | | import { TaskListenerVO } from 'bpmnDesign'; |
| | | import { ModdleElement } from 'bpmn'; |
| | | import type { TaskListenerVO } from 'bpmnDesign'; |
| | | import type { ModdleElement } from 'bpmn'; |
| | | |
| | | import usePanel from '../../hooks/usePanel'; |
| | | import useDialog from '@/hooks/useDialog'; |
| | |
| | | import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas'; |
| | | import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll'; |
| | | import { ModuleDeclaration } from 'didi'; |
| | | import { Canvas, ModdleElement } from 'bpmn'; |
| | | import type { Canvas, ModdleElement } from 'bpmn'; |
| | | import EventBus from 'diagram-js/lib/core/EventBus'; |
| | | import Overlays from 'diagram-js/lib/features/overlays/Overlays'; |
| | | import processApi from '@/api/workflow/processInstance/index'; |
| | |
| | | import { Modeler, Modeling, Canvas, ElementRegistry, Moddle, BpmnFactory } from 'bpmn'; |
| | | import type { Modeler, Modeling, Canvas, ElementRegistry, Moddle, BpmnFactory } from 'bpmn'; |
| | | |
| | | type ModelerStore = { |
| | | modeler: Modeler | undefined; |