@leankylin-sheet/core 4.0.50 → 4.0.51

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
@@ -55640,6 +55640,8 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
55640
55640
  }
55641
55641
  updateCell(ctx, row, column, cellInput, curv);
55642
55642
  } else {
55643
+ var ov = cell.v;
55644
+ var nv = value.v;
55643
55645
  if (value.ct != null) {
55644
55646
  curv.ct = value.ct;
55645
55647
  }
@@ -55654,8 +55656,10 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
55654
55656
  if (value.m != null) {
55655
55657
  curv.m = value.m;
55656
55658
  }
55657
- delFunctionGroup(ctx, row, column);
55658
- setCellValue(ctx, row, column, data, curv);
55659
+ if (ov !== nv) {
55660
+ delFunctionGroup(ctx, row, column);
55661
+ setCellValue(ctx, row, column, data, curv);
55662
+ }
55659
55663
  }
55660
55664
  _.forEach(value, function (v, attr) {
55661
55665
  if (attr in formatList) {
package/dist/index.js CHANGED
@@ -55650,6 +55650,8 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
55650
55650
  }
55651
55651
  updateCell(ctx, row, column, cellInput, curv);
55652
55652
  } else {
55653
+ var ov = cell.v;
55654
+ var nv = value.v;
55653
55655
  if (value.ct != null) {
55654
55656
  curv.ct = value.ct;
55655
55657
  }
@@ -55664,8 +55666,10 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
55664
55666
  if (value.m != null) {
55665
55667
  curv.m = value.m;
55666
55668
  }
55667
- delFunctionGroup(ctx, row, column);
55668
- setCellValue(ctx, row, column, data, curv);
55669
+ if (ov !== nv) {
55670
+ delFunctionGroup(ctx, row, column);
55671
+ setCellValue(ctx, row, column, data, curv);
55672
+ }
55669
55673
  }
55670
55674
  ___default['default'].forEach(value, function (v, attr) {
55671
55675
  if (attr in formatList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "4.0.50",
3
+ "version": "4.0.51",
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.50",
16
+ "@leankylin-sheet/formula-parser": "4.0.51",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",