SimpleModelDesign.vue 519 B

123456789101112131415161718192021222324
  1. <template>
  2. <ContentWrap :bodyStyle="{ padding: '20px 16px' }">
  3. <SimpleProcessDesigner :model-id="modelId" @success="handleSuccess" />
  4. </ContentWrap>
  5. </template>
  6. <script setup lang="ts">
  7. import { SimpleProcessDesigner } from '@/components/SimpleProcessDesignerV2/src/'
  8. defineOptions({
  9. name: 'SimpleModelDesign'
  10. })
  11. defineProps<{
  12. modelId: string
  13. }>()
  14. const emit = defineEmits(['success'])
  15. // 修改成功回调
  16. const handleSuccess = () => {
  17. emit('success')
  18. }
  19. </script>
  20. <style lang="scss" scoped></style>