@leankylin-sheet/core 5.2.27 → 5.2.28
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 +2 -1
- package/dist/index.js +2 -1
- package/dist/settings.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -46594,7 +46594,8 @@ function copySheet(ctx, sheetId, hooks) {
|
|
|
46594
46594
|
delete sheetData.data;
|
|
46595
46595
|
var copyId = v4();
|
|
46596
46596
|
sheetData.id = copyId;
|
|
46597
|
-
|
|
46597
|
+
var _sheetData = hooks.onCopySheetBefore ? hooks.onCopySheetBefore(sheetId, sheetData) : sheetData;
|
|
46598
|
+
addSheet$1(ctx, undefined, copyId, ctx.luckysheetfile[index$1].isPivotTable, sheetName, _sheetData);
|
|
46598
46599
|
var sheetOrderList = {};
|
|
46599
46600
|
sheetOrderList[ctx.luckysheetfile[ctx.luckysheetfile.length - 1].id] = order;
|
|
46600
46601
|
setSheetOrder(ctx, sheetOrderList);
|
package/dist/index.js
CHANGED
|
@@ -46604,7 +46604,8 @@ function copySheet(ctx, sheetId, hooks) {
|
|
|
46604
46604
|
delete sheetData.data;
|
|
46605
46605
|
var copyId = uuid.v4();
|
|
46606
46606
|
sheetData.id = copyId;
|
|
46607
|
-
|
|
46607
|
+
var _sheetData = hooks.onCopySheetBefore ? hooks.onCopySheetBefore(sheetId, sheetData) : sheetData;
|
|
46608
|
+
addSheet$1(ctx, undefined, copyId, ctx.luckysheetfile[index$1].isPivotTable, sheetName, _sheetData);
|
|
46608
46609
|
var sheetOrderList = {};
|
|
46609
46610
|
sheetOrderList[ctx.luckysheetfile[ctx.luckysheetfile.length - 1].id] = order;
|
|
46610
46611
|
setSheetOrder(ctx, sheetOrderList);
|
package/dist/settings.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type Hooks = {
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => void;
|
|
12
12
|
onCopySheet?: (oldSheetId: string, newSheetId: string) => void;
|
|
13
|
+
onCopySheetBefore?: (oldSheetId: any, sheetData: any) => any;
|
|
13
14
|
commentsPreRender?: (r: number, c: number) => any;
|
|
14
15
|
showCommentsMenu?: (item: {
|
|
15
16
|
text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.28",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build": "father-build"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@leankylin-sheet/formula-parser": "5.2.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "5.2.28",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|