@leankylin-sheet/core 5.2.67 → 5.2.69
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 +4 -7
- package/dist/index.js +4 -7
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -43270,14 +43270,11 @@ function initSheetIndex(ctx) {
|
|
|
43270
43270
|
var shownSheets = ctx.luckysheetfile.filter(function (singleSheet) {
|
|
43271
43271
|
return _.isUndefined(singleSheet.hide) || singleSheet.hide !== 1;
|
|
43272
43272
|
});
|
|
43273
|
-
|
|
43273
|
+
var firstSheet = _.sortBy(shownSheets, function (sheet) {
|
|
43274
43274
|
return sheet.order;
|
|
43275
|
-
})[0]
|
|
43276
|
-
|
|
43277
|
-
|
|
43278
|
-
ctx.currentSheetId = ctx.luckysheetfile[i].id;
|
|
43279
|
-
break;
|
|
43280
|
-
}
|
|
43275
|
+
})[0];
|
|
43276
|
+
if (firstSheet) {
|
|
43277
|
+
ctx.currentSheetId = firstSheet.id;
|
|
43281
43278
|
}
|
|
43282
43279
|
}
|
|
43283
43280
|
function updateContextWithSheetData(ctx, data, blank) {
|
package/dist/index.js
CHANGED
|
@@ -43280,14 +43280,11 @@ function initSheetIndex(ctx) {
|
|
|
43280
43280
|
var shownSheets = ctx.luckysheetfile.filter(function (singleSheet) {
|
|
43281
43281
|
return ___default['default'].isUndefined(singleSheet.hide) || singleSheet.hide !== 1;
|
|
43282
43282
|
});
|
|
43283
|
-
|
|
43283
|
+
var firstSheet = ___default['default'].sortBy(shownSheets, function (sheet) {
|
|
43284
43284
|
return sheet.order;
|
|
43285
|
-
})[0]
|
|
43286
|
-
|
|
43287
|
-
|
|
43288
|
-
ctx.currentSheetId = ctx.luckysheetfile[i].id;
|
|
43289
|
-
break;
|
|
43290
|
-
}
|
|
43285
|
+
})[0];
|
|
43286
|
+
if (firstSheet) {
|
|
43287
|
+
ctx.currentSheetId = firstSheet.id;
|
|
43291
43288
|
}
|
|
43292
43289
|
}
|
|
43293
43290
|
function updateContextWithSheetData(ctx, data, blank) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.69",
|
|
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": "5.2.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "5.2.69",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|