feat: Simple设计器同步获取bpmnXml数据相关逻辑

This commit is contained in:
GoldenZqqq
2024-12-27 14:58:43 +08:00
parent e50cd2231c
commit a8c1fd4473
5 changed files with 84 additions and 14 deletions

View File

@ -36,5 +36,22 @@ watch([() => props.modelKey, () => props.modelName], ([newKey, newName]) => {
const handleSuccess = (data?: any) => {
emit('success', data)
}
/** 获取当前流程数据 */
const getCurrentFlowData = async () => {
try {
if (designerRef.value) {
return await designerRef.value.getCurrentFlowData()
}
return undefined
} catch (error) {
console.error('获取流程数据失败:', error)
return undefined
}
}
defineExpose({
getCurrentFlowData
})
</script>
<style lang="scss" scoped></style>