From 1220f5ca98b10b735a47c37a81fbfc554b01e2fe Mon Sep 17 00:00:00 2001 From: liriming <1343021927@qq.com> Date: 星期一, 20 一月 2025 14:41:35 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue b/src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue new file mode 100644 index 0000000..f9cb9ac --- /dev/null +++ b/src/components/bpmnProcessDesigner/package/penal/custom-config/ElementCustomConfig.vue @@ -0,0 +1,39 @@ +<template> + <div class="panel-tab__content"> + <component :is="customConfigComponent" v-bind="$props" /> + </div> +</template> + +<script lang="ts" setup> +import { CustomConfigMap } from './data' + +defineOptions({ name: 'ElementCustomConfig' }) + +const props = defineProps({ + id: String, + type: String, + businessObject: { + type: Object, + default: () => {} + } +}) + +const bpmnInstances = () => (window as any)?.bpmnInstances +const customConfigComponent = ref<any>(null) + +watch( + () => props.businessObject, + () => { + if (props.type && props.businessObject) { + let val = props.type + if (props.businessObject.eventDefinitions) { + val += props.businessObject.eventDefinitions[0]?.$type.split(':')[1] || '' + } + customConfigComponent.value = CustomConfigMap[val]?.componet + } + }, + { immediate: true } +) +</script> + +<style lang="scss" scoped></style> -- Gitblit v1.9.3