@leankylin-sheet/core 4.0.56 → 4.0.57
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 +8 -0
- package/dist/index.js +8 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -55629,6 +55629,14 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
|
|
|
55629
55629
|
} else if (value instanceof Object) {
|
|
55630
55630
|
var _data$row;
|
|
55631
55631
|
var curv = {};
|
|
55632
|
+
if (!(data === null || data === void 0 ? void 0 : data[row])) {
|
|
55633
|
+
var needAddRow = row - ((data === null || data === void 0 ? void 0 : data.length) || 0) + 1;
|
|
55634
|
+
data === null || data === void 0 ? void 0 : data.push.apply(data, _toConsumableArray(Array.from({
|
|
55635
|
+
length: needAddRow
|
|
55636
|
+
}).map(function () {
|
|
55637
|
+
return [];
|
|
55638
|
+
})));
|
|
55639
|
+
}
|
|
55632
55640
|
if ((data === null || data === void 0 ? void 0 : (_data$row = data[row]) === null || _data$row === void 0 ? void 0 : _data$row[column]) == null) {
|
|
55633
55641
|
data[row][column] = {};
|
|
55634
55642
|
}
|
package/dist/index.js
CHANGED
|
@@ -55639,6 +55639,14 @@ function setCellValue$1(ctx, row, column, value, cellInput) {
|
|
|
55639
55639
|
} else if (value instanceof Object) {
|
|
55640
55640
|
var _data$row;
|
|
55641
55641
|
var curv = {};
|
|
55642
|
+
if (!(data === null || data === void 0 ? void 0 : data[row])) {
|
|
55643
|
+
var needAddRow = row - ((data === null || data === void 0 ? void 0 : data.length) || 0) + 1;
|
|
55644
|
+
data === null || data === void 0 ? void 0 : data.push.apply(data, _toConsumableArray(Array.from({
|
|
55645
|
+
length: needAddRow
|
|
55646
|
+
}).map(function () {
|
|
55647
|
+
return [];
|
|
55648
|
+
})));
|
|
55649
|
+
}
|
|
55642
55650
|
if ((data === null || data === void 0 ? void 0 : (_data$row = data[row]) === null || _data$row === void 0 ? void 0 : _data$row[column]) == null) {
|
|
55643
55651
|
data[row][column] = {};
|
|
55644
55652
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.57",
|
|
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.57",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|