@leankylin-sheet/react 5.2.22 → 5.2.24

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
@@ -10367,9 +10367,13 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10367
10367
  if (sheetId) {
10368
10368
  api.calculateSheetFromula(draftCtx, sheetId, isrefresh);
10369
10369
  } else {
10370
- _.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
10371
- api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
10372
- });
10370
+ if (isrefresh) {
10371
+ api.calculateSheetFromula(draftCtx, '', isrefresh);
10372
+ } else {
10373
+ _.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
10374
+ api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
10375
+ });
10376
+ }
10373
10377
  }
10374
10378
  });
10375
10379
  },
package/dist/index.js CHANGED
@@ -10377,9 +10377,13 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
10377
10377
  if (sheetId) {
10378
10378
  core.api.calculateSheetFromula(draftCtx, sheetId, isrefresh);
10379
10379
  } else {
10380
- ___default['default'].forEach(draftCtx.luckysheetfile, function (sheet_obj) {
10381
- core.api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
10382
- });
10380
+ if (isrefresh) {
10381
+ core.api.calculateSheetFromula(draftCtx, '', isrefresh);
10382
+ } else {
10383
+ ___default['default'].forEach(draftCtx.luckysheetfile, function (sheet_obj) {
10384
+ core.api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
10385
+ });
10386
+ }
10383
10387
  }
10384
10388
  });
10385
10389
  },
package/dist/index.umd.js CHANGED
@@ -115246,9 +115246,13 @@
115246
115246
  if (sheetId) {
115247
115247
  index.calculateSheetFromula(draftCtx, sheetId, isrefresh);
115248
115248
  } else {
115249
- lodash.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
115250
- index.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
115251
- });
115249
+ if (isrefresh) {
115250
+ index.calculateSheetFromula(draftCtx, '', isrefresh);
115251
+ } else {
115252
+ lodash.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
115253
+ index.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
115254
+ });
115255
+ }
115252
115256
  }
115253
115257
  });
115254
115258
  },