appinstall: update form building with new component handling

This commit is contained in:
axolotle 2022-10-03 17:14:47 +02:00
parent af2b50d2c0
commit 1bacb6c1df

View file

@ -24,9 +24,9 @@
@submit.prevent="performInstall"
>
<template v-for="(field, fname) in fields">
<form-field
v-if="field.visible" :key="fname" label-cols="0"
v-bind="field" v-model="form[fname]" :validation="$v.form[fname]"
<component
v-if="field.visible" :is="field.is" v-bind="field.props"
v-model="form[fname]" :validation="$v.form[fname]" :key="fname"
/>
</template>
</card-form>