@leankylin-sheet/react 5.2.35 → 5.2.36
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/components/Workbook/api.d.ts +3 -0
- package/dist/components/Workbook/index.d.ts +3 -0
- package/dist/index.esm.js +12 -0
- package/dist/index.js +12 -0
- package/dist/index.umd.js +12 -0
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
|
@@ -15,6 +15,9 @@ export declare function generateAPIs(context: Context, setContext: (recipe: (ctx
|
|
|
15
15
|
setCellValue: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
16
16
|
type?: keyof Cell;
|
|
17
17
|
}) => void;
|
|
18
|
+
setCellValueForce: (row: number, column: number, value: any, options?: api.CommonOptions & {
|
|
19
|
+
type?: keyof Cell;
|
|
20
|
+
}) => void;
|
|
18
21
|
clearCell: (row: number, column: number, options?: api.CommonOptions) => void;
|
|
19
22
|
setCellFormat: (row: number, column: number, attr: keyof Cell, value: any, options?: api.CommonOptions) => void;
|
|
20
23
|
autoFillCell: (copyRange: SingleRange, applyRange: SingleRange, direction: "up" | "down" | "left" | "right") => void;
|
|
@@ -23,6 +23,9 @@ declare const Workbook: React.ForwardRefExoticComponent<Settings & AdditionalPro
|
|
|
23
23
|
setCellValue: (row: number, column: number, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions & {
|
|
24
24
|
type?: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle | undefined;
|
|
25
25
|
}) => void;
|
|
26
|
+
setCellValueForce: (row: number, column: number, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions & {
|
|
27
|
+
type?: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle | undefined;
|
|
28
|
+
}) => void;
|
|
26
29
|
clearCell: (row: number, column: number, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
27
30
|
setCellFormat: (row: number, column: number, attr: "v" | "m" | "mc" | "f" | "ct" | "qp" | "spl" | "bg" | "lo" | "rt" | "ps" | "tip" | "hl" | keyof import("@leankylin-sheet/core").CellStyle, value: any, options?: import("@leankylin-sheet/core/dist/api").CommonOptions) => void;
|
|
28
31
|
autoFillCell: (copyRange: import("@leankylin-sheet/core").SingleRange, applyRange: import("@leankylin-sheet/core").SingleRange, direction: "up" | "down" | "left" | "right") => void;
|
package/dist/index.esm.js
CHANGED
|
@@ -10346,6 +10346,18 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10346
10346
|
return api.setCellValue(draftCtx, row, column, value, cellInput, options);
|
|
10347
10347
|
});
|
|
10348
10348
|
},
|
|
10349
|
+
setCellValueForce: function setCellValueForce(row, column, value) {
|
|
10350
|
+
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
10351
|
+
return setContext(function (draftCtx) {
|
|
10352
|
+
updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
|
|
10353
|
+
draftCtx.luckysheet_select_save = [{
|
|
10354
|
+
row: [row, row],
|
|
10355
|
+
column: [column, column],
|
|
10356
|
+
row_focus: row,
|
|
10357
|
+
column_focus: column
|
|
10358
|
+
}];
|
|
10359
|
+
});
|
|
10360
|
+
},
|
|
10349
10361
|
clearCell: function clearCell(row, column) {
|
|
10350
10362
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
10351
10363
|
return setContext(function (draftCtx) {
|
package/dist/index.js
CHANGED
|
@@ -10356,6 +10356,18 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
10356
10356
|
return core.api.setCellValue(draftCtx, row, column, value, cellInput, options);
|
|
10357
10357
|
});
|
|
10358
10358
|
},
|
|
10359
|
+
setCellValueForce: function setCellValueForce(row, column, value) {
|
|
10360
|
+
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
10361
|
+
return setContext(function (draftCtx) {
|
|
10362
|
+
core.updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
|
|
10363
|
+
draftCtx.luckysheet_select_save = [{
|
|
10364
|
+
row: [row, row],
|
|
10365
|
+
column: [column, column],
|
|
10366
|
+
row_focus: row,
|
|
10367
|
+
column_focus: column
|
|
10368
|
+
}];
|
|
10369
|
+
});
|
|
10370
|
+
},
|
|
10359
10371
|
clearCell: function clearCell(row, column) {
|
|
10360
10372
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
10361
10373
|
return setContext(function (draftCtx) {
|
package/dist/index.umd.js
CHANGED
|
@@ -115377,6 +115377,18 @@
|
|
|
115377
115377
|
return index.setCellValue(draftCtx, row, column, value, cellInput, options);
|
|
115378
115378
|
});
|
|
115379
115379
|
},
|
|
115380
|
+
setCellValueForce: function setCellValueForce(row, column, value) {
|
|
115381
|
+
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
115382
|
+
return setContext(function (draftCtx) {
|
|
115383
|
+
updateCell(draftCtx, row, column, cellInput, value, undefined, options.id);
|
|
115384
|
+
draftCtx.luckysheet_select_save = [{
|
|
115385
|
+
row: [row, row],
|
|
115386
|
+
column: [column, column],
|
|
115387
|
+
row_focus: row,
|
|
115388
|
+
column_focus: column
|
|
115389
|
+
}];
|
|
115390
|
+
});
|
|
115391
|
+
},
|
|
115380
115392
|
clearCell: function clearCell(row, column) {
|
|
115381
115393
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
115382
115394
|
return setContext(function (draftCtx) {
|