SimpleModelDesign.vue 822 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <ContentWrap :bodyStyle="{ padding: '20px 16px' }">
  3. <SimpleProcessDesigner
  4. :model-id="modelId"
  5. :model-key="modelKey"
  6. :model-name="modelName"
  7. @success="handleSuccess"
  8. :start-user-ids="startUserIds"
  9. ref="designerRef"
  10. />
  11. </ContentWrap>
  12. </template>
  13. <script setup lang="ts">
  14. import { SimpleProcessDesigner } from '@/components/SimpleProcessDesignerV2/src/'
  15. defineOptions({
  16. name: 'SimpleModelDesign'
  17. })
  18. defineProps<{
  19. modelId?: string
  20. modelKey?: string
  21. modelName?: string
  22. startUserIds?: number[]
  23. }>()
  24. const emit = defineEmits(['success'])
  25. const designerRef = ref()
  26. // 修改成功回调
  27. const handleSuccess = (data?: any) => {
  28. console.info('handleSuccess', data)
  29. if (data) {
  30. emit('success', data)
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped></style>