2024-10-09 11:05:41 +00:00
|
|
|
<script setup>
|
2024-10-10 10:45:58 +00:00
|
|
|
import {provide} from 'vue';
|
2024-10-09 11:05:41 +00:00
|
|
|
import DynamicComponent from "./DynamicComponent.vue"
|
|
|
|
|
|
|
|
const props = defineProps(['service'])
|
2024-10-11 10:23:21 +00:00
|
|
|
let serviceComponent = 'form-'+props.service.id
|
2024-10-10 10:45:58 +00:00
|
|
|
provide('service', props.service)
|
2024-10-09 11:05:41 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<dynamic-component :type="serviceComponent" />
|
|
|
|
</template>
|
|
|
|
|