@antv/s2-vue 1.1.0-alpha.1 → 1.2.0
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/README.md +2 -2
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/style.min.css +1 -1
- package/esm/index.d.ts +181 -69
- package/esm/index.js +173 -143
- package/esm/index.js.map +1 -1
- package/esm/style.css +6 -0
- package/lib/index.js +172 -142
- package/lib/index.js.map +1 -1
- package/lib/style.css +6 -0
- package/package.json +2 -2
package/esm/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import EE from '@antv/event-emitter';
|
|
|
18
18
|
import { Event as Event_2 } from '@antv/g-canvas';
|
|
19
19
|
import { ExtractPropTypes } from 'vue';
|
|
20
20
|
import type { GEvent } from '@antv/s2';
|
|
21
|
+
import { GM } from '@antv/g-gesture';
|
|
21
22
|
import { Group } from '@antv/g-canvas';
|
|
22
23
|
import { HiddenColumnsInfo } from '@antv/s2';
|
|
23
24
|
import type { IElement } from '@antv/g-canvas';
|
|
@@ -67,6 +68,12 @@ declare interface Background {
|
|
|
67
68
|
color?: string;
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
declare interface BarTheme {
|
|
72
|
+
intervalPadding?: number;
|
|
73
|
+
fill?: string;
|
|
74
|
+
opacity?: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
70
77
|
declare abstract class BaseBBox implements BBox {
|
|
71
78
|
protected spreadsheet: SpreadSheet_2;
|
|
72
79
|
protected facet: BaseFacet;
|
|
@@ -136,7 +143,7 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
136
143
|
protected abstract getTextPosition(): Point;
|
|
137
144
|
getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
|
|
138
145
|
protected getResizeAreaStyle(): ResizeArea;
|
|
139
|
-
protected shouldDrawResizeAreaByType(type: keyof
|
|
146
|
+
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType): boolean | ((cell: S2CellType<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean);
|
|
140
147
|
protected getCellArea(): {
|
|
141
148
|
x: number;
|
|
142
149
|
y: number;
|
|
@@ -161,6 +168,15 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
161
168
|
getTextShape(): IShape;
|
|
162
169
|
}
|
|
163
170
|
|
|
171
|
+
declare interface BaseChartData {
|
|
172
|
+
type: MiniChartTypes;
|
|
173
|
+
data: Data_2[];
|
|
174
|
+
encode?: {
|
|
175
|
+
x: keyof Data_2;
|
|
176
|
+
y: keyof Data_2;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
164
180
|
declare interface BaseDataSet {
|
|
165
181
|
name: string;
|
|
166
182
|
value: string;
|
|
@@ -259,6 +275,9 @@ declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
|
259
275
|
declare abstract class BaseEvent {
|
|
260
276
|
spreadsheet: SpreadSheet_2;
|
|
261
277
|
constructor(spreadsheet: SpreadSheet_2);
|
|
278
|
+
getCellAppendInfo<T extends Record<string, any> = CellAppendInfo>(eventTarget: Event_2['target']): T;
|
|
279
|
+
isLinkFieldText: (eventTarget: Event_2['target']) => boolean;
|
|
280
|
+
reset(): void;
|
|
262
281
|
abstract bindEvents(): void;
|
|
263
282
|
}
|
|
264
283
|
|
|
@@ -291,6 +310,8 @@ declare abstract class BaseFacet {
|
|
|
291
310
|
get scrollBarSize(): number;
|
|
292
311
|
protected preCellIndexes: PanelIndexes;
|
|
293
312
|
constructor(cfg: SpreadSheetFacetCfg);
|
|
313
|
+
protected getCellCustomWidth(node: Node_2_2, width: CellCustomWidth): number;
|
|
314
|
+
protected getCellDraggedWidth(node: Node_2_2): number;
|
|
294
315
|
hideScrollBar: () => void;
|
|
295
316
|
delayHideScrollBar: DebouncedFunc<() => void>;
|
|
296
317
|
delayHideScrollbarOnMobile: () => void;
|
|
@@ -435,13 +456,14 @@ declare abstract class BaseFacet {
|
|
|
435
456
|
cols: number[];
|
|
436
457
|
rows: any[];
|
|
437
458
|
};
|
|
438
|
-
|
|
459
|
+
updatePanelScrollGroup(): void;
|
|
439
460
|
/**
|
|
440
461
|
* When scroll behavior happened, only render one time in a period,
|
|
441
462
|
* but render immediately in initiate
|
|
442
463
|
* @protected
|
|
443
464
|
*/
|
|
444
465
|
protected dynamicRenderCell(): void;
|
|
466
|
+
private emitScrollEvent;
|
|
445
467
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
446
468
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
447
469
|
}
|
|
@@ -596,6 +618,7 @@ id: number;
|
|
|
596
618
|
isCollapsed: boolean;
|
|
597
619
|
node: Node_2;
|
|
598
620
|
}) => void;
|
|
621
|
+
rowCellScroll: (position: CellScrollPosition) => void;
|
|
599
622
|
colCellHover: (data: TargetCellInfo) => void;
|
|
600
623
|
colCellClick: (data: TargetCellInfo) => void;
|
|
601
624
|
colCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -687,6 +710,7 @@ linkFieldJump: (data: {
|
|
|
687
710
|
key: string;
|
|
688
711
|
record: Data;
|
|
689
712
|
}) => void;
|
|
713
|
+
scroll: (position: CellScrollPosition) => void;
|
|
690
714
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
691
715
|
sheetType: PropType<SheetType>;
|
|
692
716
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -728,6 +752,7 @@ id: number;
|
|
|
728
752
|
isCollapsed: boolean;
|
|
729
753
|
node: Node_2;
|
|
730
754
|
}) => any;
|
|
755
|
+
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
731
756
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
732
757
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
733
758
|
onColCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -819,6 +844,7 @@ onLinkFieldJump?: (data: {
|
|
|
819
844
|
key: string;
|
|
820
845
|
record: Data;
|
|
821
846
|
}) => any;
|
|
847
|
+
onScroll?: (position: CellScrollPosition) => any;
|
|
822
848
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<string | Element>) => any;
|
|
823
849
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
824
850
|
}, {
|
|
@@ -864,6 +890,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
864
890
|
isCollapsed: boolean;
|
|
865
891
|
node: Node_2;
|
|
866
892
|
}) => void;
|
|
893
|
+
onRowCellScroll?: (position: CellScrollPosition) => void;
|
|
867
894
|
onColCellHover?: (data: TargetCellInfo) => void;
|
|
868
895
|
onColCellClick?: (data: TargetCellInfo) => void;
|
|
869
896
|
onColCellDoubleClick?: (data: TargetCellInfo) => void;
|
|
@@ -909,6 +936,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
909
936
|
total: number;
|
|
910
937
|
current: number;
|
|
911
938
|
}) => void;
|
|
939
|
+
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
912
940
|
onLayoutCellScroll?: (position: CellScrollPosition) => void;
|
|
913
941
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => void;
|
|
914
942
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
|
|
@@ -955,6 +983,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
955
983
|
key: string;
|
|
956
984
|
record: Data;
|
|
957
985
|
}) => void;
|
|
986
|
+
onScroll?: (position: CellScrollPosition) => void;
|
|
958
987
|
}
|
|
959
988
|
|
|
960
989
|
/**
|
|
@@ -985,7 +1014,7 @@ declare interface BaseTooltipConfig<T = TooltipContentType> {
|
|
|
985
1014
|
renderTooltip?: (spreadsheet: SpreadSheet_2) => BaseTooltip;
|
|
986
1015
|
adjustPosition?: (positionInfo: TooltipPositionInfo) => TooltipPosition;
|
|
987
1016
|
getContainer?: () => HTMLElement;
|
|
988
|
-
className?: string;
|
|
1017
|
+
className?: string | string[];
|
|
989
1018
|
style?: CSS_2.Properties;
|
|
990
1019
|
}
|
|
991
1020
|
|
|
@@ -1006,6 +1035,7 @@ declare interface BulletTheme {
|
|
|
1006
1035
|
}
|
|
1007
1036
|
|
|
1008
1037
|
declare interface BulletValue {
|
|
1038
|
+
type: MiniChartTypes.Bullet;
|
|
1009
1039
|
measure: number | string;
|
|
1010
1040
|
target: number | string;
|
|
1011
1041
|
[key: string]: unknown;
|
|
@@ -1018,6 +1048,11 @@ declare interface CalcTotals {
|
|
|
1018
1048
|
|
|
1019
1049
|
declare type CanvasEventHandler = (event: Event_2) => void;
|
|
1020
1050
|
|
|
1051
|
+
declare interface CellAppendInfo<T = Node_2_2> extends Partial<ResizeInfo_2> {
|
|
1052
|
+
isLinkFieldText?: boolean;
|
|
1053
|
+
cellData?: T;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1021
1056
|
declare enum CellBorderPosition {
|
|
1022
1057
|
TOP = "TOP",
|
|
1023
1058
|
BOTTOM = "BOTTOM",
|
|
@@ -1033,12 +1068,11 @@ declare interface CellCfg {
|
|
|
1033
1068
|
valuesCfg?: {
|
|
1034
1069
|
originalValueField?: string;
|
|
1035
1070
|
widthPercent?: number[];
|
|
1036
|
-
conditions?: {
|
|
1037
|
-
text: Condition;
|
|
1038
|
-
};
|
|
1039
1071
|
};
|
|
1040
1072
|
}
|
|
1041
1073
|
|
|
1074
|
+
declare type CellCustomWidth = number | ((node: Node_2_2) => number);
|
|
1075
|
+
|
|
1042
1076
|
declare interface CellDataParams {
|
|
1043
1077
|
query: DataType_2;
|
|
1044
1078
|
isTotals?: boolean;
|
|
@@ -1057,7 +1091,6 @@ declare interface CellMeta_2 {
|
|
|
1057
1091
|
declare interface CellScrollPosition_2 {
|
|
1058
1092
|
scrollX: number;
|
|
1059
1093
|
scrollY: number;
|
|
1060
|
-
thumbOffset?: number;
|
|
1061
1094
|
}
|
|
1062
1095
|
|
|
1063
1096
|
declare interface CellTheme {
|
|
@@ -1091,8 +1124,8 @@ declare enum CellTypes {
|
|
|
1091
1124
|
|
|
1092
1125
|
declare class ColCell extends HeaderCell {
|
|
1093
1126
|
protected headerConfig: ColHeaderConfig;
|
|
1094
|
-
/**
|
|
1095
|
-
protected
|
|
1127
|
+
/** 文字绘制起始坐标 */
|
|
1128
|
+
protected textPosition: Point;
|
|
1096
1129
|
get cellType(): CellTypes;
|
|
1097
1130
|
protected initCell(): void;
|
|
1098
1131
|
protected drawBackgroundShape(): void;
|
|
@@ -1112,20 +1145,26 @@ declare class ColCell extends HeaderCell {
|
|
|
1112
1145
|
y: number;
|
|
1113
1146
|
};
|
|
1114
1147
|
protected drawVerticalResizeArea(): void;
|
|
1115
|
-
|
|
1148
|
+
protected drawResizeArea(): void;
|
|
1116
1149
|
protected drawHorizontalBorder(): void;
|
|
1117
1150
|
protected drawVerticalBorder(dir: CellBorderPosition): void;
|
|
1118
1151
|
protected drawBorders(): void;
|
|
1119
1152
|
protected hasHiddenColumnCell(): boolean;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1153
|
+
protected getExpandIconTheme(): IconTheme;
|
|
1154
|
+
protected addExpandColumnSplitLine(): void;
|
|
1155
|
+
protected addExpandColumnIconShapes(): void;
|
|
1156
|
+
protected addExpandColumnIcon(): void;
|
|
1157
|
+
protected getExpandColumnIconConfig(): {
|
|
1158
|
+
x: number;
|
|
1159
|
+
y: number;
|
|
1160
|
+
width: number;
|
|
1161
|
+
height: number;
|
|
1162
|
+
};
|
|
1163
|
+
protected isLastColumn(): boolean;
|
|
1126
1164
|
}
|
|
1127
1165
|
|
|
1128
1166
|
declare interface ColCfg {
|
|
1167
|
+
width?: CellCustomWidth;
|
|
1129
1168
|
height?: number;
|
|
1130
1169
|
widthByFieldValue?: Record<string, number>;
|
|
1131
1170
|
heightByField?: Record<string, number>;
|
|
@@ -1171,7 +1210,7 @@ declare type CollapsedRowsType_2 = {
|
|
|
1171
1210
|
* One field can hold a condition
|
|
1172
1211
|
*/
|
|
1173
1212
|
declare interface Condition {
|
|
1174
|
-
field
|
|
1213
|
+
field?: string | RegExp;
|
|
1175
1214
|
mapping: MappingFunction;
|
|
1176
1215
|
}
|
|
1177
1216
|
|
|
@@ -1200,19 +1239,19 @@ declare class CornerCell extends HeaderCell {
|
|
|
1200
1239
|
/**
|
|
1201
1240
|
* 绘制折叠展开的icon
|
|
1202
1241
|
*/
|
|
1203
|
-
|
|
1204
|
-
|
|
1242
|
+
protected drawTreeIcon(): void;
|
|
1243
|
+
protected drawBackgroundShape(): void;
|
|
1205
1244
|
/**
|
|
1206
1245
|
* Render cell horizontalBorder border
|
|
1207
|
-
* @
|
|
1246
|
+
* @protected
|
|
1208
1247
|
*/
|
|
1209
1248
|
protected drawBorderShape(): void;
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1249
|
+
protected isLastRowCornerCell(): boolean;
|
|
1250
|
+
protected getResizeAreaEffect(): ResizeAreaEffect.Field | ResizeAreaEffect.Tree | ResizeAreaEffect.Series;
|
|
1251
|
+
protected drawResizeArea(): void;
|
|
1252
|
+
protected showTreeIcon(): boolean;
|
|
1214
1253
|
protected getIconPosition(): Point;
|
|
1215
|
-
|
|
1254
|
+
protected getTreeIconWidth(): number;
|
|
1216
1255
|
protected getTextStyle(): TextTheme;
|
|
1217
1256
|
protected getMaxTextWidth(): number;
|
|
1218
1257
|
protected getTextPosition(): Point;
|
|
@@ -1316,7 +1355,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1316
1355
|
protected drawConditionIconShapes(): void;
|
|
1317
1356
|
/**
|
|
1318
1357
|
* Draw interval condition shape
|
|
1319
|
-
* @
|
|
1358
|
+
* @protected
|
|
1320
1359
|
*/
|
|
1321
1360
|
protected drawConditionIntervalShape(): void;
|
|
1322
1361
|
getBackgroundColor(): {
|
|
@@ -1335,10 +1374,10 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1335
1374
|
* Draw interactive color
|
|
1336
1375
|
*/
|
|
1337
1376
|
protected drawInteractiveBgShape(): void;
|
|
1338
|
-
|
|
1377
|
+
protected changeRowColSelectState(indexType: ViewMetaIndexType): void;
|
|
1339
1378
|
/**
|
|
1340
1379
|
* Render cell border controlled by verticalBorder & horizontalBorder
|
|
1341
|
-
* @
|
|
1380
|
+
* @protected
|
|
1342
1381
|
*/
|
|
1343
1382
|
protected drawBorderShape(): void;
|
|
1344
1383
|
/**
|
|
@@ -1369,6 +1408,7 @@ declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
|
1369
1408
|
measureText?: TextTheme;
|
|
1370
1409
|
cell?: CellTheme;
|
|
1371
1410
|
icon?: IconTheme;
|
|
1411
|
+
miniChart?: MiniChartTheme;
|
|
1372
1412
|
seriesNumberWidth?: number;
|
|
1373
1413
|
}
|
|
1374
1414
|
|
|
@@ -1390,6 +1430,7 @@ declare interface EmitterType {
|
|
|
1390
1430
|
[S2Event.GLOBAL_RESET]: EventHandler_3;
|
|
1391
1431
|
[S2Event.GLOBAL_HOVER]: CanvasEventHandler;
|
|
1392
1432
|
[S2Event.GLOBAL_SELECTED]: SelectedHandler;
|
|
1433
|
+
[S2Event.GLOBAL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1393
1434
|
/** ================ Sort ================ */
|
|
1394
1435
|
[S2Event.RANGE_SORT]: (info: SortParams_2) => void;
|
|
1395
1436
|
[S2Event.RANGE_SORTED]: SortedHandler | CanvasEventHandler;
|
|
@@ -1410,8 +1451,8 @@ declare interface EmitterType {
|
|
|
1410
1451
|
[S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1411
1452
|
[S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1412
1453
|
[S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
|
|
1413
|
-
[S2Event.
|
|
1414
|
-
[S2Event.
|
|
1454
|
+
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: DataCell_2[]) => void;
|
|
1455
|
+
[S2Event.DATA_CELL_SELECT_MOVE]: (metas: CellMeta_2[]) => void;
|
|
1415
1456
|
/** ================ Row Cell ================ */
|
|
1416
1457
|
[S2Event.ROW_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1417
1458
|
[S2Event.ROW_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1421,6 +1462,7 @@ declare interface EmitterType {
|
|
|
1421
1462
|
[S2Event.ROW_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1422
1463
|
[S2Event.ROW_CELL_MOUSE_UP]: CanvasEventHandler;
|
|
1423
1464
|
[S2Event.ROW_CELL_COLLAPSE_TREE_ROWS]: (data: RowCellCollapseTreeRowsType) => void;
|
|
1465
|
+
[S2Event.ROW_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1424
1466
|
/** ================ Col Cell ================ */
|
|
1425
1467
|
[S2Event.COL_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1426
1468
|
[S2Event.COL_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1456,7 +1498,8 @@ declare interface EmitterType {
|
|
|
1456
1498
|
current: number;
|
|
1457
1499
|
}) => void;
|
|
1458
1500
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1459
|
-
|
|
1501
|
+
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1502
|
+
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1460
1503
|
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1461
1504
|
[S2Event.LAYOUT_COLS_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1462
1505
|
[S2Event.LAYOUT_BEFORE_RENDER]: () => void;
|
|
@@ -1616,10 +1659,10 @@ declare interface GridAnalysisCellTheme {
|
|
|
1616
1659
|
}
|
|
1617
1660
|
|
|
1618
1661
|
declare class GridGroup extends Group {
|
|
1619
|
-
|
|
1662
|
+
protected s2: SpreadSheet_2;
|
|
1620
1663
|
constructor(cfg: any);
|
|
1621
|
-
|
|
1622
|
-
|
|
1664
|
+
protected gridGroup: IGroup;
|
|
1665
|
+
protected gridInfo: GridInfo;
|
|
1623
1666
|
updateGrid: (gridInfo: GridInfo, id?: string) => void;
|
|
1624
1667
|
}
|
|
1625
1668
|
|
|
@@ -1783,10 +1826,11 @@ declare interface InteractionOptions {
|
|
|
1783
1826
|
hoverFocus?: boolean | HoverFocusOptions;
|
|
1784
1827
|
enableCopy?: boolean;
|
|
1785
1828
|
copyWithFormat?: boolean;
|
|
1829
|
+
copyWithHeader?: boolean;
|
|
1786
1830
|
autoResetSheetStyle?: boolean;
|
|
1787
1831
|
hiddenColumnFields?: string[];
|
|
1788
1832
|
scrollSpeedRatio?: ScrollSpeedRatio;
|
|
1789
|
-
resize?: boolean |
|
|
1833
|
+
resize?: boolean | ResizeInteractionOptions;
|
|
1790
1834
|
brushSelection?: boolean;
|
|
1791
1835
|
multiSelection?: boolean;
|
|
1792
1836
|
rangeSelection?: boolean;
|
|
@@ -1892,6 +1936,19 @@ declare interface LayoutResult_2 {
|
|
|
1892
1936
|
*/
|
|
1893
1937
|
declare type LayoutWidthType = 'adaptive' | 'colAdaptive' | 'compact';
|
|
1894
1938
|
|
|
1939
|
+
declare interface LineTheme {
|
|
1940
|
+
point?: {
|
|
1941
|
+
size: number;
|
|
1942
|
+
fill?: string;
|
|
1943
|
+
opacity?: number;
|
|
1944
|
+
};
|
|
1945
|
+
linkLine?: {
|
|
1946
|
+
size: number;
|
|
1947
|
+
fill?: string;
|
|
1948
|
+
opacity?: number;
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1895
1952
|
declare type ListItem = {
|
|
1896
1953
|
name: string;
|
|
1897
1954
|
value: string | number;
|
|
@@ -1915,8 +1972,7 @@ declare type Margin = Padding;
|
|
|
1915
1972
|
*/
|
|
1916
1973
|
declare class MergedCell extends DataCell_2 {
|
|
1917
1974
|
cells: S2CellType[];
|
|
1918
|
-
|
|
1919
|
-
constructor(spreadsheet: SpreadSheet_2, cells: S2CellType[], meta?: ViewMeta_2, isPartiallyVisible?: boolean);
|
|
1975
|
+
constructor(spreadsheet: SpreadSheet_2, cells: S2CellType[], meta?: ViewMeta_2);
|
|
1920
1976
|
handleRestOptions(...[cells]: [S2CellType[]]): void;
|
|
1921
1977
|
get cellType(): CellTypes;
|
|
1922
1978
|
update(): void;
|
|
@@ -1947,6 +2003,21 @@ declare interface Meta {
|
|
|
1947
2003
|
formatter?: Formatter;
|
|
1948
2004
|
}
|
|
1949
2005
|
|
|
2006
|
+
declare type MiniChartData = BaseChartData | BulletValue;
|
|
2007
|
+
|
|
2008
|
+
declare interface MiniChartTheme {
|
|
2009
|
+
line?: LineTheme;
|
|
2010
|
+
bar?: BarTheme;
|
|
2011
|
+
bullet?: BulletTheme;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
/** mini 图类型 */
|
|
2015
|
+
declare enum MiniChartTypes {
|
|
2016
|
+
Line = "line",
|
|
2017
|
+
Bar = "bar",
|
|
2018
|
+
Bullet = "bullet"
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1950
2021
|
declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
1951
2022
|
|
|
1952
2023
|
/** use for gridAnalysisSheet
|
|
@@ -1959,7 +2030,7 @@ declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
|
1959
2030
|
],
|
|
1960
2031
|
}
|
|
1961
2032
|
*/
|
|
1962
|
-
declare interface MultiData<T = SimpleDataItem[][] |
|
|
2033
|
+
declare interface MultiData<T = SimpleDataItem[][] | MiniChartData> {
|
|
1963
2034
|
values: T;
|
|
1964
2035
|
originalValues?: T;
|
|
1965
2036
|
label?: string;
|
|
@@ -2117,6 +2188,12 @@ declare type PanelIndexes = {
|
|
|
2117
2188
|
};
|
|
2118
2189
|
|
|
2119
2190
|
declare class PanelScrollGroup extends GridGroup {
|
|
2191
|
+
protected mergedCellsGroup: IGroup;
|
|
2192
|
+
constructor(cfg: any);
|
|
2193
|
+
protected initMergedCellsGroup(): void;
|
|
2194
|
+
updateMergedCells(): void;
|
|
2195
|
+
addMergeCell(mergeCell: MergedCell): void;
|
|
2196
|
+
update(gridInfo: GridInfo): void;
|
|
2120
2197
|
}
|
|
2121
2198
|
|
|
2122
2199
|
declare interface PartDrillDown {
|
|
@@ -2185,6 +2262,7 @@ id: number;
|
|
|
2185
2262
|
isCollapsed: boolean;
|
|
2186
2263
|
node: Node_2;
|
|
2187
2264
|
}) => void;
|
|
2265
|
+
rowCellScroll: (position: CellScrollPosition) => void;
|
|
2188
2266
|
colCellHover: (data: TargetCellInfo) => void;
|
|
2189
2267
|
colCellClick: (data: TargetCellInfo) => void;
|
|
2190
2268
|
colCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -2276,6 +2354,7 @@ linkFieldJump: (data: {
|
|
|
2276
2354
|
key: string;
|
|
2277
2355
|
record: Data;
|
|
2278
2356
|
}) => void;
|
|
2357
|
+
scroll: (position: CellScrollPosition) => void;
|
|
2279
2358
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
2280
2359
|
sheetType: PropType<SheetType>;
|
|
2281
2360
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -2317,6 +2396,7 @@ id: number;
|
|
|
2317
2396
|
isCollapsed: boolean;
|
|
2318
2397
|
node: Node_2;
|
|
2319
2398
|
}) => any;
|
|
2399
|
+
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
2320
2400
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
2321
2401
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
2322
2402
|
onColCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -2408,6 +2488,7 @@ onLinkFieldJump?: (data: {
|
|
|
2408
2488
|
key: string;
|
|
2409
2489
|
record: Data;
|
|
2410
2490
|
}) => any;
|
|
2491
|
+
onScroll?: (position: CellScrollPosition) => any;
|
|
2411
2492
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<string | Element>) => any;
|
|
2412
2493
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2413
2494
|
}, {
|
|
@@ -2445,18 +2526,11 @@ declare interface RequiredPropOption<T = any> {
|
|
|
2445
2526
|
required: true;
|
|
2446
2527
|
}
|
|
2447
2528
|
|
|
2448
|
-
declare interface ResizeActiveOptions {
|
|
2449
|
-
rowCellVertical?: boolean;
|
|
2450
|
-
cornerCellHorizontal?: boolean;
|
|
2451
|
-
colCellHorizontal?: boolean;
|
|
2452
|
-
colCellVertical?: boolean;
|
|
2453
|
-
rowResizeType?: ResizeType;
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
2529
|
declare interface ResizeArea {
|
|
2457
2530
|
size?: number;
|
|
2458
2531
|
background?: string;
|
|
2459
2532
|
guideLineColor?: string;
|
|
2533
|
+
guideLineDisableColor?: string;
|
|
2460
2534
|
guideLineDash?: number[];
|
|
2461
2535
|
backgroundOpacity?: number;
|
|
2462
2536
|
interactionState?: InteractionState;
|
|
@@ -2493,6 +2567,22 @@ declare interface ResizeInfo_2 {
|
|
|
2493
2567
|
isResizeArea?: boolean;
|
|
2494
2568
|
/** 字段id */
|
|
2495
2569
|
id?: string;
|
|
2570
|
+
/** 当前拖拽热区对应的节点信息 */
|
|
2571
|
+
meta: Node_2_2 | ViewMeta_2;
|
|
2572
|
+
/** 拖拽后的宽度 */
|
|
2573
|
+
resizedWidth?: number;
|
|
2574
|
+
/** 拖拽后的高度 */
|
|
2575
|
+
resizedHeight?: number;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
declare interface ResizeInteractionOptions {
|
|
2579
|
+
rowCellVertical?: boolean;
|
|
2580
|
+
cornerCellHorizontal?: boolean;
|
|
2581
|
+
colCellHorizontal?: boolean;
|
|
2582
|
+
colCellVertical?: boolean;
|
|
2583
|
+
rowResizeType?: ResizeType;
|
|
2584
|
+
disable?: (resizeInfo: ResizeInfo_2) => boolean;
|
|
2585
|
+
visible?: (cell: S2CellType) => boolean;
|
|
2496
2586
|
}
|
|
2497
2587
|
|
|
2498
2588
|
declare interface ResizeParams_2 {
|
|
@@ -2515,6 +2605,7 @@ declare class RootInteraction {
|
|
|
2515
2605
|
constructor(spreadsheet: SpreadSheet_2);
|
|
2516
2606
|
destroy(): void;
|
|
2517
2607
|
reset(): void;
|
|
2608
|
+
private onTriggerInteractionsResetEffect;
|
|
2518
2609
|
setState(interactionStateInfo: InteractionStateInfo): void;
|
|
2519
2610
|
getState(): InteractionStateInfo;
|
|
2520
2611
|
setInteractedCells(cell: S2CellType): void;
|
|
@@ -2563,15 +2654,15 @@ declare class RootInteraction {
|
|
|
2563
2654
|
|
|
2564
2655
|
declare class RowCell extends HeaderCell {
|
|
2565
2656
|
protected headerConfig: RowHeaderConfig;
|
|
2566
|
-
|
|
2657
|
+
protected gm: GM;
|
|
2567
2658
|
get cellType(): CellTypes;
|
|
2568
2659
|
destroy(): void;
|
|
2569
2660
|
protected initCell(): void;
|
|
2570
2661
|
protected drawBackgroundShape(): void;
|
|
2571
2662
|
protected drawInteractiveBgShape(): void;
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2663
|
+
protected showTreeIcon(): boolean;
|
|
2664
|
+
protected showTreeLeafNodeAlignDot(): boolean;
|
|
2665
|
+
protected getParentTreeIconCfg(): any;
|
|
2575
2666
|
protected drawTreeIcon(): void;
|
|
2576
2667
|
protected drawTreeLeafNodeAlignDot(): void;
|
|
2577
2668
|
protected drawTextShape(): void;
|
|
@@ -2588,9 +2679,14 @@ declare class RowCell extends HeaderCell {
|
|
|
2588
2679
|
y: any;
|
|
2589
2680
|
};
|
|
2590
2681
|
protected getMaxTextWidth(): number;
|
|
2591
|
-
|
|
2682
|
+
protected getTextArea(): {
|
|
2683
|
+
x: number;
|
|
2684
|
+
width: number;
|
|
2685
|
+
y: number;
|
|
2686
|
+
height: number;
|
|
2687
|
+
};
|
|
2592
2688
|
protected getTextPosition(): Point;
|
|
2593
|
-
|
|
2689
|
+
protected getIconYPosition(): number;
|
|
2594
2690
|
}
|
|
2595
2691
|
|
|
2596
2692
|
declare type RowCellCollapseTreeRowsType = {
|
|
@@ -2600,7 +2696,7 @@ declare type RowCellCollapseTreeRowsType = {
|
|
|
2600
2696
|
};
|
|
2601
2697
|
|
|
2602
2698
|
declare interface RowCfg {
|
|
2603
|
-
width?:
|
|
2699
|
+
width?: CellCustomWidth;
|
|
2604
2700
|
widthByField?: Record<string, number>;
|
|
2605
2701
|
heightByField?: Record<string, number>;
|
|
2606
2702
|
treeRowsWidth?: number;
|
|
@@ -2686,6 +2782,7 @@ declare enum S2Event {
|
|
|
2686
2782
|
ROW_CELL_MOUSE_UP = "row-cell:mouse-up",
|
|
2687
2783
|
ROW_CELL_MOUSE_MOVE = "row-cell:mouse-move",
|
|
2688
2784
|
ROW_CELL_COLLAPSE_TREE_ROWS = "row-cell:collapsed-tree-rows",
|
|
2785
|
+
ROW_CELL_SCROLL = "row-cell:scroll",
|
|
2689
2786
|
/** ================ Col Cell ================ */
|
|
2690
2787
|
COL_CELL_HOVER = "col-cell:hover",
|
|
2691
2788
|
COL_CELL_CLICK = "col-cell:click",
|
|
@@ -2703,8 +2800,8 @@ declare enum S2Event {
|
|
|
2703
2800
|
DATA_CELL_MOUSE_DOWN = "data-cell:mouse-down",
|
|
2704
2801
|
DATA_CELL_MOUSE_MOVE = "data-cell:mouse-move",
|
|
2705
2802
|
DATA_CELL_TREND_ICON_CLICK = "data-cell:trend-icon-click",
|
|
2706
|
-
|
|
2707
|
-
|
|
2803
|
+
DATA_CELL_BRUSH_SELECTION = "data-cell:brush-selection",
|
|
2804
|
+
DATA_CELL_SELECT_MOVE = "data-cell:select-move",
|
|
2708
2805
|
/** ================ Corner Cell ================ */
|
|
2709
2806
|
CORNER_CELL_HOVER = "corner-cell:hover",
|
|
2710
2807
|
CORNER_CELL_CLICK = "corner-cell:click",
|
|
@@ -2729,6 +2826,7 @@ declare enum S2Event {
|
|
|
2729
2826
|
RANGE_FILTERED = "filter:range-filtered",
|
|
2730
2827
|
/** ================ Table Layout ================ */
|
|
2731
2828
|
LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
|
|
2829
|
+
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
2732
2830
|
LAYOUT_CELL_SCROLL = "layout:cell-scroll",
|
|
2733
2831
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
2734
2832
|
LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
|
|
@@ -2764,7 +2862,8 @@ declare enum S2Event {
|
|
|
2764
2862
|
GLOBAL_SELECTED = "global:selected",
|
|
2765
2863
|
GLOBAL_HOVER = "global:hover",
|
|
2766
2864
|
GLOBAL_RESET = "global:reset",
|
|
2767
|
-
GLOBAL_LINK_FIELD_JUMP = "global:link-field-jump"
|
|
2865
|
+
GLOBAL_LINK_FIELD_JUMP = "global:link-field-jump",
|
|
2866
|
+
GLOBAL_SCROLL = "global:scroll"
|
|
2768
2867
|
}
|
|
2769
2868
|
|
|
2770
2869
|
declare interface S2EventHandler {
|
|
@@ -2798,7 +2897,6 @@ declare interface S2Theme extends CellThemes {
|
|
|
2798
2897
|
resizeArea?: ResizeArea;
|
|
2799
2898
|
scrollBar?: ScrollBarTheme;
|
|
2800
2899
|
splitLine?: SplitLine;
|
|
2801
|
-
bullet?: BulletTheme;
|
|
2802
2900
|
prepareSelectMask?: InteractionStateTheme;
|
|
2803
2901
|
background?: Background;
|
|
2804
2902
|
}
|
|
@@ -2939,7 +3037,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
2939
3037
|
private getTextPadding;
|
|
2940
3038
|
}
|
|
2941
3039
|
|
|
2942
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
3040
|
+
export declare const SheetComponent: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
2943
3041
|
s2Ref: ShallowRef<SheetExpose>;
|
|
2944
3042
|
sheetType: ComputedRef<DefineComponent< {
|
|
2945
3043
|
sheetType: PropType<SheetType>;
|
|
@@ -2987,6 +3085,7 @@ id: number;
|
|
|
2987
3085
|
isCollapsed: boolean;
|
|
2988
3086
|
node: Node_2_2;
|
|
2989
3087
|
}) => void;
|
|
3088
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
2990
3089
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
2991
3090
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
2992
3091
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3078,6 +3177,7 @@ linkFieldJump: (data: {
|
|
|
3078
3177
|
key: string;
|
|
3079
3178
|
record: Data_2;
|
|
3080
3179
|
}) => void;
|
|
3180
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3081
3181
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
3082
3182
|
sheetType: PropType<SheetType>;
|
|
3083
3183
|
dataCfg: PropType<S2DataConfig_2>;
|
|
@@ -3119,6 +3219,7 @@ id: number;
|
|
|
3119
3219
|
isCollapsed: boolean;
|
|
3120
3220
|
node: Node_2_2;
|
|
3121
3221
|
}) => any;
|
|
3222
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3122
3223
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3123
3224
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3124
3225
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3210,6 +3311,7 @@ onLinkFieldJump?: (data: {
|
|
|
3210
3311
|
key: string;
|
|
3211
3312
|
record: Data_2;
|
|
3212
3313
|
}) => any;
|
|
3314
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3213
3315
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3214
3316
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3215
3317
|
}, {
|
|
@@ -3224,7 +3326,7 @@ showPagination: boolean | {
|
|
|
3224
3326
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3225
3327
|
onChange?: (current: number) => void;
|
|
3226
3328
|
};
|
|
3227
|
-
}> | DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
3329
|
+
}> | DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
3228
3330
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3229
3331
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3230
3332
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => SpreadSheet_2;
|
|
@@ -3242,6 +3344,7 @@ id: number;
|
|
|
3242
3344
|
isCollapsed: boolean;
|
|
3243
3345
|
node: Node_2_2;
|
|
3244
3346
|
}) => void;
|
|
3347
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3245
3348
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3246
3349
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3247
3350
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3333,7 +3436,8 @@ linkFieldJump: (data: {
|
|
|
3333
3436
|
key: string;
|
|
3334
3437
|
record: Data_2;
|
|
3335
3438
|
}) => void;
|
|
3336
|
-
|
|
3439
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3440
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
3337
3441
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3338
3442
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3339
3443
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3347,6 +3451,7 @@ id: number;
|
|
|
3347
3451
|
isCollapsed: boolean;
|
|
3348
3452
|
node: Node_2_2;
|
|
3349
3453
|
}) => any;
|
|
3454
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3350
3455
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3351
3456
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3352
3457
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3438,6 +3543,7 @@ onLinkFieldJump?: (data: {
|
|
|
3438
3543
|
key: string;
|
|
3439
3544
|
record: Data_2;
|
|
3440
3545
|
}) => any;
|
|
3546
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3441
3547
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3442
3548
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3443
3549
|
}, {}>>;
|
|
@@ -3457,6 +3563,7 @@ id: number;
|
|
|
3457
3563
|
isCollapsed: boolean;
|
|
3458
3564
|
node: Node_2_2;
|
|
3459
3565
|
}) => void;
|
|
3566
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3460
3567
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3461
3568
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3462
3569
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3548,7 +3655,8 @@ linkFieldJump: (data: {
|
|
|
3548
3655
|
key: string;
|
|
3549
3656
|
record: Data_2;
|
|
3550
3657
|
}) => void;
|
|
3551
|
-
|
|
3658
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3659
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
3552
3660
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3553
3661
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3554
3662
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3562,6 +3670,7 @@ id: number;
|
|
|
3562
3670
|
isCollapsed: boolean;
|
|
3563
3671
|
node: Node_2_2;
|
|
3564
3672
|
}) => any;
|
|
3673
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3565
3674
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3566
3675
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3567
3676
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3653,6 +3762,7 @@ onLinkFieldJump?: (data: {
|
|
|
3653
3762
|
key: string;
|
|
3654
3763
|
record: Data_2;
|
|
3655
3764
|
}) => any;
|
|
3765
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3656
3766
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3657
3767
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3658
3768
|
}, {}>;
|
|
@@ -3804,13 +3914,8 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
3804
3914
|
setOptions(options: Partial<S2Options_2>): void;
|
|
3805
3915
|
render(reloadData?: boolean, options?: S2RenderOptions_2): void;
|
|
3806
3916
|
destroy(): void;
|
|
3807
|
-
/**
|
|
3808
|
-
* Update theme config, if the {@param type} is exists, re-use it,
|
|
3809
|
-
* otherwise create new one {@see theme}
|
|
3810
|
-
* @param type string
|
|
3811
|
-
* @param theme
|
|
3812
|
-
*/
|
|
3813
3917
|
setThemeCfg(themeCfg?: ThemeCfg_2): void;
|
|
3918
|
+
setTheme(theme: S2Theme): void;
|
|
3814
3919
|
/**
|
|
3815
3920
|
* Update pagination config which store in {@see options}
|
|
3816
3921
|
* @param pagination
|
|
@@ -3946,7 +4051,7 @@ declare interface Style {
|
|
|
3946
4051
|
device?: 'pc' | 'mobile';
|
|
3947
4052
|
}
|
|
3948
4053
|
|
|
3949
|
-
export declare const TableSheet: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
4054
|
+
export declare const TableSheet: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
3950
4055
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3951
4056
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3952
4057
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => SpreadSheet_2;
|
|
@@ -3964,6 +4069,7 @@ id: number;
|
|
|
3964
4069
|
isCollapsed: boolean;
|
|
3965
4070
|
node: Node_2_2;
|
|
3966
4071
|
}) => void;
|
|
4072
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3967
4073
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3968
4074
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3969
4075
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4055,7 +4161,8 @@ linkFieldJump: (data: {
|
|
|
4055
4161
|
key: string;
|
|
4056
4162
|
record: Data_2;
|
|
4057
4163
|
}) => void;
|
|
4058
|
-
|
|
4164
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
4165
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
4059
4166
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4060
4167
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
4061
4168
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4069,6 +4176,7 @@ id: number;
|
|
|
4069
4176
|
isCollapsed: boolean;
|
|
4070
4177
|
node: Node_2_2;
|
|
4071
4178
|
}) => any;
|
|
4179
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4072
4180
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
4073
4181
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
4074
4182
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4160,6 +4268,7 @@ onLinkFieldJump?: (data: {
|
|
|
4160
4268
|
key: string;
|
|
4161
4269
|
record: Data_2;
|
|
4162
4270
|
}) => any;
|
|
4271
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4163
4272
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
4164
4273
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4165
4274
|
}, {}>;
|
|
@@ -4217,6 +4326,7 @@ declare type TooltipData = {
|
|
|
4217
4326
|
interpretation?: TooltipInterpretationOptions;
|
|
4218
4327
|
colIndex?: number;
|
|
4219
4328
|
rowIndex?: number;
|
|
4329
|
+
description?: string;
|
|
4220
4330
|
};
|
|
4221
4331
|
|
|
4222
4332
|
declare type TooltipDataItem = Record<string, any>;
|
|
@@ -4363,4 +4473,6 @@ declare interface ViewMeta_2 {
|
|
|
4363
4473
|
[key: string]: unknown;
|
|
4364
4474
|
}
|
|
4365
4475
|
|
|
4476
|
+
declare type ViewMetaIndexType = keyof Pick<ViewMeta_2, 'colIndex' | 'rowIndex'>;
|
|
4477
|
+
|
|
4366
4478
|
export { }
|