@leankylin-sheet/react 6.0.3 → 7.0.1
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.
|
@@ -50,7 +50,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
50
50
|
getHtmlByRange: (range: Range, options?: api.CommonOptions) => string | null;
|
|
51
51
|
setSelection: (range: Range, options?: api.CommonOptions) => void;
|
|
52
52
|
setCellValuesByRange: (data: any[][], range: SingleRange, options?: api.CommonOptions, setMerge?: boolean) => void;
|
|
53
|
-
setCellValues: (data: any[]) => void;
|
|
53
|
+
setCellValues: (data: any[], skipCalcDev?: boolean) => void;
|
|
54
54
|
setCellFormatByRange: (attr: keyof Cell, value: any, range: Range | SingleRange, options?: api.CommonOptions) => void;
|
|
55
55
|
mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
|
|
56
56
|
cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
|
|
@@ -58,7 +58,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
58
58
|
getHtmlByRange: (range: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => string | null;
|
|
59
59
|
setSelection: (range: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
60
60
|
setCellValuesByRange: (data: any[][], range: import("@leankylin-sheet/core").SingleRange, options?: import("@leankylin-sheet/core/dist/api").CommonOptions, setMerge?: boolean) => void;
|
|
61
|
-
setCellValues: (data: any[]) => void;
|
|
61
|
+
setCellValues: (data: any[], skipCalcDev?: boolean) => void;
|
|
62
62
|
setCellFormatByRange: (attr: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle, value: any, range: import("@leankylin-sheet/core").SingleRange | import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
63
63
|
mergeCells: (ranges: import("@leankylin-sheet/core").Range, type: string, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
64
64
|
cancelMerge: (ranges: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -11249,8 +11249,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
11249
11249
|
});
|
|
11250
11250
|
},
|
|
11251
11251
|
setCellValues: function setCellValues(data) {
|
|
11252
|
+
var skipCalcDev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11252
11253
|
return setContext(function (draftCtx) {
|
|
11253
|
-
return api.setCellValues(draftCtx, data, cellInput);
|
|
11254
|
+
return api.setCellValues(draftCtx, data, cellInput, skipCalcDev);
|
|
11254
11255
|
});
|
|
11255
11256
|
},
|
|
11256
11257
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|
package/dist/index.js
CHANGED
|
@@ -11259,8 +11259,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
11259
11259
|
});
|
|
11260
11260
|
},
|
|
11261
11261
|
setCellValues: function setCellValues(data) {
|
|
11262
|
+
var skipCalcDev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11262
11263
|
return setContext(function (draftCtx) {
|
|
11263
|
-
return core.api.setCellValues(draftCtx, data, cellInput);
|
|
11264
|
+
return core.api.setCellValues(draftCtx, data, cellInput, skipCalcDev);
|
|
11264
11265
|
});
|
|
11265
11266
|
},
|
|
11266
11267
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|
package/dist/index.umd.js
CHANGED
|
@@ -30333,8 +30333,9 @@
|
|
|
30333
30333
|
});
|
|
30334
30334
|
},
|
|
30335
30335
|
setCellValues: function setCellValues(data) {
|
|
30336
|
+
var skipCalcDev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
30336
30337
|
return setContext(function (draftCtx) {
|
|
30337
|
-
return core.api.setCellValues(draftCtx, data, cellInput);
|
|
30338
|
+
return core.api.setCellValues(draftCtx, data, cellInput, skipCalcDev);
|
|
30338
30339
|
});
|
|
30339
30340
|
},
|
|
30340
30341
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|