af-mobile-client-vue3 1.4.38 → 1.4.39
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.
package/package.json
CHANGED
|
@@ -433,6 +433,9 @@ function setForm(obj: object) {
|
|
|
433
433
|
Object.assign(form.value, obj)
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
+
function setFormData(obj: object) {
|
|
437
|
+
form.value = obj
|
|
438
|
+
}
|
|
436
439
|
// 获取表单字段实际值
|
|
437
440
|
function getRealKey(key: string, mustHandleKey = false) {
|
|
438
441
|
if (key === 'selected_id')
|
|
@@ -641,7 +644,7 @@ function emitFunc(func: any, data: any, value: any) {
|
|
|
641
644
|
emits('xFormItemEmitFunc', func, data, value)
|
|
642
645
|
}
|
|
643
646
|
|
|
644
|
-
defineExpose({ init, form, formGroupName, validate, asyncSubmit, setForm, getFormData })
|
|
647
|
+
defineExpose({ init, form, formGroupName, validate, asyncSubmit, setForm, getFormData, setFormData })
|
|
645
648
|
</script>
|
|
646
649
|
|
|
647
650
|
<template>
|