primevue-mirror/apps/showcase/doc/forms/dynamic/DynamicFormField.vue

26 lines
404 B
Vue

<template>
<div class="flex flex-col gap-2">
<slot />
</div>
</template>
<script setup>
import { provide } from 'vue';
const props = defineProps({
groupId: {
type: String,
default: undefined
},
name: {
type: String,
default: undefined
}
});
provide('$fcDynamicFormField', {
groupId: props.groupId,
name: props.name
});
</script>