@leankylin-sheet/react 4.0.7 → 4.0.8
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.
|
@@ -46,7 +46,7 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
46
46
|
getHtmlByRange: (range: Range, options?: api.CommonOptions) => string | null;
|
|
47
47
|
setSelection: (range: Range, options?: api.CommonOptions) => void;
|
|
48
48
|
setCellValuesByRange: (data: any[][], range: SingleRange, options?: api.CommonOptions) => void;
|
|
49
|
-
setCellValues: (data: any[]
|
|
49
|
+
setCellValues: (data: any[]) => void;
|
|
50
50
|
setCellFormatByRange: (attr: keyof Cell, value: any, range: Range | SingleRange, options?: api.CommonOptions) => void;
|
|
51
51
|
mergeCells: (ranges: Range, type: string, options?: api.CommonOptions) => void;
|
|
52
52
|
cancelMerge: (ranges: Range, options?: api.CommonOptions) => void;
|
|
@@ -54,7 +54,7 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
54
54
|
getHtmlByRange: (range: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => string | null;
|
|
55
55
|
setSelection: (range: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
56
56
|
setCellValuesByRange: (data: any[][], range: import("@leankylin-sheet/core").SingleRange, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
57
|
-
setCellValues: (data: any[]
|
|
57
|
+
setCellValues: (data: any[]) => void;
|
|
58
58
|
setCellFormatByRange: (attr: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "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;
|
|
59
59
|
mergeCells: (ranges: import("@leankylin-sheet/core").Range, type: string, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
60
60
|
cancelMerge: (ranges: import("@leankylin-sheet/core").Range, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -10208,9 +10208,8 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10208
10208
|
});
|
|
10209
10209
|
},
|
|
10210
10210
|
setCellValues: function setCellValues(data) {
|
|
10211
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10212
10211
|
return setContext(function (draftCtx) {
|
|
10213
|
-
return api.setCellValues(draftCtx, data, cellInput
|
|
10212
|
+
return api.setCellValues(draftCtx, data, cellInput);
|
|
10214
10213
|
});
|
|
10215
10214
|
},
|
|
10216
10215
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|
package/dist/index.js
CHANGED
|
@@ -10218,9 +10218,8 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10218
10218
|
});
|
|
10219
10219
|
},
|
|
10220
10220
|
setCellValues: function setCellValues(data) {
|
|
10221
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10222
10221
|
return setContext(function (draftCtx) {
|
|
10223
|
-
return core.api.setCellValues(draftCtx, data, cellInput
|
|
10222
|
+
return core.api.setCellValues(draftCtx, data, cellInput);
|
|
10224
10223
|
});
|
|
10225
10224
|
},
|
|
10226
10225
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|
package/dist/index.umd.js
CHANGED
|
@@ -103556,9 +103556,8 @@
|
|
|
103556
103556
|
});
|
|
103557
103557
|
},
|
|
103558
103558
|
setCellValues: function setCellValues(data) {
|
|
103559
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
103560
103559
|
return setContext(function (draftCtx) {
|
|
103561
|
-
return index.setCellValues(draftCtx, data, cellInput
|
|
103560
|
+
return index.setCellValues(draftCtx, data, cellInput);
|
|
103562
103561
|
});
|
|
103563
103562
|
},
|
|
103564
103563
|
setCellFormatByRange: function setCellFormatByRange(attr, value, range) {
|