@antv/s2-vue 1.4.0 → 1.5.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 +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +172 -53
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/esm/index.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ declare enum Aggregation {
|
|
|
68
68
|
AVG = "AVG"
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
declare interface AreaRange {
|
|
72
|
+
start: number;
|
|
73
|
+
width: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
declare interface Background {
|
|
72
77
|
opacity?: number;
|
|
73
78
|
color?: string;
|
|
@@ -105,12 +110,14 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
105
110
|
protected theme: S2Theme;
|
|
106
111
|
protected backgroundShape: IShape;
|
|
107
112
|
protected textShape: IShape;
|
|
113
|
+
protected textShapes: IShape[];
|
|
108
114
|
protected linkFieldShape: IShape;
|
|
109
115
|
protected actualText: string;
|
|
110
116
|
protected actualTextWidth: number;
|
|
111
117
|
protected conditions: Conditions;
|
|
112
118
|
protected conditionIntervalShape: IShape;
|
|
113
119
|
protected conditionIconShape: GuiIcon;
|
|
120
|
+
protected conditionIconShapes: GuiIcon[];
|
|
114
121
|
protected stateShapes: Map<StateShapeLayer, IShape>;
|
|
115
122
|
constructor(meta: T, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]);
|
|
116
123
|
getMeta(): T;
|
|
@@ -182,6 +189,12 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
182
189
|
hideInteractionShape(): void;
|
|
183
190
|
clearUnselectedState(): void;
|
|
184
191
|
getTextShape(): IShape;
|
|
192
|
+
getTextShapes(): IShape[];
|
|
193
|
+
addTextShape(textShape: IShape): void;
|
|
194
|
+
getConditionIconShape(): GuiIcon;
|
|
195
|
+
getConditionIconShapes(): GuiIcon[];
|
|
196
|
+
addConditionIconShape(iconShape: GuiIcon): void;
|
|
197
|
+
resetTextAndConditionIconShapes(): void;
|
|
185
198
|
get cellConditions(): Conditions;
|
|
186
199
|
drawConditionIconShapes(): void;
|
|
187
200
|
getTextConditionFill(textStyle: TextTheme): string;
|
|
@@ -389,9 +402,9 @@ declare abstract class BaseFacet {
|
|
|
389
402
|
scrollImmediately: (offsetConfig?: OffsetConfig) => void;
|
|
390
403
|
/**
|
|
391
404
|
*
|
|
392
|
-
* @param
|
|
405
|
+
* @param skipScrollEvent 如为true则不触发S2Event.GLOBAL_SCROLL
|
|
393
406
|
*/
|
|
394
|
-
startScroll: (
|
|
407
|
+
startScroll: (skipScrollEvent?: boolean) => void;
|
|
395
408
|
getRendererHeight: () => number;
|
|
396
409
|
private getAdjustedScrollOffset;
|
|
397
410
|
renderRowScrollBar: (rowScrollX: number) => void;
|
|
@@ -474,14 +487,15 @@ declare abstract class BaseFacet {
|
|
|
474
487
|
updatePanelScrollGroup(): void;
|
|
475
488
|
/**
|
|
476
489
|
*
|
|
477
|
-
* @param
|
|
490
|
+
* @param skipScrollEvent: 如true则不触发GLOBAL_SCROLL事件
|
|
478
491
|
* During scroll behavior, first call to this method fires immediately and then on interval.
|
|
479
492
|
* @protected
|
|
480
493
|
*/
|
|
481
|
-
protected dynamicRenderCell(
|
|
494
|
+
protected dynamicRenderCell(skipScrollEvent?: boolean): void;
|
|
482
495
|
private emitScrollEvent;
|
|
483
496
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
484
497
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
498
|
+
getHiddenColumnsInfo(columnNode: Node_2_2): HiddenColumnsInfo_2 | null;
|
|
485
499
|
}
|
|
486
500
|
|
|
487
501
|
/**
|
|
@@ -620,7 +634,7 @@ showSizeChange: (nextPageSize: number) => void;
|
|
|
620
634
|
handlePageChange: (nextCurrent: number) => void;
|
|
621
635
|
handlePageSizeChange: (nextSize: number) => void;
|
|
622
636
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
623
|
-
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet;
|
|
637
|
+
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
|
|
624
638
|
getSpreadSheet: (spreadsheet: SpreadSheet) => void;
|
|
625
639
|
sheetUpdate: SheetUpdateCallback;
|
|
626
640
|
rowCellHover: (data: TargetCellInfo) => void;
|
|
@@ -734,6 +748,11 @@ key: string;
|
|
|
734
748
|
record: Data;
|
|
735
749
|
}) => void;
|
|
736
750
|
scroll: (position: CellScrollPosition) => void;
|
|
751
|
+
layoutAfterRealDataCellRender: (options: {
|
|
752
|
+
add: [number, number][];
|
|
753
|
+
remove: [number, number][];
|
|
754
|
+
spreadsheet: SpreadSheet;
|
|
755
|
+
}) => void;
|
|
737
756
|
rowCellBrushSelection: (event: default_2) => void;
|
|
738
757
|
colCellBrushSelection: (event: default_2) => void;
|
|
739
758
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
@@ -877,9 +896,14 @@ key: string;
|
|
|
877
896
|
record: Data;
|
|
878
897
|
}) => any;
|
|
879
898
|
onScroll?: (position: CellScrollPosition) => any;
|
|
899
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
900
|
+
add: [number, number][];
|
|
901
|
+
remove: [number, number][];
|
|
902
|
+
spreadsheet: SpreadSheet;
|
|
903
|
+
}) => any;
|
|
880
904
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
881
905
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
882
|
-
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
906
|
+
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
883
907
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
884
908
|
}, {
|
|
885
909
|
options: SheetComponentOptions;
|
|
@@ -1025,6 +1049,11 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
1025
1049
|
record: Data;
|
|
1026
1050
|
}) => void;
|
|
1027
1051
|
onScroll?: (position: CellScrollPosition) => void;
|
|
1052
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
1053
|
+
add: [number, number][];
|
|
1054
|
+
remove: [number, number][];
|
|
1055
|
+
spreadsheet: SpreadSheet;
|
|
1056
|
+
}) => void;
|
|
1028
1057
|
onRowCellBrushSelection?: (event: GEvent) => void;
|
|
1029
1058
|
onColCellBrushSelection?: (event: GEvent) => void;
|
|
1030
1059
|
}
|
|
@@ -1049,10 +1078,10 @@ declare class BaseTooltip_2 {
|
|
|
1049
1078
|
private getContainer;
|
|
1050
1079
|
}
|
|
1051
1080
|
|
|
1052
|
-
declare interface BaseTooltipConfig<T = TooltipContentType_2> {
|
|
1081
|
+
declare interface BaseTooltipConfig<T = TooltipContentType_2, Icon = Element | string, Text = string> {
|
|
1053
1082
|
showTooltip?: boolean;
|
|
1054
1083
|
content?: TooltipShowOptions<T>['content'];
|
|
1055
|
-
operation?: TooltipOperation
|
|
1084
|
+
operation?: TooltipOperation<Icon, Text>;
|
|
1056
1085
|
autoAdjustBoundary?: TooltipAutoAdjustBoundary;
|
|
1057
1086
|
renderTooltip?: (spreadsheet: SpreadSheet_2) => BaseTooltip_2;
|
|
1058
1087
|
adjustPosition?: (positionInfo: TooltipPositionInfo) => TooltipPosition;
|
|
@@ -1223,6 +1252,12 @@ declare class ColCell extends HeaderCell {
|
|
|
1223
1252
|
height: number;
|
|
1224
1253
|
};
|
|
1225
1254
|
protected isLastColumn(): boolean;
|
|
1255
|
+
/**
|
|
1256
|
+
* 计算文本位置时候需要,留给后代根据情况(固定列)覆盖
|
|
1257
|
+
* @param viewport
|
|
1258
|
+
* @returns viewport
|
|
1259
|
+
*/
|
|
1260
|
+
protected handleViewport(viewport: AreaRange): AreaRange;
|
|
1226
1261
|
}
|
|
1227
1262
|
|
|
1228
1263
|
declare interface ColCfg {
|
|
@@ -1268,6 +1303,13 @@ declare type CollapsedRowsType_2 = {
|
|
|
1268
1303
|
meta?: Node_2_2;
|
|
1269
1304
|
};
|
|
1270
1305
|
|
|
1306
|
+
declare interface ColumnNode {
|
|
1307
|
+
key: string;
|
|
1308
|
+
children?: Columns;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
declare type Columns = Array<ColumnNode | string>;
|
|
1312
|
+
|
|
1271
1313
|
/**
|
|
1272
1314
|
* One field can hold a condition
|
|
1273
1315
|
*/
|
|
@@ -1292,13 +1334,16 @@ declare class CornerBBox extends BaseBBox {
|
|
|
1292
1334
|
|
|
1293
1335
|
declare class CornerCell extends HeaderCell {
|
|
1294
1336
|
protected headerConfig: CornerHeaderConfig;
|
|
1295
|
-
protected textShapes: IShape[];
|
|
1296
1337
|
protected isBolderText(): boolean;
|
|
1297
1338
|
cornerType: CornerNodeType;
|
|
1298
1339
|
get cellType(): CellTypes;
|
|
1299
1340
|
update(): void;
|
|
1300
1341
|
protected initCell(): void;
|
|
1342
|
+
/**
|
|
1343
|
+
* @deprecated 已废弃, 请使用 drawTextShape
|
|
1344
|
+
*/
|
|
1301
1345
|
protected drawCellText(): void;
|
|
1346
|
+
protected drawTextShape(): void;
|
|
1302
1347
|
/**
|
|
1303
1348
|
* 绘制折叠展开的icon
|
|
1304
1349
|
*/
|
|
@@ -1465,6 +1510,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1465
1510
|
mappingValue(condition: Condition): MappingResult;
|
|
1466
1511
|
updateByState(stateName: InteractionStateName): void;
|
|
1467
1512
|
clearUnselectedState(): void;
|
|
1513
|
+
private toggleConditionIntervalShapeOpacity;
|
|
1468
1514
|
protected drawLeftBorder(): void;
|
|
1469
1515
|
}
|
|
1470
1516
|
|
|
@@ -1514,6 +1560,7 @@ declare interface EmitterType {
|
|
|
1514
1560
|
/** ================ Cell ================ */
|
|
1515
1561
|
[S2Event.GLOBAL_LINK_FIELD_JUMP]: (data: {
|
|
1516
1562
|
key: string;
|
|
1563
|
+
cellData: Node_2_2;
|
|
1517
1564
|
record: Data_2;
|
|
1518
1565
|
}) => void;
|
|
1519
1566
|
/** ================ Date Cell ================ */
|
|
@@ -1574,6 +1621,11 @@ declare interface EmitterType {
|
|
|
1574
1621
|
current: number;
|
|
1575
1622
|
}) => void;
|
|
1576
1623
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1624
|
+
[S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER]: (options: {
|
|
1625
|
+
add: [number, number][];
|
|
1626
|
+
remove: [number, number][];
|
|
1627
|
+
spreadsheet: SpreadSheet_2;
|
|
1628
|
+
}) => void;
|
|
1577
1629
|
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1578
1630
|
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1579
1631
|
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
@@ -1655,7 +1707,7 @@ declare interface EventListenerReturn {
|
|
|
1655
1707
|
declare interface Fields {
|
|
1656
1708
|
rows?: string[];
|
|
1657
1709
|
customTreeItems?: CustomTreeItem[];
|
|
1658
|
-
columns?:
|
|
1710
|
+
columns?: Columns;
|
|
1659
1711
|
values?: string[];
|
|
1660
1712
|
valueInCols?: boolean;
|
|
1661
1713
|
customValueOrder?: number;
|
|
@@ -2240,6 +2292,7 @@ declare class Node_2_2 {
|
|
|
2240
2292
|
[key: string]: any;
|
|
2241
2293
|
static rootNode(): Node_2_2;
|
|
2242
2294
|
toJSON(): Omit_2<this, "spreadsheet" | "config" | "parent" | "hierarchy">;
|
|
2295
|
+
getHeadLeafChild(): Node_2_2;
|
|
2243
2296
|
}
|
|
2244
2297
|
|
|
2245
2298
|
declare interface OffsetConfig {
|
|
@@ -2365,9 +2418,9 @@ onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
|
2365
2418
|
onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
|
|
2366
2419
|
}, {
|
|
2367
2420
|
s2Ref: ShallowRef<SheetExpose>;
|
|
2368
|
-
options: S2Options<TooltipContentType, Pagination>;
|
|
2421
|
+
options: S2Options<TooltipContentType, Pagination, string | Element, string>;
|
|
2369
2422
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2370
|
-
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => SpreadSheet;
|
|
2423
|
+
spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
|
|
2371
2424
|
getSpreadSheet: (spreadsheet: SpreadSheet) => void;
|
|
2372
2425
|
sheetUpdate: SheetUpdateCallback;
|
|
2373
2426
|
rowCellHover: (data: TargetCellInfo) => void;
|
|
@@ -2481,6 +2534,11 @@ key: string;
|
|
|
2481
2534
|
record: Data;
|
|
2482
2535
|
}) => void;
|
|
2483
2536
|
scroll: (position: CellScrollPosition) => void;
|
|
2537
|
+
layoutAfterRealDataCellRender: (options: {
|
|
2538
|
+
add: [number, number][];
|
|
2539
|
+
remove: [number, number][];
|
|
2540
|
+
spreadsheet: SpreadSheet;
|
|
2541
|
+
}) => void;
|
|
2484
2542
|
rowCellBrushSelection: (event: default_2) => void;
|
|
2485
2543
|
colCellBrushSelection: (event: default_2) => void;
|
|
2486
2544
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
@@ -2624,9 +2682,14 @@ key: string;
|
|
|
2624
2682
|
record: Data;
|
|
2625
2683
|
}) => any;
|
|
2626
2684
|
onScroll?: (position: CellScrollPosition) => any;
|
|
2685
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
2686
|
+
add: [number, number][];
|
|
2687
|
+
remove: [number, number][];
|
|
2688
|
+
spreadsheet: SpreadSheet;
|
|
2689
|
+
}) => any;
|
|
2627
2690
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
2628
2691
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
2629
|
-
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination>) => any;
|
|
2692
|
+
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
2630
2693
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2631
2694
|
}, {
|
|
2632
2695
|
options: SheetComponentOptions;
|
|
@@ -2863,14 +2926,14 @@ declare interface RowHeaderConfig extends BaseHeaderConfig {
|
|
|
2863
2926
|
seriesNumberWidth: number;
|
|
2864
2927
|
}
|
|
2865
2928
|
|
|
2866
|
-
declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2> {
|
|
2929
|
+
declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> {
|
|
2867
2930
|
width?: number;
|
|
2868
2931
|
height?: number;
|
|
2869
2932
|
debug?: boolean;
|
|
2870
2933
|
hierarchyType?: 'grid' | 'tree' | 'customTree';
|
|
2871
2934
|
conditions?: Conditions;
|
|
2872
2935
|
totals?: Totals;
|
|
2873
|
-
tooltip?: Tooltip<T>;
|
|
2936
|
+
tooltip?: Tooltip<T, Icon, Text>;
|
|
2874
2937
|
interaction?: InteractionOptions;
|
|
2875
2938
|
pagination?: P;
|
|
2876
2939
|
frozenRowHeader?: boolean;
|
|
@@ -2976,6 +3039,7 @@ declare enum S2Event {
|
|
|
2976
3039
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
2977
3040
|
LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
|
|
2978
3041
|
LAYOUT_AFTER_COLLAPSE_ROWS = "layout:after-collapsed-rows",
|
|
3042
|
+
LAYOUT_AFTER_REAL_DATA_CELL_RENDER = "layout:after-real-data-cell-render",
|
|
2979
3043
|
LAYOUT_TREE_ROWS_COLLAPSE_ALL = "layout:toggle-collapse-all",
|
|
2980
3044
|
LAYOUT_COLS_EXPANDED = "layout:table-col-expanded",
|
|
2981
3045
|
LAYOUT_COLS_HIDDEN = "layout:table-col-hidden",
|
|
@@ -3019,7 +3083,7 @@ declare interface S2EventHandler {
|
|
|
3019
3083
|
|
|
3020
3084
|
declare type S2MountContainer_2 = string | Element;
|
|
3021
3085
|
|
|
3022
|
-
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2> extends S2BasicOptions<T, P>, S2TableSheetOptions, S2PivotSheetOptions {
|
|
3086
|
+
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>, S2TableSheetOptions, S2PivotSheetOptions {
|
|
3023
3087
|
dataSet?: (spreadsheet: SpreadSheet_2) => BaseDataSet_2;
|
|
3024
3088
|
}
|
|
3025
3089
|
|
|
@@ -3052,7 +3116,6 @@ declare class ScrollBar extends Group {
|
|
|
3052
3116
|
trackLen: number;
|
|
3053
3117
|
thumbLen: number;
|
|
3054
3118
|
position: PointObject;
|
|
3055
|
-
minThumbLen: number;
|
|
3056
3119
|
thumbOffset: number;
|
|
3057
3120
|
scrollTargetMaxOffset: number;
|
|
3058
3121
|
theme: ScrollBarTheme;
|
|
@@ -3113,7 +3176,6 @@ declare interface ScrollBarCfg {
|
|
|
3113
3176
|
readonly trackLen: number;
|
|
3114
3177
|
readonly thumbLen: number;
|
|
3115
3178
|
readonly position: PointObject;
|
|
3116
|
-
readonly minThumbLen?: number;
|
|
3117
3179
|
readonly thumbOffset?: number;
|
|
3118
3180
|
readonly scrollTargetMaxOffset: number;
|
|
3119
3181
|
readonly theme?: ScrollBarTheme;
|
|
@@ -3128,6 +3190,8 @@ declare interface ScrollBarTheme {
|
|
|
3128
3190
|
trackColor?: string;
|
|
3129
3191
|
thumbHoverColor?: string;
|
|
3130
3192
|
thumbColor?: string;
|
|
3193
|
+
thumbHorizontalMinSize?: number;
|
|
3194
|
+
thumbVerticalMinSize?: number;
|
|
3131
3195
|
size?: number;
|
|
3132
3196
|
hoverSize?: number;
|
|
3133
3197
|
/** 指定如何绘制每一条线段末端,lineCap?: 'butt' | 'round' | 'square'; */
|
|
@@ -3175,7 +3239,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3175
3239
|
private getTextPadding;
|
|
3176
3240
|
}
|
|
3177
3241
|
|
|
3178
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3242
|
+
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3179
3243
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3180
3244
|
sheetType: ComputedRef<DefineComponent< {
|
|
3181
3245
|
sheetType: PropType<SheetType>;
|
|
@@ -3207,9 +3271,9 @@ onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
|
3207
3271
|
onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
|
|
3208
3272
|
}, {
|
|
3209
3273
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3210
|
-
options: S2Options_2<TooltipContentType_2, Pagination_2>;
|
|
3274
|
+
options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
|
|
3211
3275
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3212
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3276
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3213
3277
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3214
3278
|
sheetUpdate: SheetUpdateCallback;
|
|
3215
3279
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3323,6 +3387,11 @@ key: string;
|
|
|
3323
3387
|
record: Data_2;
|
|
3324
3388
|
}) => void;
|
|
3325
3389
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3390
|
+
layoutAfterRealDataCellRender: (options: {
|
|
3391
|
+
add: [number, number][];
|
|
3392
|
+
remove: [number, number][];
|
|
3393
|
+
spreadsheet: SpreadSheet_2;
|
|
3394
|
+
}) => void;
|
|
3326
3395
|
rowCellBrushSelection: (event: default_2) => void;
|
|
3327
3396
|
colCellBrushSelection: (event: default_2) => void;
|
|
3328
3397
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
@@ -3466,9 +3535,14 @@ key: string;
|
|
|
3466
3535
|
record: Data_2;
|
|
3467
3536
|
}) => any;
|
|
3468
3537
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3538
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
3539
|
+
add: [number, number][];
|
|
3540
|
+
remove: [number, number][];
|
|
3541
|
+
spreadsheet: SpreadSheet_2;
|
|
3542
|
+
}) => any;
|
|
3469
3543
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
3470
3544
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
3471
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3545
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3472
3546
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3473
3547
|
}, {
|
|
3474
3548
|
options: SheetComponentOptions;
|
|
@@ -3482,10 +3556,10 @@ showPagination: boolean | {
|
|
|
3482
3556
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3483
3557
|
onChange?: (current: number) => void;
|
|
3484
3558
|
};
|
|
3485
|
-
}> | DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3559
|
+
}> | DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
3486
3560
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3487
3561
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3488
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3562
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3489
3563
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3490
3564
|
sheetUpdate: SheetUpdateCallback;
|
|
3491
3565
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3599,9 +3673,14 @@ key: string;
|
|
|
3599
3673
|
record: Data_2;
|
|
3600
3674
|
}) => void;
|
|
3601
3675
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3676
|
+
layoutAfterRealDataCellRender: (options: {
|
|
3677
|
+
add: [number, number][];
|
|
3678
|
+
remove: [number, number][];
|
|
3679
|
+
spreadsheet: SpreadSheet_2;
|
|
3680
|
+
}) => void;
|
|
3602
3681
|
rowCellBrushSelection: (event: default_2) => void;
|
|
3603
3682
|
colCellBrushSelection: (event: default_2) => void;
|
|
3604
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3683
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3605
3684
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3606
3685
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3607
3686
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3714,13 +3793,18 @@ key: string;
|
|
|
3714
3793
|
record: Data_2;
|
|
3715
3794
|
}) => any;
|
|
3716
3795
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3796
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
3797
|
+
add: [number, number][];
|
|
3798
|
+
remove: [number, number][];
|
|
3799
|
+
spreadsheet: SpreadSheet_2;
|
|
3800
|
+
}) => any;
|
|
3717
3801
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
3718
3802
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
3719
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
3803
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3720
3804
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3721
3805
|
}, {}>>;
|
|
3722
3806
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3723
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
3807
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
3724
3808
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
3725
3809
|
sheetUpdate: SheetUpdateCallback;
|
|
3726
3810
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3834,9 +3918,14 @@ key: string;
|
|
|
3834
3918
|
record: Data_2;
|
|
3835
3919
|
}) => void;
|
|
3836
3920
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3921
|
+
layoutAfterRealDataCellRender: (options: {
|
|
3922
|
+
add: [number, number][];
|
|
3923
|
+
remove: [number, number][];
|
|
3924
|
+
spreadsheet: SpreadSheet_2;
|
|
3925
|
+
}) => void;
|
|
3837
3926
|
rowCellBrushSelection: (event: default_2) => void;
|
|
3838
3927
|
colCellBrushSelection: (event: default_2) => void;
|
|
3839
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3928
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
3840
3929
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
3841
3930
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3842
3931
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3949,9 +4038,14 @@ key: string;
|
|
|
3949
4038
|
record: Data_2;
|
|
3950
4039
|
}) => any;
|
|
3951
4040
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4041
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
4042
|
+
add: [number, number][];
|
|
4043
|
+
remove: [number, number][];
|
|
4044
|
+
spreadsheet: SpreadSheet_2;
|
|
4045
|
+
}) => any;
|
|
3952
4046
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
3953
4047
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
3954
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4048
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3955
4049
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3956
4050
|
}, {}>;
|
|
3957
4051
|
|
|
@@ -4101,9 +4195,10 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4101
4195
|
* Group sort params kept in {@see store} and
|
|
4102
4196
|
* Priority: group sort > advanced sort
|
|
4103
4197
|
* @param dataCfg
|
|
4198
|
+
* @param reset reset: true, 直接使用用户传入的 DataCfg ,不再与上次数据进行合并
|
|
4104
4199
|
*/
|
|
4105
|
-
setDataCfg(dataCfg: S2DataConfig_2): void;
|
|
4106
|
-
setOptions(options: Partial<S2Options_2
|
|
4200
|
+
setDataCfg(dataCfg: S2DataConfig_2, reset?: boolean): void;
|
|
4201
|
+
setOptions(options: Partial<S2Options_2>, reset?: boolean): void;
|
|
4107
4202
|
render(reloadData?: boolean, options?: S2RenderOptions_2): void;
|
|
4108
4203
|
destroy(): void;
|
|
4109
4204
|
setThemeCfg(themeCfg?: ThemeCfg_2): void;
|
|
@@ -4174,13 +4269,27 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4174
4269
|
clearColumnLeafNodes(): void;
|
|
4175
4270
|
private initHiddenColumnsDetail;
|
|
4176
4271
|
private clearCanvasEvent;
|
|
4272
|
+
/**
|
|
4273
|
+
* 获取文本在画布中的测量信息
|
|
4274
|
+
* @param text 待计算的文本
|
|
4275
|
+
* @param font 文本 css 样式
|
|
4276
|
+
* @returns 文本测量信息 TextMetrics
|
|
4277
|
+
*/
|
|
4278
|
+
measureText: ((text: number | string, font: unknown) => TextMetrics) & MemoizedFunction;
|
|
4177
4279
|
/**
|
|
4178
4280
|
* 计算文本在画布中的宽度
|
|
4179
4281
|
* @param text 待计算的文本
|
|
4180
4282
|
* @param font 文本 css 样式
|
|
4181
4283
|
* @returns 文本宽度
|
|
4182
4284
|
*/
|
|
4183
|
-
measureTextWidth: (
|
|
4285
|
+
measureTextWidth: (text: number | string, font: unknown) => number;
|
|
4286
|
+
/**
|
|
4287
|
+
* 计算文本在画布中的宽度 https://developer.mozilla.org/zh-CN/docs/Web/API/TextMetrics
|
|
4288
|
+
* @param text 待计算的文本
|
|
4289
|
+
* @param font 文本 css 样式
|
|
4290
|
+
* @returns 文本高度
|
|
4291
|
+
*/
|
|
4292
|
+
measureTextHeight: (text: number | string, font: unknown) => number;
|
|
4184
4293
|
/**
|
|
4185
4294
|
* 粗略计算文本在画布中的宽度
|
|
4186
4295
|
* @param text 待计算的文本
|
|
@@ -4261,10 +4370,10 @@ declare interface Style {
|
|
|
4261
4370
|
device?: 'pc' | 'mobile';
|
|
4262
4371
|
}
|
|
4263
4372
|
|
|
4264
|
-
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
4373
|
+
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
|
|
4265
4374
|
s2Ref: ShallowRef<SheetExpose>;
|
|
4266
4375
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4267
|
-
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => SpreadSheet_2;
|
|
4376
|
+
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
4268
4377
|
getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
|
|
4269
4378
|
sheetUpdate: SheetUpdateCallback;
|
|
4270
4379
|
rowCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -4378,9 +4487,14 @@ key: string;
|
|
|
4378
4487
|
record: Data_2;
|
|
4379
4488
|
}) => void;
|
|
4380
4489
|
scroll: (position: CellScrollPosition_2) => void;
|
|
4490
|
+
layoutAfterRealDataCellRender: (options: {
|
|
4491
|
+
add: [number, number][];
|
|
4492
|
+
remove: [number, number][];
|
|
4493
|
+
spreadsheet: SpreadSheet_2;
|
|
4494
|
+
}) => void;
|
|
4381
4495
|
rowCellBrushSelection: (event: default_2) => void;
|
|
4382
4496
|
colCellBrushSelection: (event: default_2) => void;
|
|
4383
|
-
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
4497
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "onMounted" | "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" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
|
|
4384
4498
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
4385
4499
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4386
4500
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -4493,9 +4607,14 @@ key: string;
|
|
|
4493
4607
|
record: Data_2;
|
|
4494
4608
|
}) => any;
|
|
4495
4609
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4610
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
4611
|
+
add: [number, number][];
|
|
4612
|
+
remove: [number, number][];
|
|
4613
|
+
spreadsheet: SpreadSheet_2;
|
|
4614
|
+
}) => any;
|
|
4496
4615
|
onRowCellBrushSelection?: (event: default_2) => any;
|
|
4497
4616
|
onColCellBrushSelection?: (event: default_2) => any;
|
|
4498
|
-
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2>) => any;
|
|
4617
|
+
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
4499
4618
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4500
4619
|
}, {}>;
|
|
4501
4620
|
|
|
@@ -4531,11 +4650,11 @@ declare interface ThemeCfg_2 {
|
|
|
4531
4650
|
|
|
4532
4651
|
declare type ThemeName = 'default' | 'colorful' | 'gray';
|
|
4533
4652
|
|
|
4534
|
-
declare interface Tooltip<T = TooltipContentType_2> extends BaseTooltipConfig<T> {
|
|
4535
|
-
row?: BaseTooltipConfig<T>;
|
|
4536
|
-
col?: BaseTooltipConfig<T>;
|
|
4537
|
-
corner?: BaseTooltipConfig<T>;
|
|
4538
|
-
data?: BaseTooltipConfig<T>;
|
|
4653
|
+
declare interface Tooltip<T = TooltipContentType_2, Icon = Element | string, Text = string> extends BaseTooltipConfig<T, Icon, Text> {
|
|
4654
|
+
row?: BaseTooltipConfig<T, Icon, Text>;
|
|
4655
|
+
col?: BaseTooltipConfig<T, Icon, Text>;
|
|
4656
|
+
corner?: BaseTooltipConfig<T, Icon, Text>;
|
|
4657
|
+
data?: BaseTooltipConfig<T, Icon, Text>;
|
|
4539
4658
|
}
|
|
4540
4659
|
|
|
4541
4660
|
declare type TooltipAutoAdjustBoundary = 'body' | 'container';
|
|
@@ -4575,31 +4694,31 @@ declare type TooltipInterpretationOptions = {
|
|
|
4575
4694
|
render?: Element | string;
|
|
4576
4695
|
};
|
|
4577
4696
|
|
|
4578
|
-
declare interface TooltipOperation extends TooltipOperatorOptions {
|
|
4697
|
+
declare interface TooltipOperation<Icon = Element | string, Text = string> extends TooltipOperatorOptions<Icon, Text> {
|
|
4579
4698
|
hiddenColumns?: boolean;
|
|
4580
4699
|
trend?: boolean;
|
|
4581
4700
|
sort?: boolean;
|
|
4582
4701
|
tableSort?: boolean;
|
|
4583
4702
|
}
|
|
4584
4703
|
|
|
4585
|
-
declare interface TooltipOperatorMenu {
|
|
4704
|
+
declare interface TooltipOperatorMenu<Icon = Element | string, Text = string> {
|
|
4586
4705
|
key: string;
|
|
4587
|
-
icon?:
|
|
4588
|
-
text?:
|
|
4706
|
+
icon?: Icon;
|
|
4707
|
+
text?: Text;
|
|
4589
4708
|
onClick?: (cell: S2CellType_2) => void;
|
|
4590
4709
|
visible?: boolean | ((cell: S2CellType_2) => boolean);
|
|
4591
|
-
children?: TooltipOperatorMenu[];
|
|
4710
|
+
children?: TooltipOperatorMenu<Icon, Text>[];
|
|
4592
4711
|
}
|
|
4593
4712
|
|
|
4594
|
-
declare interface TooltipOperatorOptions {
|
|
4713
|
+
declare interface TooltipOperatorOptions<Icon = Element | string, Text = string> {
|
|
4595
4714
|
onClick?: (...args: unknown[]) => void;
|
|
4596
|
-
menus?: TooltipOperatorMenu[];
|
|
4715
|
+
menus?: TooltipOperatorMenu<Icon, Text>[];
|
|
4597
4716
|
defaultSelectedKeys?: string[];
|
|
4598
4717
|
}
|
|
4599
4718
|
|
|
4600
|
-
declare interface TooltipOptions {
|
|
4719
|
+
declare interface TooltipOptions<Icon = Element | string, Text = string> {
|
|
4601
4720
|
hideSummary?: boolean;
|
|
4602
|
-
operator?: TooltipOperatorOptions
|
|
4721
|
+
operator?: TooltipOperatorOptions<Icon, Text>;
|
|
4603
4722
|
enterable?: boolean;
|
|
4604
4723
|
isTotals?: boolean;
|
|
4605
4724
|
showSingleTips?: boolean;
|
|
@@ -4618,12 +4737,12 @@ declare interface TooltipPositionInfo {
|
|
|
4618
4737
|
event: Event_2 | MouseEvent;
|
|
4619
4738
|
}
|
|
4620
4739
|
|
|
4621
|
-
declare type TooltipShowOptions<T = TooltipContentType_2> = {
|
|
4740
|
+
declare type TooltipShowOptions<T = TooltipContentType_2, Icon = Element | string, Text = string> = {
|
|
4622
4741
|
position: TooltipPosition;
|
|
4623
4742
|
data?: TooltipData;
|
|
4624
4743
|
cellInfos?: TooltipDataItem[];
|
|
4625
|
-
options?: TooltipOptions
|
|
4626
|
-
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T>) => T) | T;
|
|
4744
|
+
options?: TooltipOptions<Icon, Text>;
|
|
4745
|
+
content?: ((cell: S2CellType_2, defaultTooltipShowOptions: TooltipShowOptions<T, Icon, Text>) => T) | T;
|
|
4627
4746
|
event?: Event_2 | MouseEvent;
|
|
4628
4747
|
};
|
|
4629
4748
|
|