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

26 lines
404 B
Vue
Raw Normal View History

2024-10-23 04:05:27 +00:00
<template>
<div class="flex flex-col gap-2">
<slot />
</div>
</template>
2024-10-23 21:57:52 +00:00
<script setup>
import { provide } from 'vue';
const props = defineProps({
groupId: {
type: String,
default: undefined
2024-10-23 04:05:27 +00:00
},
2024-10-23 21:57:52 +00:00
name: {
type: String,
default: undefined
2024-10-23 04:05:27 +00:00
}
2024-10-23 21:57:52 +00:00
});
provide('$fcDynamicFormField', {
groupId: props.groupId,
name: props.name
});
2024-10-23 04:05:27 +00:00
</script>