@ederzeel/nuxt-schema-form-nightly 0.1.0-29162168.04d859a → 0.1.0-29162274.a2bef1f
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.
|
@@ -191,8 +191,9 @@ const open = (index: number) => {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
const onInput = (value: Record<string, unknown>, index: number) => {
|
|
194
|
-
props.modelValue
|
|
195
|
-
|
|
194
|
+
const res = JSON.parse(JSON.stringify(props.modelValue))
|
|
195
|
+
res[index] = value
|
|
196
|
+
emit('update:modelValue', res)
|
|
196
197
|
}
|
|
197
198
|
|
|
198
199
|
const add = () => {
|
|
@@ -284,7 +285,7 @@ const hidden = ref(false)
|
|
|
284
285
|
model.value = undefined
|
|
285
286
|
}
|
|
286
287
|
"
|
|
287
|
-
>
|
|
288
|
+
>Save</UButton
|
|
288
289
|
>
|
|
289
290
|
<UButton
|
|
290
291
|
variant="outline"
|
|
@@ -294,7 +295,7 @@ const hidden = ref(false)
|
|
|
294
295
|
model.value = undefined
|
|
295
296
|
}
|
|
296
297
|
"
|
|
297
|
-
>
|
|
298
|
+
>Cancle</UButton
|
|
298
299
|
>
|
|
299
300
|
</div>
|
|
300
301
|
</div>
|