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

26 lines
416 B
Vue
Raw Normal View History

2024-10-23 04:05:27 +00:00
<template>
2024-11-01 06:00:00 +00:00
<FormField class="flex flex-col gap-2">
2024-10-23 04:05:27 +00:00
<slot />
2024-11-01 06:00:00 +00:00
</FormField>
2024-10-23 04:05:27 +00:00
</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>