@fileverse-dev/fortune-core 1.0.63 → 1.0.65

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.
@@ -616,6 +616,7 @@ export function updateCell(ctx, r, c, $input, value, canvas) {
616
616
  var coin_1 = (_h = oldValue === null || oldValue === void 0 ? void 0 : oldValue.m) === null || _h === void 0 ? void 0 : _h.toString().split(" ")[1];
617
617
  if (_typeof(curv) === "object" && (curv === null || curv === void 0 ? void 0 : curv.baseValue)) {
618
618
  curv.m = "".concat((parseFloat(value) / (oldValue === null || oldValue === void 0 ? void 0 : oldValue.baseCurrencyPrice)).toFixed(decemialCount_1), " ").concat(coin_1);
619
+ curv.baseValue = value.toString();
619
620
  }
620
621
  execFunctionGroup(ctx, r, c, curv);
621
622
  isRunExecFunction = false;
@@ -679,6 +680,7 @@ export function updateCell(ctx, r, c, $input, value, canvas) {
679
680
  var coin = (_l = oldValue === null || oldValue === void 0 ? void 0 : oldValue.m) === null || _l === void 0 ? void 0 : _l.toString().split(" ")[1];
680
681
  if (_typeof(value) === "object" && value.baseValue && !(value === null || value === void 0 ? void 0 : value.m)) {
681
682
  value.m = "".concat((parseFloat(value === null || value === void 0 ? void 0 : value.v) / (oldValue === null || oldValue === void 0 ? void 0 : oldValue.baseCurrencyPrice)).toFixed(decemialCount), " ").concat(coin);
683
+ value.baseValue = value === null || value === void 0 ? void 0 : value.v.toString();
682
684
  }
683
685
  setCellValue(ctx, r, c, d, value);
684
686
  cancelNormalSelected(ctx);
@@ -186,7 +186,6 @@ export function iscelldata(txt) {
186
186
  return false;
187
187
  }
188
188
  function addToCellIndexList(ctx, txt, infoObj) {
189
- console.log("heheeheheh");
190
189
  if (_.isNil(txt) || txt.length === 0 || _.isNil(infoObj)) {
191
190
  return;
192
191
  }
@@ -646,6 +646,7 @@ function updateCell(ctx, r, c, $input, value, canvas) {
646
646
  var coin_1 = (_h = oldValue === null || oldValue === void 0 ? void 0 : oldValue.m) === null || _h === void 0 ? void 0 : _h.toString().split(" ")[1];
647
647
  if (_typeof(curv) === "object" && (curv === null || curv === void 0 ? void 0 : curv.baseValue)) {
648
648
  curv.m = "".concat((parseFloat(value) / (oldValue === null || oldValue === void 0 ? void 0 : oldValue.baseCurrencyPrice)).toFixed(decemialCount_1), " ").concat(coin_1);
649
+ curv.baseValue = value.toString();
649
650
  }
650
651
  (0, _formula.execFunctionGroup)(ctx, r, c, curv);
651
652
  isRunExecFunction = false;
@@ -709,6 +710,7 @@ function updateCell(ctx, r, c, $input, value, canvas) {
709
710
  var coin = (_l = oldValue === null || oldValue === void 0 ? void 0 : oldValue.m) === null || _l === void 0 ? void 0 : _l.toString().split(" ")[1];
710
711
  if (_typeof(value) === "object" && value.baseValue && !(value === null || value === void 0 ? void 0 : value.m)) {
711
712
  value.m = "".concat((parseFloat(value === null || value === void 0 ? void 0 : value.v) / (oldValue === null || oldValue === void 0 ? void 0 : oldValue.baseCurrencyPrice)).toFixed(decemialCount), " ").concat(coin);
713
+ value.baseValue = value === null || value === void 0 ? void 0 : value.v.toString();
712
714
  }
713
715
  setCellValue(ctx, r, c, d, value);
714
716
  cancelNormalSelected(ctx);
@@ -215,7 +215,6 @@ function iscelldata(txt) {
215
215
  return false;
216
216
  }
217
217
  function addToCellIndexList(ctx, txt, infoObj) {
218
- console.log("heheeheheh");
219
218
  if (_lodash.default.isNil(txt) || txt.length === 0 || _lodash.default.isNil(infoObj)) {
220
219
  return;
221
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "dev": "father-build --watch"
16
16
  },
17
17
  "dependencies": {
18
- "@fileverse-dev/formula-parser": "0.2.40",
18
+ "@fileverse-dev/formula-parser": "0.2.42",
19
19
  "dayjs": "^1.11.0",
20
20
  "immer": "^9.0.12",
21
21
  "lodash": "^4.17.21",