Skip to content

Commit

Permalink
feat: support integer details
Browse files Browse the repository at this point in the history
  • Loading branch information
cugu committed Jan 2, 2025
1 parent 87175f8 commit 0ced2f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ui/src/components/form/JSONSchemaFormFields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 0ced2f0

Please sign in to comment.