28 lines
451 B
Vue
28 lines
451 B
Vue
<template>
|
|
<template
|
|
v-for="(field, key) in form.fields"
|
|
:key="key"
|
|
>
|
|
<FormWidget
|
|
v-if="fields.length === 0 || fields.includes(field.key)"
|
|
:form="form"
|
|
:field="field"
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
<script setup>
|
|
import FormWidget from './FormWidget.vue'
|
|
|
|
defineProps({
|
|
form: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
fields: {
|
|
type: Array,
|
|
required: false,
|
|
default: () => [],
|
|
},
|
|
})
|
|
</script>
|