lu-lowcode-package-form 0.10.67 → 0.10.68
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 +202 -202
- package/dist/index.es.js +14977 -14975
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +7 -2
package/package.json
CHANGED
@@ -73,6 +73,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
73
73
|
|
74
74
|
|
75
75
|
useEffect(() => {
|
76
|
+
console.log("children", children)
|
76
77
|
throttledInitializeFormRender();
|
77
78
|
return () => {
|
78
79
|
throttledInitializeFormRender.cancel();
|
@@ -430,7 +431,10 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
430
431
|
|
431
432
|
for (let key in changedFieldsState.current) {
|
432
433
|
let field = changedFieldsState.current[key];
|
433
|
-
if (!isEqual(field.value, getLastFieldValue(field.name))) {
|
434
|
+
if (!isEqual(field.value || "", getLastFieldValue(field.name) || "")) {
|
435
|
+
console.log("!isEqual field.name", field.name)
|
436
|
+
console.log("field.value", field.value)
|
437
|
+
console.log("getLastFieldValue(field.name)", getLastFieldValue(field.name))
|
434
438
|
if (lockStatus_ != 1) {
|
435
439
|
needRefresh = handleFieldsWith(field.name, fieldValues);
|
436
440
|
}
|
@@ -438,6 +442,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
438
442
|
}
|
439
443
|
}
|
440
444
|
if (needRefresh) {
|
445
|
+
console.log("needRefresh", needRefresh)
|
441
446
|
setFormContent(renderChildren());
|
442
447
|
}
|
443
448
|
// lastFormValues.current = form.getFieldsValue();
|
@@ -445,7 +450,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
445
450
|
}, 100);
|
446
451
|
|
447
452
|
const handleFieldsChange = (changedFields) => {
|
448
|
-
|
453
|
+
console.log("changedFields", changedFields)
|
449
454
|
changedFields.filter(field => {
|
450
455
|
if (field.name && field.name.length > 0) {
|
451
456
|
// const fieldKey = field.name.filter(item => typeof item == "string").join(".")
|