lu-lowcode-package-form 0.11.74 → 0.11.75

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.11.74",
3
+ "version": "0.11.75",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -1,4 +1,5 @@
1
1
  import memoizee from 'memoizee';
2
+ import Decimal from 'decimal.js';
2
3
 
3
4
  // 不安全的Function函数,有时间的话需要重新编写公式编译器
4
5
  // 可以使用库 expr-eval 来替换(undo)
@@ -11,8 +12,8 @@ const evalFormula = memoizee((formula) => {
11
12
  const D = Decimal;
12
13
  const decimal = (num) => new D(num);
13
14
  return (function() {
14
- const result = ${formula.join("")};
15
- return result;
15
+ const __result = ${formula.join("")};
16
+ return __result;
16
17
  })()
17
18
  `;
18
19
  const func = new Function('Decimal', funcCode);