@leankylin-sheet/core 4.0.37 → 4.0.38
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 +17 -18
- package/dist/index.js +17 -18
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -36171,7 +36171,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
|
|
|
36171
36171
|
if (_.isNil(data)) {
|
|
36172
36172
|
data = getFlowdata(ctx);
|
|
36173
36173
|
}
|
|
36174
|
-
debugger;
|
|
36175
36174
|
if (_.isNil(ctx.formulaCache.execFunctionGlobalData)) {
|
|
36176
36175
|
ctx.formulaCache.execFunctionGlobalData = {};
|
|
36177
36176
|
}
|
|
@@ -59883,7 +59882,7 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59883
59882
|
if (copyRich) {
|
|
59884
59883
|
for (var _offIndex = 0; _offIndex < result[index].length; _offIndex++) {
|
|
59885
59884
|
var offNumber = result[index][_offIndex];
|
|
59886
|
-
if (offNumber) {
|
|
59885
|
+
if (offNumber === null || offNumber === void 0 ? void 0 : offNumber._mc) {
|
|
59887
59886
|
cells.splice(_offIndex, 0, null);
|
|
59888
59887
|
}
|
|
59889
59888
|
}
|
|
@@ -59924,16 +59923,20 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59924
59923
|
} else {
|
|
59925
59924
|
borderInfo.push(getCellBorder(style, index + startRow, _colIndex));
|
|
59926
59925
|
}
|
|
59927
|
-
result[index][
|
|
59928
|
-
if (rowspan > 1) {
|
|
59929
|
-
for (var rs_index =
|
|
59926
|
+
result[index][offsetColIndex] = mainCell;
|
|
59927
|
+
if (rowspan > 1 || colspan > 1) {
|
|
59928
|
+
for (var rs_index = 0; rs_index < rowspan; rs_index += 1) {
|
|
59930
59929
|
var nextR = index + rs_index;
|
|
59931
59930
|
if (!result[nextR]) {
|
|
59932
59931
|
result[nextR] = [];
|
|
59933
59932
|
}
|
|
59934
59933
|
for (var _cIndex = 0; _cIndex < colspan; _cIndex++) {
|
|
59935
|
-
|
|
59934
|
+
if (rs_index === 0 && _cIndex === 0) {
|
|
59935
|
+
continue;
|
|
59936
|
+
}
|
|
59937
|
+
var nextC = offsetColIndex + _cIndex;
|
|
59936
59938
|
result[nextR][nextC] = {
|
|
59939
|
+
_mc: true,
|
|
59937
59940
|
mc: {
|
|
59938
59941
|
r: index + startRow,
|
|
59939
59942
|
c: _colIndex
|
|
@@ -59942,16 +59945,6 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59942
59945
|
}
|
|
59943
59946
|
}
|
|
59944
59947
|
}
|
|
59945
|
-
if (colspan > 1) {
|
|
59946
|
-
for (var cs_index = 1; cs_index < colspan; cs_index += 1) {
|
|
59947
|
-
result[index].push({
|
|
59948
|
-
mc: {
|
|
59949
|
-
r: index + startRow,
|
|
59950
|
-
c: _colIndex
|
|
59951
|
-
}
|
|
59952
|
-
});
|
|
59953
|
-
}
|
|
59954
|
-
}
|
|
59955
59948
|
offsetColIndex = (colspan || 1) + offsetColIndex;
|
|
59956
59949
|
} else {
|
|
59957
59950
|
var item = f ? {
|
|
@@ -59964,9 +59957,15 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59964
59957
|
}
|
|
59965
59958
|
}
|
|
59966
59959
|
}
|
|
59967
|
-
console.log("result", result);
|
|
59968
59960
|
return {
|
|
59969
|
-
data: result
|
|
59961
|
+
data: result === null || result === void 0 ? void 0 : result.map(function (item) {
|
|
59962
|
+
return item === null || item === void 0 ? void 0 : item.map(function (cell) {
|
|
59963
|
+
if (cell === null || cell === void 0 ? void 0 : cell._mc) {
|
|
59964
|
+
delete cell._mc;
|
|
59965
|
+
}
|
|
59966
|
+
return cell;
|
|
59967
|
+
});
|
|
59968
|
+
}),
|
|
59970
59969
|
borderInfo: borderInfo,
|
|
59971
59970
|
merge: merge
|
|
59972
59971
|
};
|
package/dist/index.js
CHANGED
|
@@ -36181,7 +36181,6 @@ function execFunctionGroup(ctx, origin_r, origin_c, value, id, data) {
|
|
|
36181
36181
|
if (___default['default'].isNil(data)) {
|
|
36182
36182
|
data = getFlowdata(ctx);
|
|
36183
36183
|
}
|
|
36184
|
-
debugger;
|
|
36185
36184
|
if (___default['default'].isNil(ctx.formulaCache.execFunctionGlobalData)) {
|
|
36186
36185
|
ctx.formulaCache.execFunctionGlobalData = {};
|
|
36187
36186
|
}
|
|
@@ -59893,7 +59892,7 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59893
59892
|
if (copyRich) {
|
|
59894
59893
|
for (var _offIndex = 0; _offIndex < result[index].length; _offIndex++) {
|
|
59895
59894
|
var offNumber = result[index][_offIndex];
|
|
59896
|
-
if (offNumber) {
|
|
59895
|
+
if (offNumber === null || offNumber === void 0 ? void 0 : offNumber._mc) {
|
|
59897
59896
|
cells.splice(_offIndex, 0, null);
|
|
59898
59897
|
}
|
|
59899
59898
|
}
|
|
@@ -59934,16 +59933,20 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59934
59933
|
} else {
|
|
59935
59934
|
borderInfo.push(getCellBorder(style, index + startRow, _colIndex));
|
|
59936
59935
|
}
|
|
59937
|
-
result[index][
|
|
59938
|
-
if (rowspan > 1) {
|
|
59939
|
-
for (var rs_index =
|
|
59936
|
+
result[index][offsetColIndex] = mainCell;
|
|
59937
|
+
if (rowspan > 1 || colspan > 1) {
|
|
59938
|
+
for (var rs_index = 0; rs_index < rowspan; rs_index += 1) {
|
|
59940
59939
|
var nextR = index + rs_index;
|
|
59941
59940
|
if (!result[nextR]) {
|
|
59942
59941
|
result[nextR] = [];
|
|
59943
59942
|
}
|
|
59944
59943
|
for (var _cIndex = 0; _cIndex < colspan; _cIndex++) {
|
|
59945
|
-
|
|
59944
|
+
if (rs_index === 0 && _cIndex === 0) {
|
|
59945
|
+
continue;
|
|
59946
|
+
}
|
|
59947
|
+
var nextC = offsetColIndex + _cIndex;
|
|
59946
59948
|
result[nextR][nextC] = {
|
|
59949
|
+
_mc: true,
|
|
59947
59950
|
mc: {
|
|
59948
59951
|
r: index + startRow,
|
|
59949
59952
|
c: _colIndex
|
|
@@ -59952,16 +59955,6 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59952
59955
|
}
|
|
59953
59956
|
}
|
|
59954
59957
|
}
|
|
59955
|
-
if (colspan > 1) {
|
|
59956
|
-
for (var cs_index = 1; cs_index < colspan; cs_index += 1) {
|
|
59957
|
-
result[index].push({
|
|
59958
|
-
mc: {
|
|
59959
|
-
r: index + startRow,
|
|
59960
|
-
c: _colIndex
|
|
59961
|
-
}
|
|
59962
|
-
});
|
|
59963
|
-
}
|
|
59964
|
-
}
|
|
59965
59958
|
offsetColIndex = (colspan || 1) + offsetColIndex;
|
|
59966
59959
|
} else {
|
|
59967
59960
|
var item = f ? {
|
|
@@ -59974,9 +59967,15 @@ function getClipboardData(ctx, e, copyRich, startRow, startCol) {
|
|
|
59974
59967
|
}
|
|
59975
59968
|
}
|
|
59976
59969
|
}
|
|
59977
|
-
console.log("result", result);
|
|
59978
59970
|
return {
|
|
59979
|
-
data: result
|
|
59971
|
+
data: result === null || result === void 0 ? void 0 : result.map(function (item) {
|
|
59972
|
+
return item === null || item === void 0 ? void 0 : item.map(function (cell) {
|
|
59973
|
+
if (cell === null || cell === void 0 ? void 0 : cell._mc) {
|
|
59974
|
+
delete cell._mc;
|
|
59975
|
+
}
|
|
59976
|
+
return cell;
|
|
59977
|
+
});
|
|
59978
|
+
}),
|
|
59980
59979
|
borderInfo: borderInfo,
|
|
59981
59980
|
merge: merge
|
|
59982
59981
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.38",
|
|
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.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "4.0.38",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|