@leankylin-sheet/core 2.0.13 → 2.0.14
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/context.d.ts +6 -0
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -0
- package/dist/settings.d.ts +2 -2
- package/package.json +2 -2
package/dist/context.d.ts
CHANGED
|
@@ -13,7 +13,13 @@ type RefValues = {
|
|
|
13
13
|
cellArea: MutableRefObject<HTMLDivElement | null>;
|
|
14
14
|
workbookContainer: MutableRefObject<HTMLDivElement | null>;
|
|
15
15
|
};
|
|
16
|
+
export type CellOptions = {
|
|
17
|
+
r: number;
|
|
18
|
+
c: number;
|
|
19
|
+
render: any;
|
|
20
|
+
}[];
|
|
16
21
|
export type Context = {
|
|
22
|
+
cellOptions: CellOptions;
|
|
17
23
|
luckysheetfile: Sheet[];
|
|
18
24
|
defaultcolumnNum: number;
|
|
19
25
|
defaultrowNum: number;
|
package/dist/index.esm.js
CHANGED
|
@@ -52612,6 +52612,7 @@ function calcSelectionInfo(ctx, lang) {
|
|
|
52612
52612
|
|
|
52613
52613
|
function defaultContext(refs) {
|
|
52614
52614
|
return {
|
|
52615
|
+
cellOptions: [],
|
|
52615
52616
|
luckysheetfile: [],
|
|
52616
52617
|
defaultcolumnNum: 60,
|
|
52617
52618
|
defaultrowNum: 84,
|
package/dist/index.js
CHANGED
|
@@ -52622,6 +52622,7 @@ function calcSelectionInfo(ctx, lang) {
|
|
|
52622
52622
|
|
|
52623
52623
|
function defaultContext(refs) {
|
|
52624
52624
|
return {
|
|
52625
|
+
cellOptions: [],
|
|
52625
52626
|
luckysheetfile: [],
|
|
52626
52627
|
defaultcolumnNum: 60,
|
|
52627
52628
|
defaultrowNum: 84,
|
package/dist/settings.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type Hooks = {
|
|
|
60
60
|
export type Settings = {
|
|
61
61
|
renderCalcInfo?: any;
|
|
62
62
|
renderFreezeCol?: any;
|
|
63
|
-
renderFreezeRow
|
|
63
|
+
renderFreezeRow?: any;
|
|
64
64
|
renderFilter?: any;
|
|
65
65
|
fxContainer?: any;
|
|
66
66
|
disabledKeyboardCodes?: string[];
|
|
@@ -89,7 +89,7 @@ export type Settings = {
|
|
|
89
89
|
toolbarItems?: string[];
|
|
90
90
|
cellContextMenu?: () => string[];
|
|
91
91
|
headerContextMenu?: string[];
|
|
92
|
-
cellCustomContextMenu
|
|
92
|
+
cellCustomContextMenu?: () => {
|
|
93
93
|
key: string;
|
|
94
94
|
element: any;
|
|
95
95
|
onClick: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
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": "^2.0.
|
|
16
|
+
"@leankylin-sheet/formula-parser": "^2.0.14",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|