lu-lowcode-package-form 0.11.3 → 0.11.5
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 +14987 -14983
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +6 -2
package/package.json
CHANGED
@@ -413,8 +413,10 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
413
413
|
if (dependencyMap.current.has(childIdentifier)) {
|
414
414
|
const childData = dependencyMap.current.get(childIdentifier);
|
415
415
|
if (formula && formula.length > 0) {
|
416
|
-
console.log(`${childIdentifier} 计算公式:`, formula)
|
417
416
|
const formulaResult = (evalFormula(formula) == "true");
|
417
|
+
console.log(`${childIdentifier} 计算公式:`, formula)
|
418
|
+
console.log(`${childIdentifier} 计算结果:`, formulaResult)
|
419
|
+
console.log(`${childIdentifier} childData.show:`, childData.show)
|
418
420
|
if (childData.show != formulaResult) {
|
419
421
|
childData.show = formulaResult;
|
420
422
|
dependencyMap.current.set(childIdentifier, childData);
|
@@ -571,7 +573,9 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
571
573
|
if (!isEqual(field.value || "", getLastFieldValue(field.name) || "")) {
|
572
574
|
if (lockStatus_ != 1) {
|
573
575
|
console.log("handleFieldsWith field.name", field.name)
|
574
|
-
|
576
|
+
let needRefresh_ = await handleFieldsWith(field.name, fieldValues);
|
577
|
+
needRefresh = needRefresh || needRefresh_
|
578
|
+
|
575
579
|
}
|
576
580
|
lastFormValues.current[field.name] = field.value;
|
577
581
|
}
|