@ederzeel/nuxt-schema-form-nightly 0.1.0-29140447.ba55e2d → 0.1.0-29150680.e7208a6

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.
@@ -7,7 +7,7 @@ const props = defineProps<{
7
7
  isRequired: boolean
8
8
  }>()
9
9
 
10
- const value = defineModel<string>()
10
+ const value = defineModel<string>({ default: '' })
11
11
  </script>
12
12
 
13
13
  <template>
@@ -12,13 +12,22 @@ const value = defineModel<number>({ required: true, default: 0 })
12
12
 
13
13
  <template>
14
14
  <div>
15
- <UFormField :label="props.title || id" :hint="!props.isRequired ? 'optional' : undefined"
16
- :description="props.description" :name="props.id">
17
- {{ props.type === 'integer' }}
18
- <UInputNumber v-model="value" class="w-full" orientation="vertical" :step="0.01"
19
- :stepSnapping="props.type === 'integer'" :format-options="{
15
+ <UFormField
16
+ :label="props.title || id"
17
+ :hint="!props.isRequired ? 'optional' : undefined"
18
+ :description="props.description"
19
+ :name="props.id"
20
+ >
21
+ <UInputNumber
22
+ v-model="value"
23
+ class="w-full"
24
+ orientation="vertical"
25
+ :step="0.01"
26
+ :stepSnapping="props.type === 'integer'"
27
+ :format-options="{
20
28
  minimumFractionDigits: props.type === 'number' ? 1 : undefined
21
- }" />
29
+ }"
30
+ />
22
31
  </UFormField>
23
32
  </div>
24
33
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-29140447.ba55e2d",
3
+ "version": "0.1.0-29150680.e7208a6",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {