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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -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
- let __fieldValues = form.getFieldsValue()
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)