@antv/s2-vue 2.0.0-next.3 → 2.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +648 -451
- package/esm/index.js +30 -47
- package/esm/index.js.map +1 -1
- package/lib/index.js +30 -47
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
package/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { AllowedComponentProps } from 'vue';
|
|
|
2
2
|
import { BaseTooltip } from '@antv/s2';
|
|
3
3
|
import { Canvas } from '@antv/g';
|
|
4
4
|
import { CellScrollPosition } from '@antv/s2';
|
|
5
|
-
import { CollapsedRowsType } from '@antv/s2';
|
|
6
5
|
import { ComponentCustomProps } from 'vue';
|
|
7
6
|
import { ComponentOptionsMixin } from 'vue';
|
|
8
7
|
import { ComputedRef } from 'vue';
|
|
@@ -15,7 +14,6 @@ import { DisplayObjectConfig } from '@antv/g';
|
|
|
15
14
|
import EE from '@antv/event-emitter';
|
|
16
15
|
import { ExtractPropTypes } from 'vue';
|
|
17
16
|
import { FederatedPointerEvent } from '@antv/g';
|
|
18
|
-
import { FederatedPointerEvent as FederatedPointerEvent_2 } from '@antv/g-lite';
|
|
19
17
|
import { GEvent } from '@antv/s2';
|
|
20
18
|
import { Group } from '@antv/g';
|
|
21
19
|
import { HiddenColumnsInfo } from '@antv/s2';
|
|
@@ -26,7 +24,6 @@ import { LayoutResult } from '@antv/s2';
|
|
|
26
24
|
import { LineStyleProps } from '@antv/g';
|
|
27
25
|
import { MemoizedFunction } from 'lodash';
|
|
28
26
|
import { Node as Node_2 } from '@antv/s2';
|
|
29
|
-
import { Omit as Omit_2 } from 'lodash';
|
|
30
27
|
import { Pagination } from '@antv/s2';
|
|
31
28
|
import type { PaginationProps } from 'ant-design-vue';
|
|
32
29
|
import { PointLike } from '@antv/g';
|
|
@@ -35,6 +32,7 @@ import { RawData } from '@antv/s2';
|
|
|
35
32
|
import { Ref } from 'vue';
|
|
36
33
|
import { ResizeInfo } from '@antv/s2';
|
|
37
34
|
import { ResizeParams } from '@antv/s2';
|
|
35
|
+
import { RowCellCollapsedParams } from '@antv/s2';
|
|
38
36
|
import { S2CellType } from '@antv/s2';
|
|
39
37
|
import { S2DataConfig } from '@antv/s2';
|
|
40
38
|
import { S2MountContainer } from '@antv/s2';
|
|
@@ -155,7 +153,9 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
155
153
|
protected abstract getTextPosition(): PointLike;
|
|
156
154
|
protected abstract findFieldCondition(conditions: Condition[] | undefined): Condition | undefined;
|
|
157
155
|
protected abstract mappingValue(condition: Condition): MappingResult | undefined | null;
|
|
156
|
+
protected shouldInit(): boolean;
|
|
158
157
|
getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
|
|
158
|
+
getLinkFieldShape(): DisplayObject<any, any>;
|
|
159
159
|
protected getResizeAreaStyle(): ResizeArea;
|
|
160
160
|
protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType_2): boolean | ((cell: S2CellType_2<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean) | undefined;
|
|
161
161
|
getBBoxByType(type?: CellClipBox): SimpleBBox;
|
|
@@ -200,6 +200,33 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
200
200
|
getTextConditionFill(textStyle: TextTheme): string | undefined;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
declare interface BaseCellStyle {
|
|
204
|
+
/**
|
|
205
|
+
* 自定义宽度
|
|
206
|
+
* 1. [静态数值] width: 100
|
|
207
|
+
* 2. [动态计算] width: (node) => 100
|
|
208
|
+
*/
|
|
209
|
+
width?: CellCustomSize;
|
|
210
|
+
/**
|
|
211
|
+
* 自定义高度
|
|
212
|
+
* 1. [静态数值] height: 100
|
|
213
|
+
* 2. [动态计算] height: (node) => 100
|
|
214
|
+
*/
|
|
215
|
+
height?: CellCustomSize;
|
|
216
|
+
/**
|
|
217
|
+
* 自定义指定的单元格宽度
|
|
218
|
+
* 1. 根据 field { city: 20, type: 100 }
|
|
219
|
+
* 2. 根据 单元格 ID { 'root[&]杭州市': 20, 'root[&]类别': 100 }
|
|
220
|
+
*/
|
|
221
|
+
widthByField?: Record<string, number> | null;
|
|
222
|
+
/**
|
|
223
|
+
* 自定义指定的单元格高度
|
|
224
|
+
* 1. 根据 field { city: 20, type: 100 }
|
|
225
|
+
* 2. 根据 单元格 ID { 'root[&]杭州市': 20, 'root[&]类别': 100 }
|
|
226
|
+
*/
|
|
227
|
+
heightByField?: Record<string, number> | null;
|
|
228
|
+
}
|
|
229
|
+
|
|
203
230
|
declare interface BaseChartData {
|
|
204
231
|
type: MiniChartTypes;
|
|
205
232
|
data: RawData_2[];
|
|
@@ -211,7 +238,6 @@ declare interface BaseChartData {
|
|
|
211
238
|
|
|
212
239
|
declare interface BaseCornerOptions {
|
|
213
240
|
seriesNumberWidth: number;
|
|
214
|
-
facetCfg: SpreadSheetFacetCfg;
|
|
215
241
|
layoutResult: LayoutResult_2;
|
|
216
242
|
spreadsheet: SpreadSheet_2;
|
|
217
243
|
}
|
|
@@ -305,6 +331,11 @@ declare abstract class BaseDataSet_2 {
|
|
|
305
331
|
*/
|
|
306
332
|
abstract getMultiData(query: Query, totals?: TotalSelectionsOfMultiData, drillDownFields?: string[]): Data[] | CellData[];
|
|
307
333
|
moreThanOneValue(): boolean;
|
|
334
|
+
/**
|
|
335
|
+
* get a row cells data including cell
|
|
336
|
+
* @param cells
|
|
337
|
+
*/
|
|
338
|
+
abstract getRowData(cells: CellMeta): RowData;
|
|
308
339
|
}
|
|
309
340
|
|
|
310
341
|
declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
|
|
@@ -343,7 +374,6 @@ declare abstract class BaseFacet {
|
|
|
343
374
|
frozenTopGroup: FrozenGroup;
|
|
344
375
|
frozenBottomGroup: FrozenGroup;
|
|
345
376
|
foregroundGroup: Group;
|
|
346
|
-
cfg: SpreadSheetFacetCfg;
|
|
347
377
|
layoutResult: LayoutResult_2;
|
|
348
378
|
viewCellWidths: number[];
|
|
349
379
|
viewCellHeights: ViewCellHeights;
|
|
@@ -364,12 +394,16 @@ declare abstract class BaseFacet {
|
|
|
364
394
|
get scrollBarTheme(): ScrollBarTheme | undefined;
|
|
365
395
|
get scrollBarSize(): number;
|
|
366
396
|
protected preCellIndexes: PanelIndexes | null;
|
|
367
|
-
constructor(
|
|
397
|
+
constructor(spreadsheet: SpreadSheet_2);
|
|
368
398
|
protected initGroups(): void;
|
|
369
399
|
protected initPanelGroups(): void;
|
|
370
|
-
protected
|
|
371
|
-
protected getRowCellDraggedWidth(node: Node_2_2): number;
|
|
372
|
-
protected
|
|
400
|
+
protected getCellCustomSize(node: Node_2_2 | null, size: CellCustomSize): number | null | undefined;
|
|
401
|
+
protected getRowCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
402
|
+
protected getRowCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
403
|
+
protected getRowCellHeight(node: Node_2_2): number;
|
|
404
|
+
protected getColCellDraggedWidth(node: Node_2_2): number | undefined;
|
|
405
|
+
protected getColCellDraggedHeight(node: Node_2_2): number | undefined;
|
|
406
|
+
protected getDefaultColNodeHeight(colNode: Node_2_2): number;
|
|
373
407
|
hideScrollBar: () => void;
|
|
374
408
|
delayHideScrollBar: DebouncedFunc<() => void>;
|
|
375
409
|
delayHideScrollbarOnMobile: () => void;
|
|
@@ -402,6 +436,10 @@ declare abstract class BaseFacet {
|
|
|
402
436
|
destroy(): void;
|
|
403
437
|
setScrollOffset: (scrollOffset: ScrollOffset) => void;
|
|
404
438
|
getScrollOffset: () => Required<ScrollOffset>;
|
|
439
|
+
resetScrollX: () => void;
|
|
440
|
+
resetRowScrollX: () => void;
|
|
441
|
+
resetScrollY: () => void;
|
|
442
|
+
resetScrollOffset: () => void;
|
|
405
443
|
emitPaginationEvent: () => void;
|
|
406
444
|
private unbindEvents;
|
|
407
445
|
calculateCellWidthHeight: () => void;
|
|
@@ -520,6 +558,7 @@ declare abstract class BaseFacet {
|
|
|
520
558
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
521
559
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
522
560
|
getHiddenColumnsInfo(columnNode: Node_2_2): HiddenColumnsInfo_2 | undefined;
|
|
561
|
+
getCornerNodes(): Node_2_2[];
|
|
523
562
|
}
|
|
524
563
|
|
|
525
564
|
declare interface BaseFields {
|
|
@@ -588,25 +627,31 @@ declare interface BaseHeaderConfig {
|
|
|
588
627
|
data: Node_2_2[];
|
|
589
628
|
spreadsheet: SpreadSheet_2;
|
|
590
629
|
sortParam?: SortParam;
|
|
630
|
+
linkFields: string[] | ((meta: Node_2_2 | ViewMeta_2) => boolean);
|
|
631
|
+
hierarchyType: S2Options_2['hierarchyType'];
|
|
591
632
|
}
|
|
592
633
|
|
|
593
634
|
declare interface BaseNodeConfig {
|
|
635
|
+
/**
|
|
636
|
+
* id 只在行头、列头 node 以及 hierarchy 中有用,是当前 node query 的拼接产物
|
|
637
|
+
*/
|
|
594
638
|
id: string;
|
|
595
|
-
|
|
639
|
+
/**
|
|
640
|
+
* 当前 node 的 field 属性, 在角头、行列头中 node 使用,和 dataCfg.fields 对应
|
|
641
|
+
*/
|
|
642
|
+
field: string;
|
|
596
643
|
value: string;
|
|
597
|
-
label?: string;
|
|
598
644
|
level?: number;
|
|
599
645
|
rowIndex?: number;
|
|
600
646
|
colIndex?: number;
|
|
601
647
|
parent?: Node_2_2;
|
|
602
648
|
isTotals?: boolean;
|
|
603
649
|
isSubTotals?: boolean;
|
|
604
|
-
isCollapsed?: boolean;
|
|
650
|
+
isCollapsed?: boolean | null;
|
|
605
651
|
isGrandTotals?: boolean;
|
|
606
652
|
hierarchy?: Hierarchy;
|
|
607
653
|
isPivotMode?: boolean;
|
|
608
654
|
seriesNumberWidth?: number;
|
|
609
|
-
field?: string;
|
|
610
655
|
spreadsheet?: SpreadSheet_2;
|
|
611
656
|
query?: Record<string, any>;
|
|
612
657
|
belongsCell?: S2CellType_2;
|
|
@@ -677,11 +722,8 @@ rowCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
677
722
|
rowCellMouseDown: (data: TargetCellInfo) => void;
|
|
678
723
|
rowCellMouseUp: (data: TargetCellInfo) => void;
|
|
679
724
|
rowCellMouseMove: (data: TargetCellInfo) => void;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
isCollapsed: boolean;
|
|
683
|
-
node: Node_2;
|
|
684
|
-
}) => void;
|
|
725
|
+
rowCellCollapsed: (params: RowCellCollapsedParams) => void;
|
|
726
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
685
727
|
rowCellScroll: (position: CellScrollPosition) => void;
|
|
686
728
|
colCellHover: (data: TargetCellInfo) => void;
|
|
687
729
|
colCellClick: (data: TargetCellInfo) => void;
|
|
@@ -690,6 +732,11 @@ colCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
690
732
|
colCellMouseDown: (data: TargetCellInfo) => void;
|
|
691
733
|
colCellMouseUp: (data: TargetCellInfo) => void;
|
|
692
734
|
colCellMouseMove: (data: TargetCellInfo) => void;
|
|
735
|
+
colCellExpanded: (node: Node_2) => void;
|
|
736
|
+
colCellHidden: (data: {
|
|
737
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
738
|
+
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
739
|
+
}) => void;
|
|
693
740
|
dataCellHover: (data: TargetCellInfo) => void;
|
|
694
741
|
dataCellClick: (data: TargetCellInfo) => void;
|
|
695
742
|
dataCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -697,7 +744,6 @@ dataCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
697
744
|
dataCellMouseDown: (data: TargetCellInfo) => void;
|
|
698
745
|
dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
699
746
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
700
|
-
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
701
747
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
702
748
|
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
703
749
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
@@ -725,14 +771,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
|
725
771
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
726
772
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
727
773
|
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
728
|
-
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
729
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
730
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
731
|
-
layoutColsExpanded: (node: Node_2) => void;
|
|
732
|
-
layoutColsHidden: (data: {
|
|
733
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
734
|
-
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
735
|
-
}) => void;
|
|
736
774
|
beforeRender: () => void;
|
|
737
775
|
afterRender: () => void;
|
|
738
776
|
mounted: (spreadsheet: SpreadSheet) => void;
|
|
@@ -773,10 +811,15 @@ mouseMove: (event: MouseEvent) => void;
|
|
|
773
811
|
selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
774
812
|
reset: (event: KeyboardEvent) => void;
|
|
775
813
|
linkFieldJump: (data: {
|
|
776
|
-
|
|
814
|
+
field: string;
|
|
777
815
|
record: RawData;
|
|
778
816
|
}) => void;
|
|
779
817
|
scroll: (position: CellScrollPosition) => void;
|
|
818
|
+
layoutAfterRealDataCellRender: (options: {
|
|
819
|
+
add: [number, number][];
|
|
820
|
+
remove: [number, number][];
|
|
821
|
+
spreadsheet: SpreadSheet;
|
|
822
|
+
}) => void;
|
|
780
823
|
rowCellBrushSelection: (event: GEvent) => void;
|
|
781
824
|
colCellBrushSelection: (event: GEvent) => void;
|
|
782
825
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
@@ -816,11 +859,8 @@ onRowCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
816
859
|
onRowCellMouseDown?: (data: TargetCellInfo) => any;
|
|
817
860
|
onRowCellMouseUp?: (data: TargetCellInfo) => any;
|
|
818
861
|
onRowCellMouseMove?: (data: TargetCellInfo) => any;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
isCollapsed: boolean;
|
|
822
|
-
node: Node_2;
|
|
823
|
-
}) => any;
|
|
862
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams) => any;
|
|
863
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
824
864
|
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
825
865
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
826
866
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
@@ -829,6 +869,11 @@ onColCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
829
869
|
onColCellMouseDown?: (data: TargetCellInfo) => any;
|
|
830
870
|
onColCellMouseUp?: (data: TargetCellInfo) => any;
|
|
831
871
|
onColCellMouseMove?: (data: TargetCellInfo) => any;
|
|
872
|
+
onColCellExpanded?: (node: Node_2) => any;
|
|
873
|
+
onColCellHidden?: (data: {
|
|
874
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
875
|
+
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
876
|
+
}) => any;
|
|
832
877
|
onDataCellHover?: (data: TargetCellInfo) => any;
|
|
833
878
|
onDataCellClick?: (data: TargetCellInfo) => any;
|
|
834
879
|
onDataCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -836,7 +881,6 @@ onDataCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
836
881
|
onDataCellMouseDown?: (data: TargetCellInfo) => any;
|
|
837
882
|
onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
838
883
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
839
|
-
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
840
884
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
841
885
|
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
842
886
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
@@ -864,14 +908,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
|
864
908
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
865
909
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
866
910
|
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
867
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
868
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
869
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
870
|
-
onLayoutColsExpanded?: (node: Node_2) => any;
|
|
871
|
-
onLayoutColsHidden?: (data: {
|
|
872
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
873
|
-
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
874
|
-
}) => any;
|
|
875
911
|
onBeforeRender?: () => any;
|
|
876
912
|
onAfterRender?: () => any;
|
|
877
913
|
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
@@ -912,10 +948,15 @@ onMouseMove?: (event: MouseEvent) => any;
|
|
|
912
948
|
onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
913
949
|
onReset?: (event: KeyboardEvent) => any;
|
|
914
950
|
onLinkFieldJump?: (data: {
|
|
915
|
-
|
|
951
|
+
field: string;
|
|
916
952
|
record: RawData;
|
|
917
953
|
}) => any;
|
|
918
954
|
onScroll?: (position: CellScrollPosition) => any;
|
|
955
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
956
|
+
add: [number, number][];
|
|
957
|
+
remove: [number, number][];
|
|
958
|
+
spreadsheet: SpreadSheet;
|
|
959
|
+
}) => any;
|
|
919
960
|
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
920
961
|
onColCellBrushSelection?: (event: GEvent) => any;
|
|
921
962
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
@@ -960,11 +1001,8 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
|
|
|
960
1001
|
onRowCellMouseDown?: (data: TargetCellInfo) => void;
|
|
961
1002
|
onRowCellMouseUp?: (data: TargetCellInfo) => void;
|
|
962
1003
|
onRowCellMouseMove?: (data: TargetCellInfo) => void;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
isCollapsed: boolean;
|
|
966
|
-
node: Node_2;
|
|
967
|
-
}) => void;
|
|
1004
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams) => void;
|
|
1005
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => void;
|
|
968
1006
|
onRowCellScroll?: (position: CellScrollPosition) => void;
|
|
969
1007
|
onColCellHover?: (data: TargetCellInfo) => void;
|
|
970
1008
|
onColCellClick?: (data: TargetCellInfo) => void;
|
|
@@ -973,6 +1011,11 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
|
|
|
973
1011
|
onColCellMouseDown?: (data: TargetCellInfo) => void;
|
|
974
1012
|
onColCellMouseUp?: (data: TargetCellInfo) => void;
|
|
975
1013
|
onColCellMouseMove?: (data: TargetCellInfo) => void;
|
|
1014
|
+
onColCellExpanded?: (node: Node_2) => void;
|
|
1015
|
+
onColCellHidden?: (data: {
|
|
1016
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
1017
|
+
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
1018
|
+
}) => void;
|
|
976
1019
|
onDataCellHover?: (data: TargetCellInfo) => void;
|
|
977
1020
|
onDataCellClick?: (data: TargetCellInfo) => void;
|
|
978
1021
|
onDataCellDoubleClick?: (data: TargetCellInfo) => void;
|
|
@@ -980,7 +1023,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
|
|
|
980
1023
|
onDataCellMouseDown?: (data: TargetCellInfo) => void;
|
|
981
1024
|
onDataCellMouseUp?: (data: TargetCellInfo) => void;
|
|
982
1025
|
onDataCellMouseMove?: (data: TargetCellInfo) => void;
|
|
983
|
-
onDataCellTrendIconClick?: (meta: ViewMeta) => void;
|
|
984
1026
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => void;
|
|
985
1027
|
onDataCellSelectMove?: (metas: ViewMetaData[]) => void;
|
|
986
1028
|
onCornerCellHover?: (data: TargetCellInfo) => void;
|
|
@@ -1009,14 +1051,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
|
|
|
1009
1051
|
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1010
1052
|
onLayoutCellScroll?: (position: CellScrollPosition) => void;
|
|
1011
1053
|
onLayoutCellMounted?: (cell: S2CellType) => void;
|
|
1012
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType) => void;
|
|
1013
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => void;
|
|
1014
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
|
|
1015
|
-
onLayoutColsExpanded?: (node: Node_2) => void;
|
|
1016
|
-
onLayoutColsHidden?: (data: {
|
|
1017
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
1018
|
-
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
1019
|
-
}) => void;
|
|
1020
1054
|
onBeforeRender?: () => void;
|
|
1021
1055
|
onAfterRender?: () => void;
|
|
1022
1056
|
onMounted?: (spreadsheet: SpreadSheet) => void;
|
|
@@ -1057,10 +1091,15 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
|
|
|
1057
1091
|
onSelected?: (cells: S2CellType[]) => void;
|
|
1058
1092
|
onReset?: (event: KeyboardEvent) => void;
|
|
1059
1093
|
onLinkFieldJump?: (data: {
|
|
1060
|
-
|
|
1094
|
+
field: string;
|
|
1061
1095
|
record: RawData;
|
|
1062
1096
|
}) => void;
|
|
1063
1097
|
onScroll?: (position: CellScrollPosition) => void;
|
|
1098
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
1099
|
+
add: [number, number][];
|
|
1100
|
+
remove: [number, number][];
|
|
1101
|
+
spreadsheet: SpreadSheet;
|
|
1102
|
+
}) => void;
|
|
1064
1103
|
onRowCellBrushSelection?: (event: GEvent) => void;
|
|
1065
1104
|
onColCellBrushSelection?: (event: GEvent) => void;
|
|
1066
1105
|
}
|
|
@@ -1159,16 +1198,6 @@ declare enum CellBorderPosition {
|
|
|
1159
1198
|
|
|
1160
1199
|
declare type CellCallback<T extends BaseHeaderConfig> = (node: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: T) => S2CellType_2;
|
|
1161
1200
|
|
|
1162
|
-
declare interface CellCfg {
|
|
1163
|
-
width?: number;
|
|
1164
|
-
height?: number;
|
|
1165
|
-
valuesCfg?: {
|
|
1166
|
-
originalValueField?: string;
|
|
1167
|
-
widthPercent?: number[];
|
|
1168
|
-
showOriginalValue?: boolean;
|
|
1169
|
-
};
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
1201
|
/**
|
|
1173
1202
|
* 类似 background-clip 属性: https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
|
|
1174
1203
|
* 分为三种类型:
|
|
@@ -1192,7 +1221,7 @@ declare enum CellClipBox {
|
|
|
1192
1221
|
CONTENT_BOX = "contentBox"
|
|
1193
1222
|
}
|
|
1194
1223
|
|
|
1195
|
-
declare type
|
|
1224
|
+
declare type CellCustomSize = null | undefined | number | ((node: Node_2_2 | null) => number | null);
|
|
1196
1225
|
|
|
1197
1226
|
declare class CellData {
|
|
1198
1227
|
private raw;
|
|
@@ -1200,7 +1229,7 @@ declare class CellData {
|
|
|
1200
1229
|
constructor(raw: RawData_2, extraField: string);
|
|
1201
1230
|
static getCellDataList(raw: RawData_2, extraFields: string[]): CellData[];
|
|
1202
1231
|
getOrigin(): RawData_2;
|
|
1203
|
-
|
|
1232
|
+
getValueByField(field: string): DataItem;
|
|
1204
1233
|
get [EXTRA_FIELD](): string;
|
|
1205
1234
|
get [VALUE_FIELD](): DataItem;
|
|
1206
1235
|
}
|
|
@@ -1219,6 +1248,7 @@ declare interface CellMeta {
|
|
|
1219
1248
|
colIndex: number;
|
|
1220
1249
|
rowIndex: number;
|
|
1221
1250
|
type: CellTypes;
|
|
1251
|
+
rowQuery?: Record<string, any>;
|
|
1222
1252
|
[key: string]: unknown;
|
|
1223
1253
|
}
|
|
1224
1254
|
|
|
@@ -1276,10 +1306,19 @@ declare class ColCell extends HeaderCell {
|
|
|
1276
1306
|
protected isBolderText(): boolean;
|
|
1277
1307
|
protected getTextPosition(): PointLike;
|
|
1278
1308
|
protected getActionIconsWidth(): number;
|
|
1279
|
-
protected getColResizeAreaKey(): string;
|
|
1280
1309
|
protected getColResizeArea(): Group | undefined;
|
|
1281
1310
|
protected getHorizontalResizeAreaName(): string;
|
|
1311
|
+
/**
|
|
1312
|
+
* @description 叶子节点, 但层级不同于其他节点 (如下图 a-1-1), 说明是任意不规则自定义节点, 此时不需要绘制热区
|
|
1313
|
+
* --------------------------------------------------
|
|
1314
|
+
* | 自定义节点 a-1 | |
|
|
1315
|
+
* |------------- |-----------| 自定义节点 a-1-1 |
|
|
1316
|
+
* | a-1-1 | a-1-2 | a-1-3 | |
|
|
1317
|
+
* -------------------------------------------------
|
|
1318
|
+
*/
|
|
1319
|
+
protected isCrossColumnLeafNode(): boolean;
|
|
1282
1320
|
protected drawHorizontalResizeArea(): void;
|
|
1321
|
+
private getResizeAreaWidth;
|
|
1283
1322
|
protected shouldAddVerticalResizeArea(): boolean;
|
|
1284
1323
|
protected getVerticalResizeAreaOffset(): {
|
|
1285
1324
|
x: number;
|
|
@@ -1307,12 +1346,11 @@ declare class ColCell extends HeaderCell {
|
|
|
1307
1346
|
protected handleViewport(viewport: AreaRange): AreaRange;
|
|
1308
1347
|
}
|
|
1309
1348
|
|
|
1310
|
-
declare interface
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
hideMeasureColumn?: boolean;
|
|
1349
|
+
declare interface ColCellStyle extends BaseCellStyle {
|
|
1350
|
+
/**
|
|
1351
|
+
* 数值挂列头时, 是否隐藏数值 (即 s2DataConfig.fields.values 只有一个数值时生效)
|
|
1352
|
+
*/
|
|
1353
|
+
hideValue?: boolean;
|
|
1316
1354
|
}
|
|
1317
1355
|
|
|
1318
1356
|
/**
|
|
@@ -1340,16 +1378,8 @@ declare class ColHeader extends BaseHeader<ColHeaderConfig> {
|
|
|
1340
1378
|
|
|
1341
1379
|
declare interface ColHeaderConfig extends BaseHeaderConfig {
|
|
1342
1380
|
cornerWidth?: number;
|
|
1343
|
-
scrollContainsRowHeader?: boolean;
|
|
1344
1381
|
}
|
|
1345
1382
|
|
|
1346
|
-
declare type CollapsedRowsType_2 = {
|
|
1347
|
-
collapsedRows: Record<string, boolean> & {
|
|
1348
|
-
[x: number]: any;
|
|
1349
|
-
};
|
|
1350
|
-
meta?: Node_2_2;
|
|
1351
|
-
};
|
|
1352
|
-
|
|
1353
1383
|
/**
|
|
1354
1384
|
* One field can hold a condition
|
|
1355
1385
|
*/
|
|
@@ -1367,6 +1397,7 @@ declare interface Conditions {
|
|
|
1367
1397
|
|
|
1368
1398
|
declare class CornerBBox extends BaseBBox {
|
|
1369
1399
|
calculateBBox(): void;
|
|
1400
|
+
private getCornerBBoxOriginalHeight;
|
|
1370
1401
|
private getCornerBBoxHeight;
|
|
1371
1402
|
private getCornerBBoxWidth;
|
|
1372
1403
|
private adjustCornerBBoxWidth;
|
|
@@ -1430,15 +1461,12 @@ declare class CornerHeader extends BaseHeader<CornerHeaderConfig> {
|
|
|
1430
1461
|
protected renderCells(): void;
|
|
1431
1462
|
protected offset(): void;
|
|
1432
1463
|
protected clip(): void;
|
|
1464
|
+
getNodes(): Node_2_2[];
|
|
1433
1465
|
}
|
|
1434
1466
|
|
|
1435
1467
|
declare type CornerHeaderCallback = (parent: S2CellType_2, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]) => void;
|
|
1436
1468
|
|
|
1437
1469
|
declare interface CornerHeaderConfig extends BaseHeaderConfig {
|
|
1438
|
-
hierarchyType: S2Options_2['hierarchyType'];
|
|
1439
|
-
hierarchyCollapse: boolean;
|
|
1440
|
-
rows: SpreadSheetFacetCfg['rows'];
|
|
1441
|
-
columns: SpreadSheetFacetCfg['columns'];
|
|
1442
1470
|
seriesNumberWidth: number;
|
|
1443
1471
|
}
|
|
1444
1472
|
|
|
@@ -1478,11 +1506,11 @@ export declare class CustomTooltip extends BaseTooltip {
|
|
|
1478
1506
|
}
|
|
1479
1507
|
|
|
1480
1508
|
declare interface CustomTreeNode {
|
|
1481
|
-
|
|
1509
|
+
field: string;
|
|
1482
1510
|
title?: string;
|
|
1483
1511
|
collapsed?: boolean;
|
|
1484
1512
|
description?: string;
|
|
1485
|
-
children?: CustomTreeNode[];
|
|
1513
|
+
children?: string[] | CustomTreeNode[];
|
|
1486
1514
|
}
|
|
1487
1515
|
|
|
1488
1516
|
declare type Data = (RawData_2 & ExtraData) | undefined | null;
|
|
@@ -1554,6 +1582,19 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
|
|
|
1554
1582
|
|
|
1555
1583
|
declare type DataCellCallback = (viewMeta: ViewMeta_2) => S2CellType_2;
|
|
1556
1584
|
|
|
1585
|
+
declare interface DataCellStyle {
|
|
1586
|
+
width?: number;
|
|
1587
|
+
height?: number;
|
|
1588
|
+
/**
|
|
1589
|
+
* 多列数值配置
|
|
1590
|
+
*/
|
|
1591
|
+
valuesCfg?: {
|
|
1592
|
+
originalValueField?: string;
|
|
1593
|
+
widthPercent?: number[];
|
|
1594
|
+
showOriginalValue?: boolean;
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1557
1598
|
declare type DataItem = SimpleData | MultiData | Record<string, unknown> | undefined | null;
|
|
1558
1599
|
|
|
1559
1600
|
declare type DataPath = (number | string)[];
|
|
@@ -1602,8 +1643,9 @@ declare interface EmitterType {
|
|
|
1602
1643
|
[S2Event.RANGE_FILTERED]: (data: RawData_2[]) => any;
|
|
1603
1644
|
/** ================ Cell ================ */
|
|
1604
1645
|
[S2Event.GLOBAL_LINK_FIELD_JUMP]: (data: {
|
|
1605
|
-
|
|
1606
|
-
|
|
1646
|
+
cellData: Node_2_2;
|
|
1647
|
+
field: string;
|
|
1648
|
+
record: Data;
|
|
1607
1649
|
}) => void;
|
|
1608
1650
|
/** ================ Date Cell ================ */
|
|
1609
1651
|
[S2Event.DATA_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
@@ -1613,7 +1655,6 @@ declare interface EmitterType {
|
|
|
1613
1655
|
[S2Event.DATA_CELL_CLICK]: CanvasEventHandler;
|
|
1614
1656
|
[S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1615
1657
|
[S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1616
|
-
[S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
|
|
1617
1658
|
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: (DataCell_2 | CellMeta)[]) => void;
|
|
1618
1659
|
[S2Event.DATA_CELL_SELECT_MOVE]: (metas: CellMeta[]) => void;
|
|
1619
1660
|
/** ================ Row Cell ================ */
|
|
@@ -1624,9 +1665,12 @@ declare interface EmitterType {
|
|
|
1624
1665
|
[S2Event.ROW_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1625
1666
|
[S2Event.ROW_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1626
1667
|
[S2Event.ROW_CELL_MOUSE_UP]: CanvasEventHandler;
|
|
1627
|
-
[S2Event.ROW_CELL_COLLAPSE_TREE_ROWS]: (data: RowCellCollapseTreeRowsType) => void;
|
|
1628
1668
|
[S2Event.ROW_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1629
1669
|
[S2Event.ROW_CELL_BRUSH_SELECTION]: (cells: RowCell[]) => void;
|
|
1670
|
+
[S2Event.ROW_CELL_COLLAPSED]: (data: RowCellCollapsedParams_2) => void;
|
|
1671
|
+
[S2Event.ROW_CELL_COLLAPSED__PRIVATE]: (data: RowCellCollapsedParams_2) => void;
|
|
1672
|
+
[S2Event.ROW_CELL_ALL_COLLAPSED]: (isCollapsed: boolean) => void;
|
|
1673
|
+
[S2Event.ROW_CELL_ALL_COLLAPSED__PRIVATE]: (isCollapsed: boolean) => void;
|
|
1630
1674
|
/** ================ Col Cell ================ */
|
|
1631
1675
|
[S2Event.COL_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1632
1676
|
[S2Event.COL_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1636,6 +1680,8 @@ declare interface EmitterType {
|
|
|
1636
1680
|
[S2Event.COL_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1637
1681
|
[S2Event.COL_CELL_MOUSE_UP]: CanvasEventHandler;
|
|
1638
1682
|
[S2Event.COL_CELL_BRUSH_SELECTION]: (cells: ColCell[]) => void;
|
|
1683
|
+
[S2Event.COL_CELL_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1684
|
+
[S2Event.COL_CELL_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1639
1685
|
/** ================ Corner Cell ================ */
|
|
1640
1686
|
[S2Event.CORNER_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
1641
1687
|
[S2Event.CORNER_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
@@ -1653,9 +1699,6 @@ declare interface EmitterType {
|
|
|
1653
1699
|
[S2Event.MERGED_CELLS_CONTEXT_MENU]: CanvasEventHandler;
|
|
1654
1700
|
[S2Event.MERGED_CELLS_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1655
1701
|
/** ================ Layout ================ */
|
|
1656
|
-
[S2Event.LAYOUT_COLLAPSE_ROWS]: (data: CollapsedRowsType_2) => void;
|
|
1657
|
-
[S2Event.LAYOUT_AFTER_COLLAPSE_ROWS]: (data: CollapsedRowsType_2) => void;
|
|
1658
|
-
[S2Event.LAYOUT_TREE_ROWS_COLLAPSE_ALL]: (hierarchyCollapse: boolean) => void;
|
|
1659
1702
|
[S2Event.LAYOUT_PAGINATION]: (data: {
|
|
1660
1703
|
pageSize: number;
|
|
1661
1704
|
pageCount: number;
|
|
@@ -1663,11 +1706,14 @@ declare interface EmitterType {
|
|
|
1663
1706
|
current: number;
|
|
1664
1707
|
}) => void;
|
|
1665
1708
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1709
|
+
[S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER]: (options: {
|
|
1710
|
+
add: [number, number][];
|
|
1711
|
+
remove: [number, number][];
|
|
1712
|
+
spreadsheet: SpreadSheet_2;
|
|
1713
|
+
}) => void;
|
|
1666
1714
|
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1667
1715
|
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1668
1716
|
[S2Event.LAYOUT_CELL_MOUNTED]: (cell: S2CellType_2) => void;
|
|
1669
|
-
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1670
|
-
[S2Event.LAYOUT_COLS_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1671
1717
|
[S2Event.LAYOUT_BEFORE_RENDER]: () => void;
|
|
1672
1718
|
[S2Event.LAYOUT_AFTER_RENDER]: () => void;
|
|
1673
1719
|
[S2Event.LAYOUT_DESTROY]: () => void;
|
|
@@ -1799,15 +1845,13 @@ declare interface FrameConfig {
|
|
|
1799
1845
|
viewportHeight: number;
|
|
1800
1846
|
showViewportLeftShadow: boolean;
|
|
1801
1847
|
showViewportRightShadow: boolean;
|
|
1802
|
-
scrollContainsRowHeader: boolean;
|
|
1803
|
-
isPivotMode: boolean;
|
|
1804
1848
|
spreadsheet: SpreadSheet_2;
|
|
1805
1849
|
}
|
|
1806
1850
|
|
|
1807
1851
|
declare class FrozenGroup extends GridGroup {
|
|
1808
1852
|
}
|
|
1809
1853
|
|
|
1810
|
-
declare type GetCellMeta = (rowIndex
|
|
1854
|
+
declare type GetCellMeta = (rowIndex: number, colIndex: number) => ViewMeta_2 | null;
|
|
1811
1855
|
|
|
1812
1856
|
declare type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
|
|
1813
1857
|
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
|
|
@@ -1943,6 +1987,7 @@ declare abstract class HeaderCell extends BaseCell<Node_2_2> {
|
|
|
1943
1987
|
isMeasureField(): boolean;
|
|
1944
1988
|
mappingValue(condition: Condition): MappingResult;
|
|
1945
1989
|
findFieldCondition(conditions: Condition[]): Condition | undefined;
|
|
1990
|
+
getTreeIcon(): GuiIcon | undefined;
|
|
1946
1991
|
}
|
|
1947
1992
|
|
|
1948
1993
|
declare interface HeaderIconClickParams {
|
|
@@ -2018,27 +2063,34 @@ declare interface IconTheme {
|
|
|
2018
2063
|
|
|
2019
2064
|
declare type Indexes = [number, number, number, number];
|
|
2020
2065
|
|
|
2066
|
+
declare interface InteractionCellSelectedHighlightType {
|
|
2067
|
+
rowHeader?: boolean;
|
|
2068
|
+
colHeader?: boolean;
|
|
2069
|
+
currentRow?: boolean;
|
|
2070
|
+
currentCol?: boolean;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2021
2073
|
declare type InteractionConstructor = new (spreadsheet: SpreadSheet_2) => BaseEvent;
|
|
2022
2074
|
|
|
2023
2075
|
declare interface InteractionOptions {
|
|
2024
|
-
linkFields?: string[];
|
|
2076
|
+
linkFields?: string[] | ((meta: Node_2_2 | ViewMeta_2) => boolean);
|
|
2025
2077
|
selectedCellsSpotlight?: boolean;
|
|
2026
2078
|
hoverHighlight?: boolean;
|
|
2027
|
-
hoverFocus?:
|
|
2079
|
+
hoverFocus?: HoverFocusOptions | boolean;
|
|
2028
2080
|
enableCopy?: boolean;
|
|
2029
2081
|
copyWithFormat?: boolean;
|
|
2030
2082
|
copyWithHeader?: boolean;
|
|
2031
2083
|
autoResetSheetStyle?: boolean;
|
|
2032
2084
|
hiddenColumnFields?: string[];
|
|
2033
2085
|
scrollSpeedRatio?: ScrollSpeedRatio;
|
|
2034
|
-
resize?:
|
|
2035
|
-
brushSelection?:
|
|
2086
|
+
resize?: ResizeInteractionOptions | boolean;
|
|
2087
|
+
brushSelection?: BrushSelection | boolean;
|
|
2036
2088
|
multiSelection?: boolean;
|
|
2037
2089
|
rangeSelection?: boolean;
|
|
2038
2090
|
selectedCellMove?: boolean;
|
|
2039
2091
|
scrollbarPosition?: ScrollbarPositionType;
|
|
2040
2092
|
eventListenerOptions?: boolean | AddEventListenerOptions;
|
|
2041
|
-
selectedCellHighlight?: boolean;
|
|
2093
|
+
selectedCellHighlight?: boolean | InteractionCellSelectedHighlightType;
|
|
2042
2094
|
overscrollBehavior?: 'auto' | 'none' | 'contain' | null;
|
|
2043
2095
|
/** ***********CUSTOM INTERACTION HOOKS**************** */
|
|
2044
2096
|
customInteractions?: CustomInteraction[];
|
|
@@ -2182,6 +2234,11 @@ declare interface MappingResult extends ValueRange {
|
|
|
2182
2234
|
* @version 1.34.0
|
|
2183
2235
|
*/
|
|
2184
2236
|
intelligentReverseTextColor?: boolean;
|
|
2237
|
+
/**
|
|
2238
|
+
* @description custom the interval condition's width
|
|
2239
|
+
* @version 1.38.0
|
|
2240
|
+
*/
|
|
2241
|
+
fieldValue?: number;
|
|
2185
2242
|
}
|
|
2186
2243
|
|
|
2187
2244
|
declare type Margin = Padding;
|
|
@@ -2261,9 +2318,36 @@ declare interface MultiData<T = SimpleData[][] | MiniChartData> {
|
|
|
2261
2318
|
* Node for cornerHeader, colHeader, rowHeader
|
|
2262
2319
|
*/
|
|
2263
2320
|
declare class Node_2_2 {
|
|
2321
|
+
id: string;
|
|
2322
|
+
value: string;
|
|
2323
|
+
field: string;
|
|
2324
|
+
x: number;
|
|
2325
|
+
y: number;
|
|
2326
|
+
width: number;
|
|
2327
|
+
height: number;
|
|
2328
|
+
colIndex: number;
|
|
2329
|
+
level: number;
|
|
2330
|
+
rowIndex: number;
|
|
2331
|
+
parent: Node_2_2 | undefined;
|
|
2332
|
+
isLeaf: boolean;
|
|
2333
|
+
isTotals: boolean;
|
|
2334
|
+
colId: string;
|
|
2264
2335
|
isTotalMeasure: boolean;
|
|
2265
|
-
|
|
2266
|
-
|
|
2336
|
+
isCollapsed: boolean;
|
|
2337
|
+
children: Node_2_2[];
|
|
2338
|
+
padding: number;
|
|
2339
|
+
hierarchy: Hierarchy;
|
|
2340
|
+
isPivotMode: boolean;
|
|
2341
|
+
seriesNumberWidth: number;
|
|
2342
|
+
spreadsheet: SpreadSheet_2;
|
|
2343
|
+
query?: Record<string, any>;
|
|
2344
|
+
belongsCell?: S2CellType_2 | null | undefined;
|
|
2345
|
+
inCollapseNode?: boolean;
|
|
2346
|
+
cornerType?: CornerNodeType;
|
|
2347
|
+
isGrandTotals?: boolean;
|
|
2348
|
+
isSubTotals?: boolean;
|
|
2349
|
+
[key: string]: any;
|
|
2350
|
+
constructor({ id, field, value, parent, level, rowIndex, isTotals, isGrandTotals, isSubTotals, isCollapsed, hierarchy, isPivotMode, seriesNumberWidth, spreadsheet, query, belongsCell, inCollapseNode, isTotalMeasure, isLeaf, extra, }: BaseNodeConfig);
|
|
2267
2351
|
/**
|
|
2268
2352
|
* Get node's field path
|
|
2269
2353
|
* eg: node.id = root[&]东北[&]黑龙江
|
|
@@ -2310,39 +2394,8 @@ declare class Node_2_2 {
|
|
|
2310
2394
|
* @param parent
|
|
2311
2395
|
*/
|
|
2312
2396
|
static getAllBranch(parent: Node_2_2): Node_2_2[][];
|
|
2313
|
-
id: string;
|
|
2314
|
-
x: number;
|
|
2315
|
-
y: number;
|
|
2316
|
-
width: number;
|
|
2317
|
-
height: number;
|
|
2318
|
-
label: string;
|
|
2319
|
-
key: string;
|
|
2320
|
-
value: string;
|
|
2321
|
-
colIndex: number;
|
|
2322
|
-
level: number;
|
|
2323
|
-
rowIndex: number;
|
|
2324
|
-
parent: Node_2_2 | undefined;
|
|
2325
|
-
isLeaf: boolean;
|
|
2326
|
-
isTotals: boolean;
|
|
2327
|
-
colId: string;
|
|
2328
2397
|
static blankNode(): Node_2_2;
|
|
2329
|
-
isCollapsed: boolean;
|
|
2330
|
-
children: Node_2_2[];
|
|
2331
|
-
padding: number;
|
|
2332
|
-
hierarchy: Hierarchy;
|
|
2333
|
-
isPivotMode: boolean;
|
|
2334
|
-
seriesNumberWidth: number;
|
|
2335
|
-
field: string;
|
|
2336
|
-
spreadsheet: SpreadSheet_2;
|
|
2337
|
-
query?: Record<string, any>;
|
|
2338
|
-
belongsCell?: S2CellType_2 | null | undefined;
|
|
2339
|
-
inCollapseNode?: boolean;
|
|
2340
|
-
cornerType?: CornerNodeType;
|
|
2341
|
-
isGrandTotals?: boolean;
|
|
2342
|
-
isSubTotals?: boolean;
|
|
2343
|
-
[key: string]: any;
|
|
2344
2398
|
static rootNode(): Node_2_2;
|
|
2345
|
-
toJSON(): Omit_2<this, "config" | "parent" | "hierarchy" | "spreadsheet">;
|
|
2346
2399
|
getHeadLeafChild(): Node_2_2 | undefined;
|
|
2347
2400
|
/**
|
|
2348
2401
|
* 获取树状模式下,当前节点以及其所有子节点的高度总和
|
|
@@ -2485,11 +2538,8 @@ rowCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
2485
2538
|
rowCellMouseDown: (data: TargetCellInfo) => void;
|
|
2486
2539
|
rowCellMouseUp: (data: TargetCellInfo) => void;
|
|
2487
2540
|
rowCellMouseMove: (data: TargetCellInfo) => void;
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
isCollapsed: boolean;
|
|
2491
|
-
node: Node_2;
|
|
2492
|
-
}) => void;
|
|
2541
|
+
rowCellCollapsed: (params: RowCellCollapsedParams) => void;
|
|
2542
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
2493
2543
|
rowCellScroll: (position: CellScrollPosition) => void;
|
|
2494
2544
|
colCellHover: (data: TargetCellInfo) => void;
|
|
2495
2545
|
colCellClick: (data: TargetCellInfo) => void;
|
|
@@ -2498,6 +2548,11 @@ colCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
2498
2548
|
colCellMouseDown: (data: TargetCellInfo) => void;
|
|
2499
2549
|
colCellMouseUp: (data: TargetCellInfo) => void;
|
|
2500
2550
|
colCellMouseMove: (data: TargetCellInfo) => void;
|
|
2551
|
+
colCellExpanded: (node: Node_2) => void;
|
|
2552
|
+
colCellHidden: (data: {
|
|
2553
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
2554
|
+
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
2555
|
+
}) => void;
|
|
2501
2556
|
dataCellHover: (data: TargetCellInfo) => void;
|
|
2502
2557
|
dataCellClick: (data: TargetCellInfo) => void;
|
|
2503
2558
|
dataCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -2505,7 +2560,6 @@ dataCellContextMenu: (data: TargetCellInfo) => void;
|
|
|
2505
2560
|
dataCellMouseDown: (data: TargetCellInfo) => void;
|
|
2506
2561
|
dataCellMouseUp: (data: TargetCellInfo) => void;
|
|
2507
2562
|
dataCellMouseMove: (data: TargetCellInfo) => void;
|
|
2508
|
-
dataCellTrendIconClick: (meta: ViewMeta) => void;
|
|
2509
2563
|
dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
|
|
2510
2564
|
dataCellSelectMove: (metas: ViewMetaData[]) => void;
|
|
2511
2565
|
cornerCellHover: (data: TargetCellInfo) => void;
|
|
@@ -2533,14 +2587,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
|
|
|
2533
2587
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
2534
2588
|
layoutCellScroll: (position: CellScrollPosition) => void;
|
|
2535
2589
|
layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
|
|
2536
|
-
layoutCollapseRows: (data: CollapsedRowsType) => void;
|
|
2537
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType) => void;
|
|
2538
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
2539
|
-
layoutColsExpanded: (node: Node_2) => void;
|
|
2540
|
-
layoutColsHidden: (data: {
|
|
2541
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
2542
|
-
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
2543
|
-
}) => void;
|
|
2544
2590
|
beforeRender: () => void;
|
|
2545
2591
|
afterRender: () => void;
|
|
2546
2592
|
mounted: (spreadsheet: SpreadSheet) => void;
|
|
@@ -2581,10 +2627,15 @@ mouseMove: (event: MouseEvent) => void;
|
|
|
2581
2627
|
selected: (cells: S2CellType<ViewMeta>[]) => void;
|
|
2582
2628
|
reset: (event: KeyboardEvent) => void;
|
|
2583
2629
|
linkFieldJump: (data: {
|
|
2584
|
-
|
|
2630
|
+
field: string;
|
|
2585
2631
|
record: RawData;
|
|
2586
2632
|
}) => void;
|
|
2587
2633
|
scroll: (position: CellScrollPosition) => void;
|
|
2634
|
+
layoutAfterRealDataCellRender: (options: {
|
|
2635
|
+
add: [number, number][];
|
|
2636
|
+
remove: [number, number][];
|
|
2637
|
+
spreadsheet: SpreadSheet;
|
|
2638
|
+
}) => void;
|
|
2588
2639
|
rowCellBrushSelection: (event: GEvent) => void;
|
|
2589
2640
|
colCellBrushSelection: (event: GEvent) => void;
|
|
2590
2641
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
@@ -2624,11 +2675,8 @@ onRowCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
2624
2675
|
onRowCellMouseDown?: (data: TargetCellInfo) => any;
|
|
2625
2676
|
onRowCellMouseUp?: (data: TargetCellInfo) => any;
|
|
2626
2677
|
onRowCellMouseMove?: (data: TargetCellInfo) => any;
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
isCollapsed: boolean;
|
|
2630
|
-
node: Node_2;
|
|
2631
|
-
}) => any;
|
|
2678
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams) => any;
|
|
2679
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
2632
2680
|
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
2633
2681
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
2634
2682
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
@@ -2637,6 +2685,11 @@ onColCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
2637
2685
|
onColCellMouseDown?: (data: TargetCellInfo) => any;
|
|
2638
2686
|
onColCellMouseUp?: (data: TargetCellInfo) => any;
|
|
2639
2687
|
onColCellMouseMove?: (data: TargetCellInfo) => any;
|
|
2688
|
+
onColCellExpanded?: (node: Node_2) => any;
|
|
2689
|
+
onColCellHidden?: (data: {
|
|
2690
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
2691
|
+
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
2692
|
+
}) => any;
|
|
2640
2693
|
onDataCellHover?: (data: TargetCellInfo) => any;
|
|
2641
2694
|
onDataCellClick?: (data: TargetCellInfo) => any;
|
|
2642
2695
|
onDataCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -2644,7 +2697,6 @@ onDataCellContextMenu?: (data: TargetCellInfo) => any;
|
|
|
2644
2697
|
onDataCellMouseDown?: (data: TargetCellInfo) => any;
|
|
2645
2698
|
onDataCellMouseUp?: (data: TargetCellInfo) => any;
|
|
2646
2699
|
onDataCellMouseMove?: (data: TargetCellInfo) => any;
|
|
2647
|
-
onDataCellTrendIconClick?: (meta: ViewMeta) => any;
|
|
2648
2700
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
|
|
2649
2701
|
onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
|
|
2650
2702
|
onCornerCellHover?: (data: TargetCellInfo) => any;
|
|
@@ -2672,14 +2724,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
|
|
|
2672
2724
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
2673
2725
|
onLayoutCellScroll?: (position: CellScrollPosition) => any;
|
|
2674
2726
|
onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
|
|
2675
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2676
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => any;
|
|
2677
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
2678
|
-
onLayoutColsExpanded?: (node: Node_2) => any;
|
|
2679
|
-
onLayoutColsHidden?: (data: {
|
|
2680
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo;
|
|
2681
|
-
hiddenColumnsDetail: HiddenColumnsInfo[];
|
|
2682
|
-
}) => any;
|
|
2683
2727
|
onBeforeRender?: () => any;
|
|
2684
2728
|
onAfterRender?: () => any;
|
|
2685
2729
|
onMounted?: (spreadsheet: SpreadSheet) => any;
|
|
@@ -2720,10 +2764,15 @@ onMouseMove?: (event: MouseEvent) => any;
|
|
|
2720
2764
|
onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
|
|
2721
2765
|
onReset?: (event: KeyboardEvent) => any;
|
|
2722
2766
|
onLinkFieldJump?: (data: {
|
|
2723
|
-
|
|
2767
|
+
field: string;
|
|
2724
2768
|
record: RawData;
|
|
2725
2769
|
}) => any;
|
|
2726
2770
|
onScroll?: (position: CellScrollPosition) => any;
|
|
2771
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
2772
|
+
add: [number, number][];
|
|
2773
|
+
remove: [number, number][];
|
|
2774
|
+
spreadsheet: SpreadSheet;
|
|
2775
|
+
}) => any;
|
|
2727
2776
|
onRowCellBrushSelection?: (event: GEvent) => any;
|
|
2728
2777
|
onColCellBrushSelection?: (event: GEvent) => any;
|
|
2729
2778
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
|
|
@@ -2812,8 +2861,6 @@ declare interface ResizeInfo_2 {
|
|
|
2812
2861
|
effect: ResizeAreaEffect;
|
|
2813
2862
|
isResizeArea?: boolean;
|
|
2814
2863
|
isResizeMask?: boolean;
|
|
2815
|
-
/** 字段id */
|
|
2816
|
-
id: string;
|
|
2817
2864
|
/** 当前拖拽热区对应的节点信息 */
|
|
2818
2865
|
meta: Node_2_2 | ViewMeta_2;
|
|
2819
2866
|
/** 拖拽后的宽度 */
|
|
@@ -2828,6 +2875,7 @@ declare interface ResizeInteractionOptions {
|
|
|
2828
2875
|
colCellHorizontal?: boolean;
|
|
2829
2876
|
colCellVertical?: boolean;
|
|
2830
2877
|
rowResizeType?: ResizeType;
|
|
2878
|
+
colResizeType?: ResizeType;
|
|
2831
2879
|
disable?: (resizeInfo: ResizeInfo_2) => boolean;
|
|
2832
2880
|
visible?: (cell: S2CellType_2) => boolean;
|
|
2833
2881
|
}
|
|
@@ -2867,7 +2915,7 @@ declare class RootInteraction {
|
|
|
2867
2915
|
isHoverState(): boolean;
|
|
2868
2916
|
isActiveCell(cell: S2CellType_2): boolean;
|
|
2869
2917
|
isSelectedCell(cell: S2CellType_2): boolean;
|
|
2870
|
-
getCells(): CellMeta[];
|
|
2918
|
+
getCells(cellType?: CellTypes[]): CellMeta[];
|
|
2871
2919
|
getActiveCells(): S2CellType_2[];
|
|
2872
2920
|
clearStyleIndependent(): void;
|
|
2873
2921
|
getPanelGroupAllUnSelectedDataCells(): DataCell_2[];
|
|
@@ -2898,6 +2946,7 @@ declare class RootInteraction {
|
|
|
2898
2946
|
clearHoverTimer(): void;
|
|
2899
2947
|
setHoverTimer(timer: number): void;
|
|
2900
2948
|
getHoverTimer(): number | null;
|
|
2949
|
+
getSelectedCellHighlight(): InteractionCellSelectedHighlightType;
|
|
2901
2950
|
}
|
|
2902
2951
|
|
|
2903
2952
|
declare class RowCell extends HeaderCell {
|
|
@@ -2908,6 +2957,8 @@ declare class RowCell extends HeaderCell {
|
|
|
2908
2957
|
protected showTreeIcon(): boolean;
|
|
2909
2958
|
protected showTreeLeafNodeAlignDot(): boolean | undefined;
|
|
2910
2959
|
protected getParentTreeIconCfg(): any;
|
|
2960
|
+
private onTreeIconClick;
|
|
2961
|
+
private emitCollapseEvent;
|
|
2911
2962
|
protected drawTreeIcon(): void;
|
|
2912
2963
|
protected drawTreeLeafNodeAlignDot(): void;
|
|
2913
2964
|
protected isBolderText(): boolean;
|
|
@@ -2932,22 +2983,36 @@ declare class RowCell extends HeaderCell {
|
|
|
2932
2983
|
protected getIconYPosition(): number;
|
|
2933
2984
|
}
|
|
2934
2985
|
|
|
2935
|
-
declare type
|
|
2936
|
-
id: string;
|
|
2986
|
+
declare type RowCellCollapsedParams_2 = {
|
|
2937
2987
|
isCollapsed: boolean;
|
|
2938
2988
|
node: Node_2_2;
|
|
2989
|
+
collapseFields?: RowCellStyle['collapseFields'];
|
|
2939
2990
|
};
|
|
2940
2991
|
|
|
2941
|
-
declare interface
|
|
2942
|
-
width?: CellCustomWidth;
|
|
2943
|
-
widthByField?: Record<string, number>;
|
|
2944
|
-
heightByField?: Record<string, number>;
|
|
2992
|
+
declare interface RowCellStyle extends BaseCellStyle {
|
|
2945
2993
|
/**
|
|
2946
|
-
*
|
|
2994
|
+
* 是否展示树状分层下的层级占位点
|
|
2947
2995
|
*/
|
|
2948
|
-
|
|
2996
|
+
showTreeLeafNodeAlignDot?: boolean;
|
|
2997
|
+
/**
|
|
2998
|
+
* 收起所有 (对应角头收起展开按钮)
|
|
2999
|
+
*/
|
|
3000
|
+
collapseAll?: boolean | null;
|
|
3001
|
+
/**
|
|
3002
|
+
* 折叠节点
|
|
3003
|
+
* 优先级大于 collapseAll 和 expandDepth
|
|
3004
|
+
* id 级别: { ['root[&]浙江省']: true, ['root[&]河南省']: false } 即 只有 浙江省 对应的节点才会被折叠
|
|
3005
|
+
* field 级别: { city: true, type: false } : 即 所有 city 对应的维值都会被折叠
|
|
3006
|
+
*/
|
|
3007
|
+
collapseFields?: Record<string, boolean> | null;
|
|
3008
|
+
/**
|
|
3009
|
+
* 行头默认展开到第几层 (从 0 开始)
|
|
3010
|
+
*/
|
|
3011
|
+
expandDepth?: number | null;
|
|
2949
3012
|
}
|
|
2950
3013
|
|
|
3014
|
+
declare type RowData = Data | CellData[];
|
|
3015
|
+
|
|
2951
3016
|
/**
|
|
2952
3017
|
* Row Header for SpreadSheet
|
|
2953
3018
|
*/
|
|
@@ -2958,51 +3023,136 @@ declare class RowHeader extends BaseHeader<RowHeaderConfig> {
|
|
|
2958
3023
|
protected clip(): void;
|
|
2959
3024
|
}
|
|
2960
3025
|
|
|
2961
|
-
declare
|
|
2962
|
-
hierarchyType: S2Options_2['hierarchyType'];
|
|
2963
|
-
linkFields: string[];
|
|
2964
|
-
}
|
|
3026
|
+
declare type RowHeaderConfig = BaseHeaderConfig;
|
|
2965
3027
|
|
|
2966
3028
|
declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> {
|
|
3029
|
+
/**
|
|
3030
|
+
* 表格宽度
|
|
3031
|
+
*/
|
|
2967
3032
|
width?: number;
|
|
3033
|
+
/**
|
|
3034
|
+
* 表格高度
|
|
3035
|
+
*/
|
|
2968
3036
|
height?: number;
|
|
3037
|
+
/**
|
|
3038
|
+
* 开启调试模式
|
|
3039
|
+
*/
|
|
2969
3040
|
debug?: boolean;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
3041
|
+
/**
|
|
3042
|
+
* 字段标记
|
|
3043
|
+
*/
|
|
3044
|
+
conditions?: Conditions | null;
|
|
3045
|
+
/**
|
|
3046
|
+
* 提示信息
|
|
3047
|
+
*/
|
|
3048
|
+
tooltip?: Tooltip<T, Icon, Text> | null;
|
|
3049
|
+
/**
|
|
3050
|
+
* 交互配置
|
|
3051
|
+
*/
|
|
2974
3052
|
interaction?: InteractionOptions;
|
|
3053
|
+
/**
|
|
3054
|
+
* 分页配置
|
|
3055
|
+
*/
|
|
2975
3056
|
pagination?: P;
|
|
2976
|
-
|
|
3057
|
+
/**
|
|
3058
|
+
* 自定义序号列文本, 默认为 "序号"
|
|
3059
|
+
*/
|
|
2977
3060
|
seriesNumberText?: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* 是否显示序号
|
|
3063
|
+
*/
|
|
2978
3064
|
showSeriesNumber?: boolean;
|
|
3065
|
+
/**
|
|
3066
|
+
* 是否显示表头默认操作图标
|
|
3067
|
+
*/
|
|
2979
3068
|
showDefaultHeaderActionIcon?: boolean;
|
|
3069
|
+
/**
|
|
3070
|
+
* 自定义表头图标配置
|
|
3071
|
+
*/
|
|
2980
3072
|
headerActionIcons?: HeaderActionIcon[];
|
|
3073
|
+
/**
|
|
3074
|
+
* 自定义 SVG 图标
|
|
3075
|
+
*/
|
|
2981
3076
|
customSVGIcons?: CustomSVGIcon[];
|
|
3077
|
+
/**
|
|
3078
|
+
* 表格单元格宽高配置
|
|
3079
|
+
*/
|
|
2982
3080
|
style?: S2Style;
|
|
3081
|
+
/**
|
|
3082
|
+
* 是否开启高清适配
|
|
3083
|
+
*/
|
|
2983
3084
|
hdAdapter?: boolean;
|
|
2984
|
-
|
|
3085
|
+
/**
|
|
3086
|
+
* 空值单元格占位符
|
|
3087
|
+
*/
|
|
2985
3088
|
placeholder?: ((meta: Record<string, any>) => string) | string;
|
|
2986
|
-
|
|
2987
|
-
|
|
3089
|
+
/**
|
|
3090
|
+
* 是否支持 CSS 的 transform 属性
|
|
3091
|
+
*/
|
|
2988
3092
|
supportCSSTransform?: boolean;
|
|
3093
|
+
/**
|
|
3094
|
+
* 自定义 DPR, 默认 "window.devicePixelRatio"
|
|
3095
|
+
*/
|
|
2989
3096
|
devicePixelRatio?: number;
|
|
2990
|
-
/**
|
|
3097
|
+
/**
|
|
3098
|
+
* 设备类型: pc / mobile
|
|
3099
|
+
*/
|
|
2991
3100
|
device?: DeviceType;
|
|
2992
|
-
/** ***********
|
|
3101
|
+
/** *********** 自定义单元格 hooks **************** */
|
|
3102
|
+
/**
|
|
3103
|
+
* 自定义数值单元格
|
|
3104
|
+
*/
|
|
2993
3105
|
dataCell?: DataCellCallback;
|
|
3106
|
+
/**
|
|
3107
|
+
* 自定义角头单元格
|
|
3108
|
+
*/
|
|
2994
3109
|
cornerCell?: CellCallback<CornerHeaderConfig>;
|
|
3110
|
+
/**
|
|
3111
|
+
* 自定义序号单元格
|
|
3112
|
+
*/
|
|
2995
3113
|
seriesNumberCell?: CellCallback<BaseHeaderConfig>;
|
|
3114
|
+
/**
|
|
3115
|
+
* 自定义行头单元格
|
|
3116
|
+
*/
|
|
2996
3117
|
rowCell?: CellCallback<RowHeaderConfig>;
|
|
3118
|
+
/**
|
|
3119
|
+
* 自定义列头单元格
|
|
3120
|
+
*/
|
|
2997
3121
|
colCell?: CellCallback<ColHeaderConfig>;
|
|
3122
|
+
/**
|
|
3123
|
+
* 自定义表格框架/边框
|
|
3124
|
+
*/
|
|
2998
3125
|
frame?: FrameCallback;
|
|
3126
|
+
/**
|
|
3127
|
+
* 自定义角头
|
|
3128
|
+
*/
|
|
2999
3129
|
cornerHeader?: CornerHeaderCallback;
|
|
3000
|
-
/** ***********
|
|
3130
|
+
/** *********** 自定义布局 hooks **************** */
|
|
3131
|
+
/**
|
|
3132
|
+
* 自定义单元格层级, 动态增加/删除单元格
|
|
3133
|
+
*/
|
|
3001
3134
|
layoutHierarchy?: LayoutHierarchy;
|
|
3135
|
+
/**
|
|
3136
|
+
* 自定义节点排列顺序 (树状模式有效)
|
|
3137
|
+
*/
|
|
3002
3138
|
layoutArrange?: LayoutArrange;
|
|
3139
|
+
/**
|
|
3140
|
+
* 自定义单元格对应节点坐标/宽高
|
|
3141
|
+
*/
|
|
3003
3142
|
layoutCoordinate?: LayoutCoordinate;
|
|
3143
|
+
/**
|
|
3144
|
+
* 自定义数据坐标, 动态修改单元格数值
|
|
3145
|
+
*/
|
|
3004
3146
|
layoutDataPosition?: LayoutDataPosition;
|
|
3147
|
+
/**
|
|
3148
|
+
* 自定义序号节点
|
|
3149
|
+
*/
|
|
3005
3150
|
layoutSeriesNumberNodes?: LayoutSeriesNumberNodes;
|
|
3151
|
+
/** *********** 数据集 **************** */
|
|
3152
|
+
/**
|
|
3153
|
+
* 自定义数据集
|
|
3154
|
+
*/
|
|
3155
|
+
dataSet?: (spreadsheet: SpreadSheet_2) => BaseDataSet_2;
|
|
3006
3156
|
}
|
|
3007
3157
|
|
|
3008
3158
|
declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | SeriesNumberCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
|
|
@@ -3025,9 +3175,12 @@ declare enum S2Event {
|
|
|
3025
3175
|
ROW_CELL_MOUSE_DOWN = "row-cell:mouse-down",
|
|
3026
3176
|
ROW_CELL_MOUSE_UP = "row-cell:mouse-up",
|
|
3027
3177
|
ROW_CELL_MOUSE_MOVE = "row-cell:mouse-move",
|
|
3028
|
-
ROW_CELL_COLLAPSE_TREE_ROWS = "row-cell:collapsed-tree-rows",
|
|
3029
3178
|
ROW_CELL_SCROLL = "row-cell:scroll",
|
|
3030
3179
|
ROW_CELL_BRUSH_SELECTION = "row-cell:brush-selection",
|
|
3180
|
+
ROW_CELL_COLLAPSED = "row-cell:collapsed",
|
|
3181
|
+
ROW_CELL_ALL_COLLAPSED = "row-cell:all-collapsed",
|
|
3182
|
+
ROW_CELL_COLLAPSED__PRIVATE = "row-cell:collapsed__private",
|
|
3183
|
+
ROW_CELL_ALL_COLLAPSED__PRIVATE = "row-cell:all-collapsed__private",
|
|
3031
3184
|
/** ================ Col Cell ================ */
|
|
3032
3185
|
COL_CELL_HOVER = "col-cell:hover",
|
|
3033
3186
|
COL_CELL_CLICK = "col-cell:click",
|
|
@@ -3037,6 +3190,8 @@ declare enum S2Event {
|
|
|
3037
3190
|
COL_CELL_MOUSE_UP = "col-cell:mouse-up",
|
|
3038
3191
|
COL_CELL_MOUSE_MOVE = "col-cell:mouse-move",
|
|
3039
3192
|
COL_CELL_BRUSH_SELECTION = "col-cell:brush-selection",
|
|
3193
|
+
COL_CELL_EXPANDED = "col-cell:expanded",
|
|
3194
|
+
COL_CELL_HIDDEN = "col-cell:hidden",
|
|
3040
3195
|
/** ================ Data Cell ================ */
|
|
3041
3196
|
DATA_CELL_HOVER = "data-cell:hover",
|
|
3042
3197
|
DATA_CELL_CLICK = "data-cell:click",
|
|
@@ -3045,7 +3200,6 @@ declare enum S2Event {
|
|
|
3045
3200
|
DATA_CELL_MOUSE_UP = "data-cell:mouse-up",
|
|
3046
3201
|
DATA_CELL_MOUSE_DOWN = "data-cell:mouse-down",
|
|
3047
3202
|
DATA_CELL_MOUSE_MOVE = "data-cell:mouse-move",
|
|
3048
|
-
DATA_CELL_TREND_ICON_CLICK = "data-cell:trend-icon-click",
|
|
3049
3203
|
DATA_CELL_BRUSH_SELECTION = "data-cell:brush-selection",
|
|
3050
3204
|
DATA_CELL_SELECT_MOVE = "data-cell:select-move",
|
|
3051
3205
|
/** ================ Corner Cell ================ */
|
|
@@ -3076,11 +3230,7 @@ declare enum S2Event {
|
|
|
3076
3230
|
LAYOUT_CELL_SCROLL = "layout:cell-scroll",
|
|
3077
3231
|
LAYOUT_CELL_MOUNTED = "layout:cell-mounted",
|
|
3078
3232
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
3079
|
-
|
|
3080
|
-
LAYOUT_AFTER_COLLAPSE_ROWS = "layout:after-collapsed-rows",
|
|
3081
|
-
LAYOUT_TREE_ROWS_COLLAPSE_ALL = "layout:toggle-collapse-all",
|
|
3082
|
-
LAYOUT_COLS_EXPANDED = "layout:table-col-expanded",
|
|
3083
|
-
LAYOUT_COLS_HIDDEN = "layout:table-col-hidden",
|
|
3233
|
+
LAYOUT_AFTER_REAL_DATA_CELL_RENDER = "layout:after-real-data-cell-render",
|
|
3084
3234
|
LAYOUT_AFTER_RENDER = "layout:after-render",
|
|
3085
3235
|
LAYOUT_BEFORE_RENDER = "layout:before-render",
|
|
3086
3236
|
LAYOUT_DESTROY = "layout:destroy",
|
|
@@ -3121,41 +3271,95 @@ declare interface S2EventHandler {
|
|
|
3121
3271
|
|
|
3122
3272
|
declare type S2MountContainer_2 = string | Element;
|
|
3123
3273
|
|
|
3124
|
-
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>,
|
|
3125
|
-
|
|
3274
|
+
declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>, S2PivotSheetOptions {
|
|
3275
|
+
frozen?: S2PivotSheetFrozenOptions & S2TableSheetFrozenOptions;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
declare interface S2PivotSheetFrozenOptions {
|
|
3279
|
+
/**
|
|
3280
|
+
* 是否冻结行头 (含角头区域, 透视表有效)
|
|
3281
|
+
*/
|
|
3282
|
+
rowHeader?: boolean;
|
|
3126
3283
|
}
|
|
3127
3284
|
|
|
3128
3285
|
declare interface S2PivotSheetOptions {
|
|
3286
|
+
/**
|
|
3287
|
+
* 行头布局类型, grid: 平铺网格 | tree: 树状结构
|
|
3288
|
+
*/
|
|
3289
|
+
hierarchyType?: 'grid' | 'tree';
|
|
3290
|
+
/**
|
|
3291
|
+
* 小计/总计配置
|
|
3292
|
+
*/
|
|
3293
|
+
totals?: Totals | null;
|
|
3294
|
+
/**
|
|
3295
|
+
* 合并单元格配置
|
|
3296
|
+
*/
|
|
3297
|
+
mergedCellsInfo?: MergedCellInfo[][];
|
|
3298
|
+
/**
|
|
3299
|
+
* 自定义角头文本
|
|
3300
|
+
*/
|
|
3301
|
+
cornerText?: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* 自定义数值虚拟字段文本, 默认 [数值]
|
|
3304
|
+
*/
|
|
3305
|
+
cornerExtraFieldText?: string;
|
|
3129
3306
|
}
|
|
3130
3307
|
|
|
3131
3308
|
declare interface S2RenderOptions_2 {
|
|
3309
|
+
/**
|
|
3310
|
+
* 是否重新加载数据
|
|
3311
|
+
*/
|
|
3132
3312
|
reloadData?: boolean;
|
|
3313
|
+
/**
|
|
3314
|
+
* 是否重新生成数据集
|
|
3315
|
+
*/
|
|
3133
3316
|
reBuildDataSet?: boolean;
|
|
3317
|
+
/**
|
|
3318
|
+
* 是否重新生成列头隐藏信息
|
|
3319
|
+
*/
|
|
3134
3320
|
reBuildHiddenColumnsDetail?: boolean;
|
|
3135
3321
|
}
|
|
3136
3322
|
|
|
3137
3323
|
declare interface S2Style {
|
|
3324
|
+
/**
|
|
3325
|
+
* 布局类型
|
|
3326
|
+
*/
|
|
3138
3327
|
layoutWidthType?: LayoutWidthType;
|
|
3139
|
-
showTreeLeafNodeAlignDot?: boolean;
|
|
3140
|
-
treeRowsWidth?: number;
|
|
3141
|
-
hierarchyCollapse?: boolean;
|
|
3142
|
-
rowExpandDepth?: number | null;
|
|
3143
|
-
collapsedRows?: Record<string, boolean> | null;
|
|
3144
|
-
collapsedCols?: Record<string, boolean>;
|
|
3145
|
-
cellCfg?: CellCfg | null | undefined;
|
|
3146
|
-
colCfg?: ColCfg | null | undefined;
|
|
3147
|
-
rowCfg?: RowCfg | null | undefined;
|
|
3148
3328
|
/**
|
|
3149
|
-
*
|
|
3329
|
+
* 数值单元格配置
|
|
3330
|
+
*/
|
|
3331
|
+
dataCell?: DataCellStyle | null;
|
|
3332
|
+
/**
|
|
3333
|
+
* 列头单元格配置
|
|
3334
|
+
*/
|
|
3335
|
+
colCell?: ColCellStyle | null;
|
|
3336
|
+
/**
|
|
3337
|
+
* 行头单元格配置
|
|
3338
|
+
*/
|
|
3339
|
+
rowCell?: RowCellStyle | null;
|
|
3340
|
+
/**
|
|
3341
|
+
* @deprecated 设备类型 use options.device instead
|
|
3150
3342
|
*/
|
|
3151
3343
|
device?: DeviceType;
|
|
3152
3344
|
}
|
|
3153
3345
|
|
|
3154
|
-
declare interface
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3346
|
+
declare interface S2TableSheetFrozenOptions {
|
|
3347
|
+
/**
|
|
3348
|
+
* 行头冻结数量 (明细表有效)
|
|
3349
|
+
*/
|
|
3350
|
+
rowCount?: number;
|
|
3351
|
+
/**
|
|
3352
|
+
* 列头冻结数量 (明细表有效)
|
|
3353
|
+
*/
|
|
3354
|
+
colCount?: number;
|
|
3355
|
+
/**
|
|
3356
|
+
* 行尾冻结数量 (明细表有效)
|
|
3357
|
+
*/
|
|
3358
|
+
trailingRowCount?: number;
|
|
3359
|
+
/**
|
|
3360
|
+
* 列尾冻结数量 (明细表有效)
|
|
3361
|
+
*/
|
|
3362
|
+
trailingColCount?: number;
|
|
3159
3363
|
}
|
|
3160
3364
|
|
|
3161
3365
|
declare interface S2Theme extends CellThemes {
|
|
@@ -3309,7 +3513,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
3309
3513
|
protected offset(): void;
|
|
3310
3514
|
}
|
|
3311
3515
|
|
|
3312
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "
|
|
3516
|
+
export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">, {
|
|
3313
3517
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3314
3518
|
sheetType: ComputedRef<DefineComponent< {
|
|
3315
3519
|
sheetType: PropType<SheetType>;
|
|
@@ -3353,11 +3557,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3353
3557
|
rowCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3354
3558
|
rowCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3355
3559
|
rowCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
isCollapsed: boolean;
|
|
3359
|
-
node: Node_2_2;
|
|
3360
|
-
}) => void;
|
|
3560
|
+
rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
|
|
3561
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
3361
3562
|
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3362
3563
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3363
3564
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3366,6 +3567,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3366
3567
|
colCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3367
3568
|
colCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3368
3569
|
colCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3570
|
+
colCellExpanded: (node: Node_2_2) => void;
|
|
3571
|
+
colCellHidden: (data: {
|
|
3572
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3573
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3574
|
+
}) => void;
|
|
3369
3575
|
dataCellHover: (data: TargetCellInfo_2) => void;
|
|
3370
3576
|
dataCellClick: (data: TargetCellInfo_2) => void;
|
|
3371
3577
|
dataCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3373,7 +3579,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3373
3579
|
dataCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3374
3580
|
dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3375
3581
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3376
|
-
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3377
3582
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3378
3583
|
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3379
3584
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3391,7 +3596,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3391
3596
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3392
3597
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3393
3598
|
rangeSort: (params: SortParams_2) => void;
|
|
3394
|
-
rangeSorted: (event:
|
|
3599
|
+
rangeSorted: (event: FederatedPointerEvent) => void;
|
|
3395
3600
|
rangeFilter: (data: {
|
|
3396
3601
|
filterKey: string;
|
|
3397
3602
|
filteredValues: string[];
|
|
@@ -3401,14 +3606,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
|
3401
3606
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3402
3607
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3403
3608
|
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3404
|
-
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3405
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3406
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
3407
|
-
layoutColsExpanded: (node: Node_2_2) => void;
|
|
3408
|
-
layoutColsHidden: (data: {
|
|
3409
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3410
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3411
|
-
}) => void;
|
|
3412
3609
|
beforeRender: () => void;
|
|
3413
3610
|
afterRender: () => void;
|
|
3414
3611
|
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
@@ -3435,26 +3632,31 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3435
3632
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3436
3633
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3437
3634
|
copied: (copyData: string) => void;
|
|
3438
|
-
actionIconHover: (event:
|
|
3439
|
-
actionIconHoverOff: (event:
|
|
3440
|
-
actionIconClick: (event:
|
|
3441
|
-
contextMenu: (event:
|
|
3442
|
-
click: (event:
|
|
3443
|
-
hover: (event:
|
|
3444
|
-
doubleClick: (event:
|
|
3445
|
-
mouseHover: (event:
|
|
3635
|
+
actionIconHover: (event: FederatedPointerEvent) => void;
|
|
3636
|
+
actionIconHoverOff: (event: FederatedPointerEvent) => void;
|
|
3637
|
+
actionIconClick: (event: FederatedPointerEvent) => void;
|
|
3638
|
+
contextMenu: (event: FederatedPointerEvent) => void;
|
|
3639
|
+
click: (event: FederatedPointerEvent) => void;
|
|
3640
|
+
hover: (event: FederatedPointerEvent) => void;
|
|
3641
|
+
doubleClick: (event: FederatedPointerEvent) => void;
|
|
3642
|
+
mouseHover: (event: FederatedPointerEvent) => void;
|
|
3446
3643
|
mouseUp: (event: MouseEvent) => void;
|
|
3447
3644
|
mouseDown: (event: MouseEvent) => void;
|
|
3448
3645
|
mouseMove: (event: MouseEvent) => void;
|
|
3449
3646
|
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3450
3647
|
reset: (event: KeyboardEvent) => void;
|
|
3451
3648
|
linkFieldJump: (data: {
|
|
3452
|
-
|
|
3649
|
+
field: string;
|
|
3453
3650
|
record: RawData_2;
|
|
3454
3651
|
}) => void;
|
|
3455
3652
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3456
|
-
|
|
3457
|
-
|
|
3653
|
+
layoutAfterRealDataCellRender: (options: {
|
|
3654
|
+
add: [number, number][];
|
|
3655
|
+
remove: [number, number][];
|
|
3656
|
+
spreadsheet: SpreadSheet_2;
|
|
3657
|
+
}) => void;
|
|
3658
|
+
rowCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
3659
|
+
colCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
3458
3660
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
3459
3661
|
sheetType: PropType<SheetType>;
|
|
3460
3662
|
dataCfg: PropType<S2DataConfig_2>;
|
|
@@ -3492,11 +3694,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3492
3694
|
onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3493
3695
|
onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3494
3696
|
onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
isCollapsed: boolean;
|
|
3498
|
-
node: Node_2_2;
|
|
3499
|
-
}) => any;
|
|
3697
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
|
|
3698
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
3500
3699
|
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3501
3700
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3502
3701
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3505,6 +3704,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3505
3704
|
onColCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3506
3705
|
onColCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3507
3706
|
onColCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3707
|
+
onColCellExpanded?: (node: Node_2_2) => any;
|
|
3708
|
+
onColCellHidden?: (data: {
|
|
3709
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3710
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3711
|
+
}) => any;
|
|
3508
3712
|
onDataCellHover?: (data: TargetCellInfo_2) => any;
|
|
3509
3713
|
onDataCellClick?: (data: TargetCellInfo_2) => any;
|
|
3510
3714
|
onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3512,7 +3716,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3512
3716
|
onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3513
3717
|
onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3514
3718
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3515
|
-
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3516
3719
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3517
3720
|
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3518
3721
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3530,7 +3733,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3530
3733
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3531
3734
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3532
3735
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3533
|
-
onRangeSorted?: (event:
|
|
3736
|
+
onRangeSorted?: (event: FederatedPointerEvent) => any;
|
|
3534
3737
|
onRangeFilter?: (data: {
|
|
3535
3738
|
filterKey: string;
|
|
3536
3739
|
filteredValues: string[];
|
|
@@ -3540,14 +3743,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
|
3540
3743
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3541
3744
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3542
3745
|
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3543
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3544
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3545
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
3546
|
-
onLayoutColsExpanded?: (node: Node_2_2) => any;
|
|
3547
|
-
onLayoutColsHidden?: (data: {
|
|
3548
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3549
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3550
|
-
}) => any;
|
|
3551
3746
|
onBeforeRender?: () => any;
|
|
3552
3747
|
onAfterRender?: () => any;
|
|
3553
3748
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
@@ -3574,26 +3769,31 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3574
3769
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3575
3770
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3576
3771
|
onCopied?: (copyData: string) => any;
|
|
3577
|
-
onActionIconHover?: (event:
|
|
3578
|
-
onActionIconHoverOff?: (event:
|
|
3579
|
-
onActionIconClick?: (event:
|
|
3580
|
-
onContextMenu?: (event:
|
|
3581
|
-
onClick?: (event:
|
|
3582
|
-
onHover?: (event:
|
|
3583
|
-
onDoubleClick?: (event:
|
|
3584
|
-
onMouseHover?: (event:
|
|
3772
|
+
onActionIconHover?: (event: FederatedPointerEvent) => any;
|
|
3773
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
|
|
3774
|
+
onActionIconClick?: (event: FederatedPointerEvent) => any;
|
|
3775
|
+
onContextMenu?: (event: FederatedPointerEvent) => any;
|
|
3776
|
+
onClick?: (event: FederatedPointerEvent) => any;
|
|
3777
|
+
onHover?: (event: FederatedPointerEvent) => any;
|
|
3778
|
+
onDoubleClick?: (event: FederatedPointerEvent) => any;
|
|
3779
|
+
onMouseHover?: (event: FederatedPointerEvent) => any;
|
|
3585
3780
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3586
3781
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3587
3782
|
onMouseMove?: (event: MouseEvent) => any;
|
|
3588
3783
|
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
3589
3784
|
onReset?: (event: KeyboardEvent) => any;
|
|
3590
3785
|
onLinkFieldJump?: (data: {
|
|
3591
|
-
|
|
3786
|
+
field: string;
|
|
3592
3787
|
record: RawData_2;
|
|
3593
3788
|
}) => any;
|
|
3594
3789
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3595
|
-
|
|
3596
|
-
|
|
3790
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
3791
|
+
add: [number, number][];
|
|
3792
|
+
remove: [number, number][];
|
|
3793
|
+
spreadsheet: SpreadSheet_2;
|
|
3794
|
+
}) => any;
|
|
3795
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
3796
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
3597
3797
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3598
3798
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3599
3799
|
}, {
|
|
@@ -3608,7 +3808,7 @@ showPagination: boolean | {
|
|
|
3608
3808
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3609
3809
|
onChange?: (current: number) => void;
|
|
3610
3810
|
};
|
|
3611
|
-
}> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "
|
|
3811
|
+
}> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">, {
|
|
3612
3812
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3613
3813
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3614
3814
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
@@ -3621,11 +3821,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3621
3821
|
rowCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3622
3822
|
rowCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3623
3823
|
rowCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
isCollapsed: boolean;
|
|
3627
|
-
node: Node_2_2;
|
|
3628
|
-
}) => void;
|
|
3824
|
+
rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
|
|
3825
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
3629
3826
|
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3630
3827
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3631
3828
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3634,6 +3831,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3634
3831
|
colCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3635
3832
|
colCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3636
3833
|
colCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3834
|
+
colCellExpanded: (node: Node_2_2) => void;
|
|
3835
|
+
colCellHidden: (data: {
|
|
3836
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3837
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3838
|
+
}) => void;
|
|
3637
3839
|
dataCellHover: (data: TargetCellInfo_2) => void;
|
|
3638
3840
|
dataCellClick: (data: TargetCellInfo_2) => void;
|
|
3639
3841
|
dataCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3641,7 +3843,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3641
3843
|
dataCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3642
3844
|
dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3643
3845
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3644
|
-
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3645
3846
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3646
3847
|
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3647
3848
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3659,7 +3860,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3659
3860
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3660
3861
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3661
3862
|
rangeSort: (params: SortParams_2) => void;
|
|
3662
|
-
rangeSorted: (event:
|
|
3863
|
+
rangeSorted: (event: FederatedPointerEvent) => void;
|
|
3663
3864
|
rangeFilter: (data: {
|
|
3664
3865
|
filterKey: string;
|
|
3665
3866
|
filteredValues: string[];
|
|
@@ -3669,14 +3870,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
|
3669
3870
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3670
3871
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3671
3872
|
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3672
|
-
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3673
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3674
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
3675
|
-
layoutColsExpanded: (node: Node_2_2) => void;
|
|
3676
|
-
layoutColsHidden: (data: {
|
|
3677
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3678
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3679
|
-
}) => void;
|
|
3680
3873
|
beforeRender: () => void;
|
|
3681
3874
|
afterRender: () => void;
|
|
3682
3875
|
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
@@ -3703,27 +3896,32 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3703
3896
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3704
3897
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3705
3898
|
copied: (copyData: string) => void;
|
|
3706
|
-
actionIconHover: (event:
|
|
3707
|
-
actionIconHoverOff: (event:
|
|
3708
|
-
actionIconClick: (event:
|
|
3709
|
-
contextMenu: (event:
|
|
3710
|
-
click: (event:
|
|
3711
|
-
hover: (event:
|
|
3712
|
-
doubleClick: (event:
|
|
3713
|
-
mouseHover: (event:
|
|
3899
|
+
actionIconHover: (event: FederatedPointerEvent) => void;
|
|
3900
|
+
actionIconHoverOff: (event: FederatedPointerEvent) => void;
|
|
3901
|
+
actionIconClick: (event: FederatedPointerEvent) => void;
|
|
3902
|
+
contextMenu: (event: FederatedPointerEvent) => void;
|
|
3903
|
+
click: (event: FederatedPointerEvent) => void;
|
|
3904
|
+
hover: (event: FederatedPointerEvent) => void;
|
|
3905
|
+
doubleClick: (event: FederatedPointerEvent) => void;
|
|
3906
|
+
mouseHover: (event: FederatedPointerEvent) => void;
|
|
3714
3907
|
mouseUp: (event: MouseEvent) => void;
|
|
3715
3908
|
mouseDown: (event: MouseEvent) => void;
|
|
3716
3909
|
mouseMove: (event: MouseEvent) => void;
|
|
3717
3910
|
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3718
3911
|
reset: (event: KeyboardEvent) => void;
|
|
3719
3912
|
linkFieldJump: (data: {
|
|
3720
|
-
|
|
3913
|
+
field: string;
|
|
3721
3914
|
record: RawData_2;
|
|
3722
3915
|
}) => void;
|
|
3723
3916
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3917
|
+
layoutAfterRealDataCellRender: (options: {
|
|
3918
|
+
add: [number, number][];
|
|
3919
|
+
remove: [number, number][];
|
|
3920
|
+
spreadsheet: SpreadSheet_2;
|
|
3921
|
+
}) => void;
|
|
3922
|
+
rowCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
3923
|
+
colCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
3924
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">>> & {
|
|
3727
3925
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3728
3926
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3729
3927
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3732,11 +3930,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3732
3930
|
onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3733
3931
|
onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3734
3932
|
onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
isCollapsed: boolean;
|
|
3738
|
-
node: Node_2_2;
|
|
3739
|
-
}) => any;
|
|
3933
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
|
|
3934
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
3740
3935
|
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3741
3936
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3742
3937
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3745,6 +3940,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3745
3940
|
onColCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3746
3941
|
onColCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3747
3942
|
onColCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3943
|
+
onColCellExpanded?: (node: Node_2_2) => any;
|
|
3944
|
+
onColCellHidden?: (data: {
|
|
3945
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3946
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3947
|
+
}) => any;
|
|
3748
3948
|
onDataCellHover?: (data: TargetCellInfo_2) => any;
|
|
3749
3949
|
onDataCellClick?: (data: TargetCellInfo_2) => any;
|
|
3750
3950
|
onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3752,7 +3952,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3752
3952
|
onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3753
3953
|
onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3754
3954
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3755
|
-
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3756
3955
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3757
3956
|
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3758
3957
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3770,7 +3969,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3770
3969
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3771
3970
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3772
3971
|
onRangeSort?: (params: SortParams_2) => any;
|
|
3773
|
-
onRangeSorted?: (event:
|
|
3972
|
+
onRangeSorted?: (event: FederatedPointerEvent) => any;
|
|
3774
3973
|
onRangeFilter?: (data: {
|
|
3775
3974
|
filterKey: string;
|
|
3776
3975
|
filteredValues: string[];
|
|
@@ -3780,14 +3979,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
|
3780
3979
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
3781
3980
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3782
3981
|
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
3783
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3784
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
3785
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
3786
|
-
onLayoutColsExpanded?: (node: Node_2_2) => any;
|
|
3787
|
-
onLayoutColsHidden?: (data: {
|
|
3788
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3789
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3790
|
-
}) => any;
|
|
3791
3982
|
onBeforeRender?: () => any;
|
|
3792
3983
|
onAfterRender?: () => any;
|
|
3793
3984
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
@@ -3814,26 +4005,31 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3814
4005
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
3815
4006
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
3816
4007
|
onCopied?: (copyData: string) => any;
|
|
3817
|
-
onActionIconHover?: (event:
|
|
3818
|
-
onActionIconHoverOff?: (event:
|
|
3819
|
-
onActionIconClick?: (event:
|
|
3820
|
-
onContextMenu?: (event:
|
|
3821
|
-
onClick?: (event:
|
|
3822
|
-
onHover?: (event:
|
|
3823
|
-
onDoubleClick?: (event:
|
|
3824
|
-
onMouseHover?: (event:
|
|
4008
|
+
onActionIconHover?: (event: FederatedPointerEvent) => any;
|
|
4009
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
|
|
4010
|
+
onActionIconClick?: (event: FederatedPointerEvent) => any;
|
|
4011
|
+
onContextMenu?: (event: FederatedPointerEvent) => any;
|
|
4012
|
+
onClick?: (event: FederatedPointerEvent) => any;
|
|
4013
|
+
onHover?: (event: FederatedPointerEvent) => any;
|
|
4014
|
+
onDoubleClick?: (event: FederatedPointerEvent) => any;
|
|
4015
|
+
onMouseHover?: (event: FederatedPointerEvent) => any;
|
|
3825
4016
|
onMouseUp?: (event: MouseEvent) => any;
|
|
3826
4017
|
onMouseDown?: (event: MouseEvent) => any;
|
|
3827
4018
|
onMouseMove?: (event: MouseEvent) => any;
|
|
3828
4019
|
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
3829
4020
|
onReset?: (event: KeyboardEvent) => any;
|
|
3830
4021
|
onLinkFieldJump?: (data: {
|
|
3831
|
-
|
|
4022
|
+
field: string;
|
|
3832
4023
|
record: RawData_2;
|
|
3833
4024
|
}) => any;
|
|
3834
4025
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3835
|
-
|
|
3836
|
-
|
|
4026
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
4027
|
+
add: [number, number][];
|
|
4028
|
+
remove: [number, number][];
|
|
4029
|
+
spreadsheet: SpreadSheet_2;
|
|
4030
|
+
}) => any;
|
|
4031
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
4032
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
3837
4033
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
3838
4034
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3839
4035
|
}, {}>>;
|
|
@@ -3848,11 +4044,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3848
4044
|
rowCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3849
4045
|
rowCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3850
4046
|
rowCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
isCollapsed: boolean;
|
|
3854
|
-
node: Node_2_2;
|
|
3855
|
-
}) => void;
|
|
4047
|
+
rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
|
|
4048
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
3856
4049
|
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3857
4050
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3858
4051
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3861,6 +4054,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3861
4054
|
colCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3862
4055
|
colCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3863
4056
|
colCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4057
|
+
colCellExpanded: (node: Node_2_2) => void;
|
|
4058
|
+
colCellHidden: (data: {
|
|
4059
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4060
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4061
|
+
}) => void;
|
|
3864
4062
|
dataCellHover: (data: TargetCellInfo_2) => void;
|
|
3865
4063
|
dataCellClick: (data: TargetCellInfo_2) => void;
|
|
3866
4064
|
dataCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3868,7 +4066,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
3868
4066
|
dataCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
3869
4067
|
dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
3870
4068
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
3871
|
-
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
3872
4069
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
3873
4070
|
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
3874
4071
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -3886,7 +4083,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
3886
4083
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
3887
4084
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
3888
4085
|
rangeSort: (params: SortParams_2) => void;
|
|
3889
|
-
rangeSorted: (event:
|
|
4086
|
+
rangeSorted: (event: FederatedPointerEvent) => void;
|
|
3890
4087
|
rangeFilter: (data: {
|
|
3891
4088
|
filterKey: string;
|
|
3892
4089
|
filteredValues: string[];
|
|
@@ -3896,14 +4093,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
|
3896
4093
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
3897
4094
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
3898
4095
|
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
3899
|
-
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3900
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
3901
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
3902
|
-
layoutColsExpanded: (node: Node_2_2) => void;
|
|
3903
|
-
layoutColsHidden: (data: {
|
|
3904
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
3905
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
3906
|
-
}) => void;
|
|
3907
4096
|
beforeRender: () => void;
|
|
3908
4097
|
afterRender: () => void;
|
|
3909
4098
|
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
@@ -3930,27 +4119,32 @@ resizeInfo?: ResizeInfo_2;
|
|
|
3930
4119
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
3931
4120
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
3932
4121
|
copied: (copyData: string) => void;
|
|
3933
|
-
actionIconHover: (event:
|
|
3934
|
-
actionIconHoverOff: (event:
|
|
3935
|
-
actionIconClick: (event:
|
|
3936
|
-
contextMenu: (event:
|
|
3937
|
-
click: (event:
|
|
3938
|
-
hover: (event:
|
|
3939
|
-
doubleClick: (event:
|
|
3940
|
-
mouseHover: (event:
|
|
4122
|
+
actionIconHover: (event: FederatedPointerEvent) => void;
|
|
4123
|
+
actionIconHoverOff: (event: FederatedPointerEvent) => void;
|
|
4124
|
+
actionIconClick: (event: FederatedPointerEvent) => void;
|
|
4125
|
+
contextMenu: (event: FederatedPointerEvent) => void;
|
|
4126
|
+
click: (event: FederatedPointerEvent) => void;
|
|
4127
|
+
hover: (event: FederatedPointerEvent) => void;
|
|
4128
|
+
doubleClick: (event: FederatedPointerEvent) => void;
|
|
4129
|
+
mouseHover: (event: FederatedPointerEvent) => void;
|
|
3941
4130
|
mouseUp: (event: MouseEvent) => void;
|
|
3942
4131
|
mouseDown: (event: MouseEvent) => void;
|
|
3943
4132
|
mouseMove: (event: MouseEvent) => void;
|
|
3944
4133
|
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
3945
4134
|
reset: (event: KeyboardEvent) => void;
|
|
3946
4135
|
linkFieldJump: (data: {
|
|
3947
|
-
|
|
4136
|
+
field: string;
|
|
3948
4137
|
record: RawData_2;
|
|
3949
4138
|
}) => void;
|
|
3950
4139
|
scroll: (position: CellScrollPosition_2) => void;
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
4140
|
+
layoutAfterRealDataCellRender: (options: {
|
|
4141
|
+
add: [number, number][];
|
|
4142
|
+
remove: [number, number][];
|
|
4143
|
+
spreadsheet: SpreadSheet_2;
|
|
4144
|
+
}) => void;
|
|
4145
|
+
rowCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
4146
|
+
colCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
4147
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">>> & {
|
|
3954
4148
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3955
4149
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3956
4150
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3959,11 +4153,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3959
4153
|
onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3960
4154
|
onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3961
4155
|
onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
isCollapsed: boolean;
|
|
3965
|
-
node: Node_2_2;
|
|
3966
|
-
}) => any;
|
|
4156
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
|
|
4157
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
3967
4158
|
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3968
4159
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3969
4160
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3972,6 +4163,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3972
4163
|
onColCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3973
4164
|
onColCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3974
4165
|
onColCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4166
|
+
onColCellExpanded?: (node: Node_2_2) => any;
|
|
4167
|
+
onColCellHidden?: (data: {
|
|
4168
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4169
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4170
|
+
}) => any;
|
|
3975
4171
|
onDataCellHover?: (data: TargetCellInfo_2) => any;
|
|
3976
4172
|
onDataCellClick?: (data: TargetCellInfo_2) => any;
|
|
3977
4173
|
onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3979,7 +4175,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
3979
4175
|
onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
3980
4176
|
onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3981
4177
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3982
|
-
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
3983
4178
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
3984
4179
|
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
3985
4180
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -3997,7 +4192,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
3997
4192
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
3998
4193
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
3999
4194
|
onRangeSort?: (params: SortParams_2) => any;
|
|
4000
|
-
onRangeSorted?: (event:
|
|
4195
|
+
onRangeSorted?: (event: FederatedPointerEvent) => any;
|
|
4001
4196
|
onRangeFilter?: (data: {
|
|
4002
4197
|
filterKey: string;
|
|
4003
4198
|
filteredValues: string[];
|
|
@@ -4007,14 +4202,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
|
4007
4202
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
4008
4203
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4009
4204
|
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
4010
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4011
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4012
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
4013
|
-
onLayoutColsExpanded?: (node: Node_2_2) => any;
|
|
4014
|
-
onLayoutColsHidden?: (data: {
|
|
4015
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4016
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4017
|
-
}) => any;
|
|
4018
4205
|
onBeforeRender?: () => any;
|
|
4019
4206
|
onAfterRender?: () => any;
|
|
4020
4207
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
@@ -4041,26 +4228,31 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4041
4228
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
4042
4229
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
4043
4230
|
onCopied?: (copyData: string) => any;
|
|
4044
|
-
onActionIconHover?: (event:
|
|
4045
|
-
onActionIconHoverOff?: (event:
|
|
4046
|
-
onActionIconClick?: (event:
|
|
4047
|
-
onContextMenu?: (event:
|
|
4048
|
-
onClick?: (event:
|
|
4049
|
-
onHover?: (event:
|
|
4050
|
-
onDoubleClick?: (event:
|
|
4051
|
-
onMouseHover?: (event:
|
|
4231
|
+
onActionIconHover?: (event: FederatedPointerEvent) => any;
|
|
4232
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
|
|
4233
|
+
onActionIconClick?: (event: FederatedPointerEvent) => any;
|
|
4234
|
+
onContextMenu?: (event: FederatedPointerEvent) => any;
|
|
4235
|
+
onClick?: (event: FederatedPointerEvent) => any;
|
|
4236
|
+
onHover?: (event: FederatedPointerEvent) => any;
|
|
4237
|
+
onDoubleClick?: (event: FederatedPointerEvent) => any;
|
|
4238
|
+
onMouseHover?: (event: FederatedPointerEvent) => any;
|
|
4052
4239
|
onMouseUp?: (event: MouseEvent) => any;
|
|
4053
4240
|
onMouseDown?: (event: MouseEvent) => any;
|
|
4054
4241
|
onMouseMove?: (event: MouseEvent) => any;
|
|
4055
4242
|
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
4056
4243
|
onReset?: (event: KeyboardEvent) => any;
|
|
4057
4244
|
onLinkFieldJump?: (data: {
|
|
4058
|
-
|
|
4245
|
+
field: string;
|
|
4059
4246
|
record: RawData_2;
|
|
4060
4247
|
}) => any;
|
|
4061
4248
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4062
|
-
|
|
4063
|
-
|
|
4249
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
4250
|
+
add: [number, number][];
|
|
4251
|
+
remove: [number, number][];
|
|
4252
|
+
spreadsheet: SpreadSheet_2;
|
|
4253
|
+
}) => any;
|
|
4254
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
4255
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
4064
4256
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
4065
4257
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4066
4258
|
}, {}>;
|
|
@@ -4193,11 +4385,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4193
4385
|
* Check if the value is in the columns
|
|
4194
4386
|
*/
|
|
4195
4387
|
abstract isValueInCols(): boolean;
|
|
4196
|
-
/**
|
|
4197
|
-
* 避免每次新增、变更dataSet和options时,生成SpreadSheetFacetCfg
|
|
4198
|
-
* 要多出定义匹配的问题,直接按需&部分拆分options/dataSet合并为facetCfg
|
|
4199
|
-
*/
|
|
4200
|
-
protected abstract getFacetCfgFromDataSetAndOptions(): SpreadSheetFacetCfg;
|
|
4201
4388
|
protected abstract buildFacet(): void;
|
|
4202
4389
|
abstract clearDrillDownData(rowNodeId?: string, preventRender?: boolean): void;
|
|
4203
4390
|
abstract handleGroupSort(event: FederatedPointerEvent, meta: Node_2_2): void;
|
|
@@ -4315,12 +4502,6 @@ declare abstract class SpreadSheet_2 extends EE {
|
|
|
4315
4502
|
getMenuDefaultSelectedKeys(nodeId: string): string[];
|
|
4316
4503
|
}
|
|
4317
4504
|
|
|
4318
|
-
declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, S2Style {
|
|
4319
|
-
spreadsheet: SpreadSheet_2;
|
|
4320
|
-
dataSet: BaseDataSet_2;
|
|
4321
|
-
meta?: Meta[];
|
|
4322
|
-
}
|
|
4323
|
-
|
|
4324
4505
|
declare type StateShapeLayer = 'interactiveBgShape' | 'interactiveBorderShape';
|
|
4325
4506
|
|
|
4326
4507
|
/**
|
|
@@ -4403,7 +4584,7 @@ declare class TableSeriesCell extends TableDataCell {
|
|
|
4403
4584
|
protected getTextStyle(): TextTheme;
|
|
4404
4585
|
}
|
|
4405
4586
|
|
|
4406
|
-
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "
|
|
4587
|
+
export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">, {
|
|
4407
4588
|
s2Ref: ShallowRef<SheetExpose>;
|
|
4408
4589
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4409
4590
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
|
|
@@ -4416,11 +4597,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
4416
4597
|
rowCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
4417
4598
|
rowCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
4418
4599
|
rowCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
isCollapsed: boolean;
|
|
4422
|
-
node: Node_2_2;
|
|
4423
|
-
}) => void;
|
|
4600
|
+
rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
|
|
4601
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
4424
4602
|
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
4425
4603
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
4426
4604
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4429,6 +4607,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
4429
4607
|
colCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
4430
4608
|
colCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
4431
4609
|
colCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4610
|
+
colCellExpanded: (node: Node_2_2) => void;
|
|
4611
|
+
colCellHidden: (data: {
|
|
4612
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4613
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4614
|
+
}) => void;
|
|
4432
4615
|
dataCellHover: (data: TargetCellInfo_2) => void;
|
|
4433
4616
|
dataCellClick: (data: TargetCellInfo_2) => void;
|
|
4434
4617
|
dataCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4436,7 +4619,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
|
|
|
4436
4619
|
dataCellMouseDown: (data: TargetCellInfo_2) => void;
|
|
4437
4620
|
dataCellMouseUp: (data: TargetCellInfo_2) => void;
|
|
4438
4621
|
dataCellMouseMove: (data: TargetCellInfo_2) => void;
|
|
4439
|
-
dataCellTrendIconClick: (meta: ViewMeta_2) => void;
|
|
4440
4622
|
dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
|
|
4441
4623
|
dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
|
|
4442
4624
|
cornerCellHover: (data: TargetCellInfo_2) => void;
|
|
@@ -4454,7 +4636,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
|
|
|
4454
4636
|
mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
|
|
4455
4637
|
mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
|
|
4456
4638
|
rangeSort: (params: SortParams_2) => void;
|
|
4457
|
-
rangeSorted: (event:
|
|
4639
|
+
rangeSorted: (event: FederatedPointerEvent) => void;
|
|
4458
4640
|
rangeFilter: (data: {
|
|
4459
4641
|
filterKey: string;
|
|
4460
4642
|
filteredValues: string[];
|
|
@@ -4464,14 +4646,6 @@ layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
|
|
|
4464
4646
|
layoutPagination: (data: LayoutPaginationParams) => void;
|
|
4465
4647
|
layoutCellScroll: (position: CellScrollPosition_2) => void;
|
|
4466
4648
|
layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
|
|
4467
|
-
layoutCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4468
|
-
layoutAfterCollapseRows: (data: CollapsedRowsType_2) => void;
|
|
4469
|
-
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
4470
|
-
layoutColsExpanded: (node: Node_2_2) => void;
|
|
4471
|
-
layoutColsHidden: (data: {
|
|
4472
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4473
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4474
|
-
}) => void;
|
|
4475
4649
|
beforeRender: () => void;
|
|
4476
4650
|
afterRender: () => void;
|
|
4477
4651
|
mounted: (spreadsheet: SpreadSheet_2) => void;
|
|
@@ -4498,27 +4672,32 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4498
4672
|
keyBoardDown: (event: KeyboardEvent) => void;
|
|
4499
4673
|
keyBoardUp: (event: KeyboardEvent) => void;
|
|
4500
4674
|
copied: (copyData: string) => void;
|
|
4501
|
-
actionIconHover: (event:
|
|
4502
|
-
actionIconHoverOff: (event:
|
|
4503
|
-
actionIconClick: (event:
|
|
4504
|
-
contextMenu: (event:
|
|
4505
|
-
click: (event:
|
|
4506
|
-
hover: (event:
|
|
4507
|
-
doubleClick: (event:
|
|
4508
|
-
mouseHover: (event:
|
|
4675
|
+
actionIconHover: (event: FederatedPointerEvent) => void;
|
|
4676
|
+
actionIconHoverOff: (event: FederatedPointerEvent) => void;
|
|
4677
|
+
actionIconClick: (event: FederatedPointerEvent) => void;
|
|
4678
|
+
contextMenu: (event: FederatedPointerEvent) => void;
|
|
4679
|
+
click: (event: FederatedPointerEvent) => void;
|
|
4680
|
+
hover: (event: FederatedPointerEvent) => void;
|
|
4681
|
+
doubleClick: (event: FederatedPointerEvent) => void;
|
|
4682
|
+
mouseHover: (event: FederatedPointerEvent) => void;
|
|
4509
4683
|
mouseUp: (event: MouseEvent) => void;
|
|
4510
4684
|
mouseDown: (event: MouseEvent) => void;
|
|
4511
4685
|
mouseMove: (event: MouseEvent) => void;
|
|
4512
4686
|
selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
|
|
4513
4687
|
reset: (event: KeyboardEvent) => void;
|
|
4514
4688
|
linkFieldJump: (data: {
|
|
4515
|
-
|
|
4689
|
+
field: string;
|
|
4516
4690
|
record: RawData_2;
|
|
4517
4691
|
}) => void;
|
|
4518
4692
|
scroll: (position: CellScrollPosition_2) => void;
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4693
|
+
layoutAfterRealDataCellRender: (options: {
|
|
4694
|
+
add: [number, number][];
|
|
4695
|
+
remove: [number, number][];
|
|
4696
|
+
spreadsheet: SpreadSheet_2;
|
|
4697
|
+
}) => void;
|
|
4698
|
+
rowCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
4699
|
+
colCellBrushSelection: (event: FederatedPointerEvent) => void;
|
|
4700
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "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">>> & {
|
|
4522
4701
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4523
4702
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
4524
4703
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4527,11 +4706,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
4527
4706
|
onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
4528
4707
|
onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4529
4708
|
onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
isCollapsed: boolean;
|
|
4533
|
-
node: Node_2_2;
|
|
4534
|
-
}) => any;
|
|
4709
|
+
onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
|
|
4710
|
+
onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
|
|
4535
4711
|
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4536
4712
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
4537
4713
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4540,6 +4716,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
4540
4716
|
onColCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
4541
4717
|
onColCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4542
4718
|
onColCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4719
|
+
onColCellExpanded?: (node: Node_2_2) => any;
|
|
4720
|
+
onColCellHidden?: (data: {
|
|
4721
|
+
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4722
|
+
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4723
|
+
}) => any;
|
|
4543
4724
|
onDataCellHover?: (data: TargetCellInfo_2) => any;
|
|
4544
4725
|
onDataCellClick?: (data: TargetCellInfo_2) => any;
|
|
4545
4726
|
onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4547,7 +4728,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
|
|
|
4547
4728
|
onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
|
|
4548
4729
|
onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4549
4730
|
onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4550
|
-
onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
|
|
4551
4731
|
onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
|
|
4552
4732
|
onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
|
|
4553
4733
|
onCornerCellHover?: (data: TargetCellInfo_2) => any;
|
|
@@ -4565,7 +4745,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
|
|
|
4565
4745
|
onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
|
|
4566
4746
|
onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
|
|
4567
4747
|
onRangeSort?: (params: SortParams_2) => any;
|
|
4568
|
-
onRangeSorted?: (event:
|
|
4748
|
+
onRangeSorted?: (event: FederatedPointerEvent) => any;
|
|
4569
4749
|
onRangeFilter?: (data: {
|
|
4570
4750
|
filterKey: string;
|
|
4571
4751
|
filteredValues: string[];
|
|
@@ -4575,14 +4755,6 @@ onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
|
|
|
4575
4755
|
onLayoutPagination?: (data: LayoutPaginationParams) => any;
|
|
4576
4756
|
onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4577
4757
|
onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
|
|
4578
|
-
onLayoutCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4579
|
-
onLayoutAfterCollapseRows?: (data: CollapsedRowsType_2) => any;
|
|
4580
|
-
onCollapseRowsAll?: (hierarchyCollapse: boolean) => any;
|
|
4581
|
-
onLayoutColsExpanded?: (node: Node_2_2) => any;
|
|
4582
|
-
onLayoutColsHidden?: (data: {
|
|
4583
|
-
currentHiddenColumnsInfo: HiddenColumnsInfo_2;
|
|
4584
|
-
hiddenColumnsDetail: HiddenColumnsInfo_2[];
|
|
4585
|
-
}) => any;
|
|
4586
4758
|
onBeforeRender?: () => any;
|
|
4587
4759
|
onAfterRender?: () => any;
|
|
4588
4760
|
onMounted?: (spreadsheet: SpreadSheet_2) => any;
|
|
@@ -4609,26 +4781,31 @@ resizeInfo?: ResizeInfo_2;
|
|
|
4609
4781
|
onKeyBoardDown?: (event: KeyboardEvent) => any;
|
|
4610
4782
|
onKeyBoardUp?: (event: KeyboardEvent) => any;
|
|
4611
4783
|
onCopied?: (copyData: string) => any;
|
|
4612
|
-
onActionIconHover?: (event:
|
|
4613
|
-
onActionIconHoverOff?: (event:
|
|
4614
|
-
onActionIconClick?: (event:
|
|
4615
|
-
onContextMenu?: (event:
|
|
4616
|
-
onClick?: (event:
|
|
4617
|
-
onHover?: (event:
|
|
4618
|
-
onDoubleClick?: (event:
|
|
4619
|
-
onMouseHover?: (event:
|
|
4784
|
+
onActionIconHover?: (event: FederatedPointerEvent) => any;
|
|
4785
|
+
onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
|
|
4786
|
+
onActionIconClick?: (event: FederatedPointerEvent) => any;
|
|
4787
|
+
onContextMenu?: (event: FederatedPointerEvent) => any;
|
|
4788
|
+
onClick?: (event: FederatedPointerEvent) => any;
|
|
4789
|
+
onHover?: (event: FederatedPointerEvent) => any;
|
|
4790
|
+
onDoubleClick?: (event: FederatedPointerEvent) => any;
|
|
4791
|
+
onMouseHover?: (event: FederatedPointerEvent) => any;
|
|
4620
4792
|
onMouseUp?: (event: MouseEvent) => any;
|
|
4621
4793
|
onMouseDown?: (event: MouseEvent) => any;
|
|
4622
4794
|
onMouseMove?: (event: MouseEvent) => any;
|
|
4623
4795
|
onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
|
|
4624
4796
|
onReset?: (event: KeyboardEvent) => any;
|
|
4625
4797
|
onLinkFieldJump?: (data: {
|
|
4626
|
-
|
|
4798
|
+
field: string;
|
|
4627
4799
|
record: RawData_2;
|
|
4628
4800
|
}) => any;
|
|
4629
4801
|
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4630
|
-
|
|
4631
|
-
|
|
4802
|
+
onLayoutAfterRealDataCellRender?: (options: {
|
|
4803
|
+
add: [number, number][];
|
|
4804
|
+
remove: [number, number][];
|
|
4805
|
+
spreadsheet: SpreadSheet_2;
|
|
4806
|
+
}) => any;
|
|
4807
|
+
onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
4808
|
+
onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
|
|
4632
4809
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
|
|
4633
4810
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4634
4811
|
}, {}>;
|
|
@@ -4666,10 +4843,22 @@ declare interface ThemeCfg_2 {
|
|
|
4666
4843
|
declare type ThemeName = 'default' | 'colorful' | 'gray';
|
|
4667
4844
|
|
|
4668
4845
|
declare interface Tooltip<T = TooltipContentType_2, Icon = Element | string, Text = string> extends BaseTooltipConfig<T, Icon, Text> {
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4846
|
+
/**
|
|
4847
|
+
* Tooltip 行头单元格配置
|
|
4848
|
+
*/
|
|
4849
|
+
rowCell?: BaseTooltipConfig<T, Icon, Text>;
|
|
4850
|
+
/**
|
|
4851
|
+
* Tooltip 列头单元格配置
|
|
4852
|
+
*/
|
|
4853
|
+
colCell?: BaseTooltipConfig<T, Icon, Text>;
|
|
4854
|
+
/**
|
|
4855
|
+
* Tooltip 角头单元格配置
|
|
4856
|
+
*/
|
|
4857
|
+
cornerCell?: BaseTooltipConfig<T, Icon, Text>;
|
|
4858
|
+
/**
|
|
4859
|
+
* Tooltip 数值单元格配置
|
|
4860
|
+
*/
|
|
4861
|
+
dataCell?: BaseTooltipConfig<T, Icon, Text>;
|
|
4673
4862
|
}
|
|
4674
4863
|
|
|
4675
4864
|
declare type TooltipAutoAdjustBoundary = 'body' | 'container' | null | undefined;
|
|
@@ -4710,9 +4899,17 @@ declare type TooltipInterpretationOptions = {
|
|
|
4710
4899
|
};
|
|
4711
4900
|
|
|
4712
4901
|
declare interface TooltipOperation<Icon = Element | string, Text = string> extends TooltipOperatorOptions<Icon, Text> {
|
|
4902
|
+
/**
|
|
4903
|
+
* 隐藏列 (叶子节点有效)
|
|
4904
|
+
*/
|
|
4713
4905
|
hiddenColumns?: boolean;
|
|
4714
|
-
|
|
4906
|
+
/**
|
|
4907
|
+
* 透视表组内排序
|
|
4908
|
+
*/
|
|
4715
4909
|
sort?: boolean;
|
|
4910
|
+
/**
|
|
4911
|
+
* 明细表排序
|
|
4912
|
+
*/
|
|
4716
4913
|
tableSort?: boolean;
|
|
4717
4914
|
}
|
|
4718
4915
|
|