af-mobile-client-vue3 1.4.37 → 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.
@@ -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>
@@ -188,4 +188,4 @@ export interface PolygonLayerConfig {
188
188
  onClick?: (polygon: PolygonData, event: any) => void
189
189
  /** 多边形数据提供者 */
190
190
  dataProvider?: () => PolygonData[] | Promise<PolygonData[]>
191
- }
191
+ }