mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-12 18:22:49 +01:00
feat: support integer custom field (#1123)
This commit is contained in:
@@ -101,5 +101,19 @@ watch(
|
|||||||
</div>
|
</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</FormField>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user