@ederzeel/nuxt-schema-form-nightly 0.1.0-29080067.4817bc1 → 0.1.0-29104374.fd05eea

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,9 @@ const value = defineModel<number>({ required: true, default: 0 })
14
14
  <div>
15
15
  <UFormField :label="props.title || id" :hint="!props.isRequired ? 'optional' : undefined"
16
16
  :description="props.description" :name="props.id">
17
- <UInputNumber v-model="value" class="w-full" orientation="vertical" :stepSnapping="props.type === 'number'"
18
- :format-options="{
17
+ {{ props.type === 'integer' }}
18
+ <UInputNumber v-model="value" class="w-full" orientation="vertical" :step="0.01"
19
+ :stepSnapping="props.type === 'integer'" :format-options="{
19
20
  minimumFractionDigits: props.type === 'number' ? 1 : undefined
20
21
  }" />
21
22
  </UFormField>
@@ -13,7 +13,7 @@ const props = defineProps<{
13
13
  }>()
14
14
 
15
15
  type PropertiesType = {
16
- [key: string]: unknown
16
+ [key: string]: Record<string, unknown>
17
17
  }
18
18
  const emit = defineEmits(['update:modelValue', 'submit'])
19
19
  const onInput = (value: unknown, key: string) => {
@@ -30,6 +30,6 @@ const onInput = (value: unknown, key: string) => {
30
30
  :key="key" :model-value="modelValue[key]"
31
31
  :json-schema-path="jsonSchemaPath?.length <= 0 ? `properties.${key}` : `${jsonSchemaPath}.properties.${key}`"
32
32
  v-bind="options" :isRequired="required.includes(key)" class="mt-4"
33
- @update:model-value="event => onInput(event, key)" @submit="() => emit('submit')" />
33
+ @update:model-value="(event: unknown) => onInput(event, key)" @submit="() => emit('submit')" />
34
34
  </div>
35
35
  </template>
@@ -13,7 +13,7 @@ const props = defineProps<{
13
13
  }>()
14
14
 
15
15
  type PropertiesType = {
16
- [key: string]: unknown
16
+ [key: string]: Record<string, unknown>
17
17
  }
18
18
  const emit = defineEmits(['update:modelValue'])
19
19
  const onInput = (value: unknown, key: string) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-29080067.4817bc1",
3
+ "version": "0.1.0-29104374.fd05eea",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {