lu-lowcode-package-form 0.12.1 → 0.12.2
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 +25 -25
- package/dist/index.es.js +366 -368
- package/package.json +1 -1
- package/src/components/form-container/index.jsx +1 -4
package/package.json
CHANGED
@@ -690,10 +690,7 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
|
|
690
690
|
}
|
691
691
|
|
692
692
|
if (formula && formula.length > 0) {
|
693
|
-
|
694
|
-
console.log("__fieldValues", __fieldValues)
|
695
|
-
console.log("childIdentifier", childIdentifier)
|
696
|
-
const __current = __fieldValues[childIdentifier]
|
693
|
+
const __current = form.getFieldValue(childIdentifier)
|
697
694
|
const formulaResult = evalFormula(formula, __current);
|
698
695
|
console.log(`${childIdentifier} 计算公式:`, formula)
|
699
696
|
console.log(`${childIdentifier} 计算结果:`, formulaResult)
|