@leankylin-sheet/core 4.0.41 → 4.0.43

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.esm.js CHANGED
@@ -36251,7 +36251,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36251
36251
  var formulaCell = calcChains[_i12];
36252
36252
  var key = "r".concat(formulaCell.r, "c").concat(formulaCell.c, "i").concat(formulaCell.id);
36253
36253
  var calc_funcStr = getcellFormula(ctx, formulaCell.r, formulaCell.c, formulaCell.id);
36254
- console.log("calc_funcStr", key, calc_funcStr);
36255
36254
  if (_.isNil(calc_funcStr)) {
36256
36255
  return 1; // continue
36257
36256
  }
@@ -40026,7 +40025,7 @@ function setCellValue(ctx, r, c, d, v, isCache) {
40026
40025
  for (var cIndex = 0; cIndex < row.length; cIndex++) {
40027
40026
  var vUpdateCell = row[cIndex] || "";
40028
40027
  var vupdateStr = vUpdateCell.toString();
40029
- var _cell = _objectSpread2({}, cell || {});
40028
+ var _cell = cIndex === 0 && rIndex === 0 ? _objectSpread2({}, cell || {}) : {};
40030
40029
  setVUpdateStr(_cell, vupdateStr, d, r + rIndex, c + cIndex, vUpdateCell);
40031
40030
  }
40032
40031
  }
package/dist/index.js CHANGED
@@ -36261,7 +36261,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
36261
36261
  var formulaCell = calcChains[_i12];
36262
36262
  var key = "r".concat(formulaCell.r, "c").concat(formulaCell.c, "i").concat(formulaCell.id);
36263
36263
  var calc_funcStr = getcellFormula(ctx, formulaCell.r, formulaCell.c, formulaCell.id);
36264
- console.log("calc_funcStr", key, calc_funcStr);
36265
36264
  if (___default['default'].isNil(calc_funcStr)) {
36266
36265
  return 1; // continue
36267
36266
  }
@@ -40036,7 +40035,7 @@ function setCellValue(ctx, r, c, d, v, isCache) {
40036
40035
  for (var cIndex = 0; cIndex < row.length; cIndex++) {
40037
40036
  var vUpdateCell = row[cIndex] || "";
40038
40037
  var vupdateStr = vUpdateCell.toString();
40039
- var _cell = _objectSpread2({}, cell || {});
40038
+ var _cell = cIndex === 0 && rIndex === 0 ? _objectSpread2({}, cell || {}) : {};
40040
40039
  setVUpdateStr(_cell, vupdateStr, d, r + rIndex, c + cIndex, vUpdateCell);
40041
40040
  }
40042
40041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "4.0.41",
3
+ "version": "4.0.43",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "4.0.41",
16
+ "@leankylin-sheet/formula-parser": "4.0.43",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",