@leankylin-sheet/core 1.2.10 → 1.2.11

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
@@ -67888,9 +67888,6 @@ function pasteHandler(ctx, data, borderInfo) {
67888
67888
  var cellMaxLength = d[0].length;
67889
67889
  var addr = maxh - rowMaxLength + 1;
67890
67890
  var addc = maxc - cellMaxLength + 1;
67891
- if (addr > 0 || addc > 0) {
67892
- expandRowsAndColumns(d, addr, addc);
67893
- }
67894
67891
  if (!d) return;
67895
67892
  if (cfg.rowlen == null) {
67896
67893
  cfg.rowlen = {};
@@ -68510,8 +68507,11 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
68510
68507
  var cellMaxLength = d[0].length;
68511
68508
  var addr = copyh + minh - rowMaxLength;
68512
68509
  var addc = copyc + minc - cellMaxLength;
68513
- if (addr > 0 || addc > 0) {
68514
- expandRowsAndColumns(d, addr, addc);
68510
+ if (addr > 0) {
68511
+ copyh -= addr;
68512
+ }
68513
+ if (addc > 0) {
68514
+ copyc -= addc;
68515
68515
  }
68516
68516
  var borderInfoCompute = getBorderInfoCompute(ctx, copySheetIndex);
68517
68517
  var c_dataVerification = _.cloneDeep(ctx.luckysheetfile[getSheetIndex(ctx, copySheetIndex)].dataVerification) || {};
package/dist/index.js CHANGED
@@ -67898,9 +67898,6 @@ function pasteHandler(ctx, data, borderInfo) {
67898
67898
  var cellMaxLength = d[0].length;
67899
67899
  var addr = maxh - rowMaxLength + 1;
67900
67900
  var addc = maxc - cellMaxLength + 1;
67901
- if (addr > 0 || addc > 0) {
67902
- expandRowsAndColumns(d, addr, addc);
67903
- }
67904
67901
  if (!d) return;
67905
67902
  if (cfg.rowlen == null) {
67906
67903
  cfg.rowlen = {};
@@ -68520,8 +68517,11 @@ function pasteHandlerOfCopyPaste(ctx, copyRange) {
68520
68517
  var cellMaxLength = d[0].length;
68521
68518
  var addr = copyh + minh - rowMaxLength;
68522
68519
  var addc = copyc + minc - cellMaxLength;
68523
- if (addr > 0 || addc > 0) {
68524
- expandRowsAndColumns(d, addr, addc);
68520
+ if (addr > 0) {
68521
+ copyh -= addr;
68522
+ }
68523
+ if (addc > 0) {
68524
+ copyc -= addc;
68525
68525
  }
68526
68526
  var borderInfoCompute = getBorderInfoCompute(ctx, copySheetIndex);
68527
68527
  var c_dataVerification = ___default['default'].cloneDeep(ctx.luckysheetfile[getSheetIndex(ctx, copySheetIndex)].dataVerification) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "repository": "http://114.55.85.79:19999/leankylin-front/leankylin-sheet",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@leankylin-sheet/formula-parser": "^1.2.10",
13
+ "@leankylin-sheet/formula-parser": "^1.2.11",
14
14
  "dayjs": "^1.11.0",
15
15
  "immer": "^9.0.12",
16
16
  "lodash": "^4.17.21",