@leankylin-sheet/core 4.0.27 → 4.0.28

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
@@ -59806,6 +59806,10 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
59806
59806
  m: m || v,
59807
59807
  f: f || undefined
59808
59808
  }, domStyleToCellAttr(style));
59809
+ if (f) {
59810
+ delete mainCell.m;
59811
+ delete mainCell.v;
59812
+ }
59809
59813
  if (colspan > 1 || rowspan > 1) {
59810
59814
  mainCell.mc = {
59811
59815
  rs: rowspan,
@@ -59851,11 +59855,13 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
59851
59855
  }
59852
59856
  offsetColIndex += colspan || 1;
59853
59857
  } else {
59854
- result[index].push({
59858
+ var item = f ? {
59859
+ f: f
59860
+ } : {
59855
59861
  m: m,
59856
- v: v,
59857
- f: f || undefined
59858
- });
59862
+ v: v
59863
+ };
59864
+ result[index].push(item);
59859
59865
  }
59860
59866
  }
59861
59867
  }
package/dist/index.js CHANGED
@@ -59816,6 +59816,10 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
59816
59816
  m: m || v,
59817
59817
  f: f || undefined
59818
59818
  }, domStyleToCellAttr(style));
59819
+ if (f) {
59820
+ delete mainCell.m;
59821
+ delete mainCell.v;
59822
+ }
59819
59823
  if (colspan > 1 || rowspan > 1) {
59820
59824
  mainCell.mc = {
59821
59825
  rs: rowspan,
@@ -59861,11 +59865,13 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
59861
59865
  }
59862
59866
  offsetColIndex += colspan || 1;
59863
59867
  } else {
59864
- result[index].push({
59868
+ var item = f ? {
59869
+ f: f
59870
+ } : {
59865
59871
  m: m,
59866
- v: v,
59867
- f: f || undefined
59868
- });
59872
+ v: v
59873
+ };
59874
+ result[index].push(item);
59869
59875
  }
59870
59876
  }
59871
59877
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
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.27",
16
+ "@leankylin-sheet/formula-parser": "4.0.28",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",