feat: support integer custom field (#1123)

This commit is contained in:
Jonas Plum
2025-01-02 23:37:26 +01:00
committed by GitHub
parent 87175f80a2
commit b31f90c3ea

View File

@@ -101,5 +101,19 @@ watch(
</div>
</FormItem>
</FormField>
<FormField
v-else-if="property.type === 'integer'"
:name="key"
v-slot="{ componentField }"
v-model="formdata[key]"
>
<FormItem>
<FormLabel :for="key" class="text-right">
{{ property.title }}
</FormLabel>
<Input :id="key" class="col-span-3" type="number" v-bind="componentField" />
<FormMessage />
</FormItem>
</FormField>
</div>
</template>