lu-lowcode-package-form 0.9.92 → 0.9.93
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/dist/index.cjs.js +3 -3
- package/dist/index.es.js +291 -296
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +5 -1
package/package.json
CHANGED
@@ -51,6 +51,10 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
51
51
|
|
52
52
|
React.useImperativeHandle(ref, () => ({
|
53
53
|
formRef: form,
|
54
|
+
setFieldsValue: (values)=>{
|
55
|
+
changedFieldsState.current = {};
|
56
|
+
form.setFieldsValue(values)
|
57
|
+
},
|
54
58
|
initializeFieldVisibility,
|
55
59
|
}), []);
|
56
60
|
|
@@ -236,7 +240,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
236
240
|
}
|
237
241
|
console.log("idGroups", idGroups)
|
238
242
|
if (idGroups.length > 0) idGroups.forEach(ids => { if (Array.isArray(ids) && ids.length > 0) handleTableAddRow(ids) })
|
239
|
-
},
|
243
|
+
}, 0)
|
240
244
|
|
241
245
|
}
|
242
246
|
// 处理级联显示隐藏 @return {boolean} 是否需要重新渲染表单的字段
|