@leankylin-sheet/react 5.2.15 → 5.2.16
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.
|
@@ -119,7 +119,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
119
119
|
}[]) => void;
|
|
120
120
|
handleUndo: () => void;
|
|
121
121
|
handleRedo: () => void;
|
|
122
|
-
calculateFormula: (sheetId?: string) => void;
|
|
122
|
+
calculateFormula: (sheetId?: string, isrefresh?: boolean) => void;
|
|
123
123
|
calculateSheetByCells: (cells: any) => void;
|
|
124
124
|
dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
|
|
125
125
|
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number, colCount?: number) => CellMatrix | null;
|
|
@@ -127,7 +127,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
127
127
|
}[]) => void;
|
|
128
128
|
handleUndo: () => void;
|
|
129
129
|
handleRedo: () => void;
|
|
130
|
-
calculateFormula: (sheetId?: string | undefined) => void;
|
|
130
|
+
calculateFormula: (sheetId?: string | undefined, isrefresh?: boolean) => void;
|
|
131
131
|
calculateSheetByCells: (cells: any) => void;
|
|
132
132
|
dataToCelldata: (data: CellMatrix | undefined) => CellWithRowAndCol[];
|
|
133
133
|
celldataToData: (celldata: CellWithRowAndCol[], rowCount?: number | undefined, colCount?: number | undefined) => CellMatrix | null;
|
package/dist/index.esm.js
CHANGED
|
@@ -10277,13 +10277,14 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10277
10277
|
handleUndo: handleUndo,
|
|
10278
10278
|
handleRedo: handleRedo,
|
|
10279
10279
|
calculateFormula: function calculateFormula(sheetId) {
|
|
10280
|
+
var isrefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
10280
10281
|
setContext(function (draftCtx) {
|
|
10281
10282
|
api.updateFunctionGroup(draftCtx);
|
|
10282
10283
|
if (sheetId) {
|
|
10283
|
-
api.calculateSheetFromula(draftCtx, sheetId);
|
|
10284
|
+
api.calculateSheetFromula(draftCtx, sheetId, isrefresh);
|
|
10284
10285
|
} else {
|
|
10285
10286
|
_.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
|
|
10286
|
-
api.calculateSheetFromula(draftCtx, sheet_obj.id);
|
|
10287
|
+
api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
|
|
10287
10288
|
});
|
|
10288
10289
|
}
|
|
10289
10290
|
});
|
package/dist/index.js
CHANGED
|
@@ -10287,13 +10287,14 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10287
10287
|
handleUndo: handleUndo,
|
|
10288
10288
|
handleRedo: handleRedo,
|
|
10289
10289
|
calculateFormula: function calculateFormula(sheetId) {
|
|
10290
|
+
var isrefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
10290
10291
|
setContext(function (draftCtx) {
|
|
10291
10292
|
core.api.updateFunctionGroup(draftCtx);
|
|
10292
10293
|
if (sheetId) {
|
|
10293
|
-
core.api.calculateSheetFromula(draftCtx, sheetId);
|
|
10294
|
+
core.api.calculateSheetFromula(draftCtx, sheetId, isrefresh);
|
|
10294
10295
|
} else {
|
|
10295
10296
|
___default['default'].forEach(draftCtx.luckysheetfile, function (sheet_obj) {
|
|
10296
|
-
core.api.calculateSheetFromula(draftCtx, sheet_obj.id);
|
|
10297
|
+
core.api.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
|
|
10297
10298
|
});
|
|
10298
10299
|
}
|
|
10299
10300
|
});
|
package/dist/index.umd.js
CHANGED
|
@@ -115156,13 +115156,14 @@
|
|
|
115156
115156
|
handleUndo: handleUndo,
|
|
115157
115157
|
handleRedo: handleRedo,
|
|
115158
115158
|
calculateFormula: function calculateFormula(sheetId) {
|
|
115159
|
+
var isrefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
115159
115160
|
setContext(function (draftCtx) {
|
|
115160
115161
|
index.updateFunctionGroup(draftCtx);
|
|
115161
115162
|
if (sheetId) {
|
|
115162
|
-
index.calculateSheetFromula(draftCtx, sheetId);
|
|
115163
|
+
index.calculateSheetFromula(draftCtx, sheetId, isrefresh);
|
|
115163
115164
|
} else {
|
|
115164
115165
|
lodash.forEach(draftCtx.luckysheetfile, function (sheet_obj) {
|
|
115165
|
-
index.calculateSheetFromula(draftCtx, sheet_obj.id);
|
|
115166
|
+
index.calculateSheetFromula(draftCtx, sheet_obj.id, isrefresh);
|
|
115166
115167
|
});
|
|
115167
115168
|
}
|
|
115168
115169
|
});
|