@antv/s2-vue 2.0.0-next.3 → 2.0.0-next.5

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/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';
@@ -23,18 +21,21 @@ import { ICanvas } from '@antv/g';
23
21
  import { Image as Image_2 } from '@antv/g';
24
22
  import { ImageStyleProps } from '@antv/g';
25
23
  import { LayoutResult } from '@antv/s2';
24
+ import { Line } from '@antv/g';
26
25
  import { LineStyleProps } from '@antv/g';
27
26
  import { MemoizedFunction } from 'lodash';
28
27
  import { Node as Node_2 } from '@antv/s2';
29
- import { Omit as Omit_2 } from 'lodash';
30
28
  import { Pagination } from '@antv/s2';
31
29
  import type { PaginationProps } from 'ant-design-vue';
32
30
  import { PointLike } from '@antv/g';
31
+ import { Polygon } from '@antv/g';
33
32
  import { PropType } from 'vue';
34
33
  import { RawData } from '@antv/s2';
34
+ import { Rect } from '@antv/g';
35
35
  import { Ref } from 'vue';
36
36
  import { ResizeInfo } from '@antv/s2';
37
37
  import { ResizeParams } from '@antv/s2';
38
+ import { RowCellCollapsedParams } from '@antv/s2';
38
39
  import { S2CellType } from '@antv/s2';
39
40
  import { S2DataConfig } from '@antv/s2';
40
41
  import { S2MountContainer } from '@antv/s2';
@@ -44,6 +45,8 @@ import { ShallowRef } from 'vue';
44
45
  import { SortParams } from '@antv/s2';
45
46
  import { SpreadSheet } from '@antv/s2';
46
47
  import { TargetCellInfo } from '@antv/s2';
48
+ import { Text as Text_2 } from '@antv/g';
49
+ import { TextStyleProps } from '@antv/g';
47
50
  import { ThemeCfg } from '@antv/s2';
48
51
  import { Timer } from 'd3-timer';
49
52
  import { TooltipContentType } from '@antv/s2';
@@ -104,14 +107,14 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
104
107
  protected meta: T;
105
108
  protected spreadsheet: SpreadSheet_2;
106
109
  protected theme: S2Theme;
107
- protected backgroundShape: DisplayObject;
108
- protected textShape: DisplayObject;
109
- protected textShapes: DisplayObject[];
110
- protected linkFieldShape: DisplayObject;
110
+ protected backgroundShape: Rect | Polygon;
111
+ protected textShape: CustomText;
112
+ protected textShapes: CustomText[];
113
+ protected linkFieldShape: Line;
111
114
  protected actualText: string;
112
115
  protected actualTextWidth: number;
113
116
  protected conditions: Conditions;
114
- protected conditionIntervalShape: DisplayObject | undefined;
117
+ protected conditionIntervalShape: Rect | undefined;
115
118
  protected conditionIconShape: GuiIcon;
116
119
  protected conditionIconShapes: GuiIcon[];
117
120
  protected stateShapes: Map<StateShapeLayer, DisplayObject<any, any>>;
@@ -155,7 +158,9 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
155
158
  protected abstract getTextPosition(): PointLike;
156
159
  protected abstract findFieldCondition(conditions: Condition[] | undefined): Condition | undefined;
157
160
  protected abstract mappingValue(condition: Condition): MappingResult | undefined | null;
161
+ protected shouldInit(): boolean;
158
162
  getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
163
+ getLinkFieldShape(): Line;
159
164
  protected getResizeAreaStyle(): ResizeArea;
160
165
  protected shouldDrawResizeAreaByType(type: keyof ResizeInteractionOptions, cell: S2CellType_2): boolean | ((cell: S2CellType_2<ViewMeta_2>) => boolean) | ResizeType | ((resizeInfo: ResizeInfo_2) => boolean) | undefined;
161
166
  getBBoxByType(type?: CellClipBox): SimpleBBox;
@@ -188,9 +193,9 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
188
193
  };
189
194
  hideInteractionShape(): void;
190
195
  clearUnselectedState(): void;
191
- getTextShape(): DisplayObject;
192
- getTextShapes(): DisplayObject[];
193
- addTextShape(textShape: DisplayObject): void;
196
+ getTextShape(): CustomText;
197
+ getTextShapes(): CustomText[];
198
+ addTextShape(textShape: CustomText | Text_2): void;
194
199
  getConditionIconShape(): GuiIcon;
195
200
  getConditionIconShapes(): GuiIcon[];
196
201
  addConditionIconShape(iconShape: GuiIcon): void;
@@ -200,6 +205,33 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
200
205
  getTextConditionFill(textStyle: TextTheme): string | undefined;
201
206
  }
202
207
 
208
+ declare interface BaseCellStyle {
209
+ /**
210
+ * 自定义宽度
211
+ * 1. [静态数值] width: 100
212
+ * 2. [动态计算] width: (node) => 100
213
+ */
214
+ width?: CellCustomSize;
215
+ /**
216
+ * 自定义高度
217
+ * 1. [静态数值] height: 100
218
+ * 2. [动态计算] height: (node) => 100
219
+ */
220
+ height?: CellCustomSize;
221
+ /**
222
+ * 自定义指定的单元格宽度
223
+ * 1. 根据 field { city: 20, type: 100 }
224
+ * 2. 根据 单元格 ID { 'root[&]杭州市': 20, 'root[&]类别': 100 }
225
+ */
226
+ widthByField?: Record<string, number> | null;
227
+ /**
228
+ * 自定义指定的单元格高度
229
+ * 1. 根据 field { city: 20, type: 100 }
230
+ * 2. 根据 单元格 ID { 'root[&]杭州市': 20, 'root[&]类别': 100 }
231
+ */
232
+ heightByField?: Record<string, number> | null;
233
+ }
234
+
203
235
  declare interface BaseChartData {
204
236
  type: MiniChartTypes;
205
237
  data: RawData_2[];
@@ -211,7 +243,6 @@ declare interface BaseChartData {
211
243
 
212
244
  declare interface BaseCornerOptions {
213
245
  seriesNumberWidth: number;
214
- facetCfg: SpreadSheetFacetCfg;
215
246
  layoutResult: LayoutResult_2;
216
247
  spreadsheet: SpreadSheet_2;
217
248
  }
@@ -305,6 +336,11 @@ declare abstract class BaseDataSet_2 {
305
336
  */
306
337
  abstract getMultiData(query: Query, totals?: TotalSelectionsOfMultiData, drillDownFields?: string[]): Data[] | CellData[];
307
338
  moreThanOneValue(): boolean;
339
+ /**
340
+ * get a row cells data including cell
341
+ * @param cells
342
+ */
343
+ abstract getRowData(cells: CellMeta): RowData;
308
344
  }
309
345
 
310
346
  declare interface BaseDrillDownComponentProps<DataSet = BaseDataSet> {
@@ -343,7 +379,6 @@ declare abstract class BaseFacet {
343
379
  frozenTopGroup: FrozenGroup;
344
380
  frozenBottomGroup: FrozenGroup;
345
381
  foregroundGroup: Group;
346
- cfg: SpreadSheetFacetCfg;
347
382
  layoutResult: LayoutResult_2;
348
383
  viewCellWidths: number[];
349
384
  viewCellHeights: ViewCellHeights;
@@ -364,12 +399,16 @@ declare abstract class BaseFacet {
364
399
  get scrollBarTheme(): ScrollBarTheme | undefined;
365
400
  get scrollBarSize(): number;
366
401
  protected preCellIndexes: PanelIndexes | null;
367
- constructor(cfg: SpreadSheetFacetCfg);
402
+ constructor(spreadsheet: SpreadSheet_2);
368
403
  protected initGroups(): void;
369
404
  protected initPanelGroups(): void;
370
- protected getCellCustomWidth(node: Node_2_2 | null, width: CellCustomWidth): number | null;
371
- protected getRowCellDraggedWidth(node: Node_2_2): number;
372
- protected getColCellDraggedWidth(node: Node_2_2): number;
405
+ protected getCellCustomSize(node: Node_2_2 | null, size: CellCustomSize): number | null | undefined;
406
+ protected getRowCellDraggedWidth(node: Node_2_2): number | undefined;
407
+ protected getRowCellDraggedHeight(node: Node_2_2): number | undefined;
408
+ protected getRowCellHeight(node: Node_2_2): number;
409
+ protected getColCellDraggedWidth(node: Node_2_2): number | undefined;
410
+ protected getColCellDraggedHeight(node: Node_2_2): number | undefined;
411
+ protected getDefaultColNodeHeight(colNode: Node_2_2): number;
373
412
  hideScrollBar: () => void;
374
413
  delayHideScrollBar: DebouncedFunc<() => void>;
375
414
  delayHideScrollbarOnMobile: () => void;
@@ -402,12 +441,16 @@ declare abstract class BaseFacet {
402
441
  destroy(): void;
403
442
  setScrollOffset: (scrollOffset: ScrollOffset) => void;
404
443
  getScrollOffset: () => Required<ScrollOffset>;
444
+ resetScrollX: () => void;
445
+ resetRowScrollX: () => void;
446
+ resetScrollY: () => void;
447
+ resetScrollOffset: () => void;
405
448
  emitPaginationEvent: () => void;
406
449
  private unbindEvents;
407
450
  calculateCellWidthHeight: () => void;
408
451
  /**
409
452
  * The purpose of this rewrite is to take into account that when rowHeader supports scrollbars
410
- the panel viewable area must vary with the horizontal distance of the scroll
453
+ *the panel viewable area must vary with the horizontal distance of the scroll
411
454
  * @param scrollX
412
455
  * @param scrollY
413
456
  * @public
@@ -449,22 +492,31 @@ declare abstract class BaseFacet {
449
492
  isVerticalScrollOverTheViewport: (deltaY: number) => boolean;
450
493
  isHorizontalScrollOverTheViewport: (scrollOffset: CellScrollOffset) => boolean;
451
494
  /**
452
- 在当前表格滚动分两种情况:
453
- 1. 当前表格无滚动条: 无需阻止外部容器滚动
454
- 2. 当前表格有滚动条:
455
- - 未滚动到顶部或底部: 当前表格滚动, 阻止外部容器滚动
456
- - 滚动到顶部或底部: 恢复外部容器滚动
495
+ * 在当前表格滚动分两种情况:
496
+ * 1. 当前表格无滚动条: 无需阻止外部容器滚动
497
+ * 2. 当前表格有滚动条:
498
+ * - 未滚动到顶部或底部: 当前表格滚动, 阻止外部容器滚动
499
+ * - 滚动到顶部或底部: 恢复外部容器滚动
457
500
  */
458
501
  isScrollOverTheViewport: (scrollOffset: CellScrollOffset) => boolean;
459
502
  cancelScrollFrame: () => boolean;
460
503
  clearScrollFrameIdOnMobile: () => void;
461
504
  /**
462
- https://developer.mozilla.org/zh-CN/docs/Web/CSS/overscroll-behavior
463
- 阻止外部容器滚动: 表格是虚拟滚动, 这里按照标准模拟浏览器的 [overscroll-behavior] 实现
464
- 1. auto => 只有在滚动到表格顶部或底部时才触发外部容器滚动
465
- 1. contain => 默认的滚动边界行为不变(“触底”效果或者刷新),但是临近的滚动区域不会被滚动链影响到
466
- 2. none => 临近滚动区域不受到滚动链影响,而且默认的滚动到边界的表现也被阻止
467
- 所以只要不为 `auto`, 或者表格内, 都需要阻止外部容器滚动
505
+ *<<<<<<< HEAD
506
+ *https://developer.mozilla.org/zh-CN/docs/Web/CSS/overscroll-behavior
507
+ *阻止外部容器滚动: 表格是虚拟滚动, 这里按照标准模拟浏览器的 [overscroll-behavior] 实现
508
+ *1. auto => 只有在滚动到表格顶部或底部时才触发外部容器滚动
509
+ *1. contain => 默认的滚动边界行为不变(“触底”效果或者刷新),但是临近的滚动区域不会被滚动链影响到
510
+ *2. none => 临近滚动区域不受到滚动链影响,而且默认的滚动到边界的表现也被阻止
511
+ *所以只要不为 `auto`, 或者表格内, 都需要阻止外部容器滚动
512
+ *=======
513
+ *https://developer.mozilla.org/zh-CN/docs/Web/CSS/overscroll-behavior
514
+ *阻止外部容器滚动: 表格是虚拟滚动, 这里按照标准模拟浏览器的 [overscroll-behavior] 实现
515
+ *1. auto => 只有在滚动到表格顶部或底部时才触发外部容器滚动
516
+ *1. contain => 默认的滚动边界行为不变(“触底”效果或者刷新),但是临近的滚动区域不会被滚动链影响到
517
+ *2. none => 临近滚动区域不受到滚动链影响,而且默认的滚动到边界的表现也被阻止
518
+ *所以只要不为 `auto`, 或者表格内, 都需要阻止外部容器滚动
519
+ *>>>>>>> next
468
520
  */
469
521
  private stopScrollChainingIfNeeded;
470
522
  private stopScrollChaining;
@@ -520,6 +572,7 @@ declare abstract class BaseFacet {
520
572
  protected onAfterScroll: DebouncedFunc<() => void>;
521
573
  protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
522
574
  getHiddenColumnsInfo(columnNode: Node_2_2): HiddenColumnsInfo_2 | undefined;
575
+ getCornerNodes(): Node_2_2[];
523
576
  }
524
577
 
525
578
  declare interface BaseFields {
@@ -588,25 +641,31 @@ declare interface BaseHeaderConfig {
588
641
  data: Node_2_2[];
589
642
  spreadsheet: SpreadSheet_2;
590
643
  sortParam?: SortParam;
644
+ linkFields: string[] | ((meta: Node_2_2 | ViewMeta_2) => boolean);
645
+ hierarchyType: S2Options_2['hierarchyType'];
591
646
  }
592
647
 
593
648
  declare interface BaseNodeConfig {
649
+ /**
650
+ * id 只在行头、列头 node 以及 hierarchy 中有用,是当前 node query 的拼接产物
651
+ */
594
652
  id: string;
595
- key: string;
653
+ /**
654
+ * 当前 node 的 field 属性, 在角头、行列头中 node 使用,和 dataCfg.fields 对应
655
+ */
656
+ field: string;
596
657
  value: string;
597
- label?: string;
598
658
  level?: number;
599
659
  rowIndex?: number;
600
660
  colIndex?: number;
601
661
  parent?: Node_2_2;
602
662
  isTotals?: boolean;
603
663
  isSubTotals?: boolean;
604
- isCollapsed?: boolean;
664
+ isCollapsed?: boolean | null;
605
665
  isGrandTotals?: boolean;
606
666
  hierarchy?: Hierarchy;
607
667
  isPivotMode?: boolean;
608
668
  seriesNumberWidth?: number;
609
- field?: string;
610
669
  spreadsheet?: SpreadSheet_2;
611
670
  query?: Record<string, any>;
612
671
  belongsCell?: S2CellType_2;
@@ -619,6 +678,7 @@ declare interface BaseNodeConfig {
619
678
  height?: number;
620
679
  padding?: number;
621
680
  children?: Node_2_2[];
681
+ hiddenColumnsInfo?: HiddenColumnsInfo_2 | null;
622
682
  extra?: Record<string, any>;
623
683
  }
624
684
 
@@ -648,7 +708,6 @@ type: PropType<Adaptive>;
648
708
  default: Adaptive;
649
709
  };
650
710
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
651
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
652
711
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
653
712
  }, {
654
713
  S2_PREFIX_CLS: string;
@@ -668,7 +727,6 @@ handlePageChange: (nextCurrent: number) => void;
668
727
  handlePageSizeChange: (nextSize: number) => void;
669
728
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
670
729
  spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
671
- getSpreadSheet: (spreadsheet: SpreadSheet) => void;
672
730
  sheetUpdate: SheetUpdateCallback;
673
731
  rowCellHover: (data: TargetCellInfo) => void;
674
732
  rowCellClick: (data: TargetCellInfo) => void;
@@ -677,11 +735,8 @@ rowCellContextMenu: (data: TargetCellInfo) => void;
677
735
  rowCellMouseDown: (data: TargetCellInfo) => void;
678
736
  rowCellMouseUp: (data: TargetCellInfo) => void;
679
737
  rowCellMouseMove: (data: TargetCellInfo) => void;
680
- rowCellCollapseTreeRows: (params: {
681
- id: number;
682
- isCollapsed: boolean;
683
- node: Node_2;
684
- }) => void;
738
+ rowCellCollapsed: (params: RowCellCollapsedParams) => void;
739
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
685
740
  rowCellScroll: (position: CellScrollPosition) => void;
686
741
  colCellHover: (data: TargetCellInfo) => void;
687
742
  colCellClick: (data: TargetCellInfo) => void;
@@ -690,6 +745,11 @@ colCellContextMenu: (data: TargetCellInfo) => void;
690
745
  colCellMouseDown: (data: TargetCellInfo) => void;
691
746
  colCellMouseUp: (data: TargetCellInfo) => void;
692
747
  colCellMouseMove: (data: TargetCellInfo) => void;
748
+ colCellExpanded: (node: Node_2) => void;
749
+ colCellHidden: (data: {
750
+ currentHiddenColumnsInfo: HiddenColumnsInfo;
751
+ hiddenColumnsDetail: HiddenColumnsInfo[];
752
+ }) => void;
693
753
  dataCellHover: (data: TargetCellInfo) => void;
694
754
  dataCellClick: (data: TargetCellInfo) => void;
695
755
  dataCellDoubleClick: (data: TargetCellInfo) => void;
@@ -697,7 +757,6 @@ dataCellContextMenu: (data: TargetCellInfo) => void;
697
757
  dataCellMouseDown: (data: TargetCellInfo) => void;
698
758
  dataCellMouseUp: (data: TargetCellInfo) => void;
699
759
  dataCellMouseMove: (data: TargetCellInfo) => void;
700
- dataCellTrendIconClick: (meta: ViewMeta) => void;
701
760
  dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
702
761
  dataCellSelectMove: (metas: ViewMetaData[]) => void;
703
762
  cornerCellHover: (data: TargetCellInfo) => void;
@@ -723,16 +782,7 @@ filteredValues: string[];
723
782
  rangeFiltered: (data: ViewMetaData[]) => void;
724
783
  layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
725
784
  layoutPagination: (data: LayoutPaginationParams) => void;
726
- layoutCellScroll: (position: CellScrollPosition) => void;
727
785
  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
786
  beforeRender: () => void;
737
787
  afterRender: () => void;
738
788
  mounted: (spreadsheet: SpreadSheet) => void;
@@ -773,10 +823,15 @@ mouseMove: (event: MouseEvent) => void;
773
823
  selected: (cells: S2CellType<ViewMeta>[]) => void;
774
824
  reset: (event: KeyboardEvent) => void;
775
825
  linkFieldJump: (data: {
776
- key: string;
826
+ field: string;
777
827
  record: RawData;
778
828
  }) => void;
779
829
  scroll: (position: CellScrollPosition) => void;
830
+ layoutAfterRealDataCellRender: (options: {
831
+ add: [number, number][];
832
+ remove: [number, number][];
833
+ spreadsheet: SpreadSheet;
834
+ }) => void;
780
835
  rowCellBrushSelection: (event: GEvent) => void;
781
836
  colCellBrushSelection: (event: GEvent) => void;
782
837
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
@@ -805,7 +860,6 @@ type: PropType<Adaptive>;
805
860
  default: Adaptive;
806
861
  };
807
862
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
808
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
809
863
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
810
864
  }>> & {
811
865
  onSheetUpdate?: (params: S2RenderOptions) => any;
@@ -816,11 +870,8 @@ onRowCellContextMenu?: (data: TargetCellInfo) => any;
816
870
  onRowCellMouseDown?: (data: TargetCellInfo) => any;
817
871
  onRowCellMouseUp?: (data: TargetCellInfo) => any;
818
872
  onRowCellMouseMove?: (data: TargetCellInfo) => any;
819
- onRowCellCollapseTreeRows?: (params: {
820
- id: number;
821
- isCollapsed: boolean;
822
- node: Node_2;
823
- }) => any;
873
+ onRowCellCollapsed?: (params: RowCellCollapsedParams) => any;
874
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
824
875
  onRowCellScroll?: (position: CellScrollPosition) => any;
825
876
  onColCellHover?: (data: TargetCellInfo) => any;
826
877
  onColCellClick?: (data: TargetCellInfo) => any;
@@ -829,6 +880,11 @@ onColCellContextMenu?: (data: TargetCellInfo) => any;
829
880
  onColCellMouseDown?: (data: TargetCellInfo) => any;
830
881
  onColCellMouseUp?: (data: TargetCellInfo) => any;
831
882
  onColCellMouseMove?: (data: TargetCellInfo) => any;
883
+ onColCellExpanded?: (node: Node_2) => any;
884
+ onColCellHidden?: (data: {
885
+ currentHiddenColumnsInfo: HiddenColumnsInfo;
886
+ hiddenColumnsDetail: HiddenColumnsInfo[];
887
+ }) => any;
832
888
  onDataCellHover?: (data: TargetCellInfo) => any;
833
889
  onDataCellClick?: (data: TargetCellInfo) => any;
834
890
  onDataCellDoubleClick?: (data: TargetCellInfo) => any;
@@ -836,7 +892,6 @@ onDataCellContextMenu?: (data: TargetCellInfo) => any;
836
892
  onDataCellMouseDown?: (data: TargetCellInfo) => any;
837
893
  onDataCellMouseUp?: (data: TargetCellInfo) => any;
838
894
  onDataCellMouseMove?: (data: TargetCellInfo) => any;
839
- onDataCellTrendIconClick?: (meta: ViewMeta) => any;
840
895
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
841
896
  onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
842
897
  onCornerCellHover?: (data: TargetCellInfo) => any;
@@ -862,16 +917,7 @@ filteredValues: string[];
862
917
  onRangeFiltered?: (data: ViewMetaData[]) => any;
863
918
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
864
919
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
865
- onLayoutCellScroll?: (position: CellScrollPosition) => any;
866
920
  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
921
  onBeforeRender?: () => any;
876
922
  onAfterRender?: () => any;
877
923
  onMounted?: (spreadsheet: SpreadSheet) => any;
@@ -912,14 +958,18 @@ onMouseMove?: (event: MouseEvent) => any;
912
958
  onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
913
959
  onReset?: (event: KeyboardEvent) => any;
914
960
  onLinkFieldJump?: (data: {
915
- key: string;
961
+ field: string;
916
962
  record: RawData;
917
963
  }) => any;
918
964
  onScroll?: (position: CellScrollPosition) => any;
965
+ onLayoutAfterRealDataCellRender?: (options: {
966
+ add: [number, number][];
967
+ remove: [number, number][];
968
+ spreadsheet: SpreadSheet;
969
+ }) => any;
919
970
  onRowCellBrushSelection?: (event: GEvent) => any;
920
971
  onColCellBrushSelection?: (event: GEvent) => any;
921
972
  onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
922
- onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
923
973
  }, {
924
974
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
925
975
  loading: boolean;
@@ -949,8 +999,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
949
999
  };
950
1000
  themeCfg?: ThemeCfg;
951
1001
  header?: Header;
952
- /** @deprecated 1.29.0 已废弃, 请使用 onMounted 代替 */
953
- getSpreadSheet?: (spreadsheet: SpreadSheet) => void;
954
1002
  /** 底表 render callback */
955
1003
  onSheetUpdate?: SheetUpdateCallback;
956
1004
  onRowCellHover?: (data: TargetCellInfo) => void;
@@ -960,11 +1008,8 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
960
1008
  onRowCellMouseDown?: (data: TargetCellInfo) => void;
961
1009
  onRowCellMouseUp?: (data: TargetCellInfo) => void;
962
1010
  onRowCellMouseMove?: (data: TargetCellInfo) => void;
963
- onRowCellCollapseTreeRows?: (params: {
964
- id: number;
965
- isCollapsed: boolean;
966
- node: Node_2;
967
- }) => void;
1011
+ onRowCellCollapsed?: (params: RowCellCollapsedParams) => void;
1012
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => void;
968
1013
  onRowCellScroll?: (position: CellScrollPosition) => void;
969
1014
  onColCellHover?: (data: TargetCellInfo) => void;
970
1015
  onColCellClick?: (data: TargetCellInfo) => void;
@@ -973,6 +1018,11 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
973
1018
  onColCellMouseDown?: (data: TargetCellInfo) => void;
974
1019
  onColCellMouseUp?: (data: TargetCellInfo) => void;
975
1020
  onColCellMouseMove?: (data: TargetCellInfo) => void;
1021
+ onColCellExpanded?: (node: Node_2) => void;
1022
+ onColCellHidden?: (data: {
1023
+ currentHiddenColumnsInfo: HiddenColumnsInfo;
1024
+ hiddenColumnsDetail: HiddenColumnsInfo[];
1025
+ }) => void;
976
1026
  onDataCellHover?: (data: TargetCellInfo) => void;
977
1027
  onDataCellClick?: (data: TargetCellInfo) => void;
978
1028
  onDataCellDoubleClick?: (data: TargetCellInfo) => void;
@@ -980,7 +1030,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
980
1030
  onDataCellMouseDown?: (data: TargetCellInfo) => void;
981
1031
  onDataCellMouseUp?: (data: TargetCellInfo) => void;
982
1032
  onDataCellMouseMove?: (data: TargetCellInfo) => void;
983
- onDataCellTrendIconClick?: (meta: ViewMeta) => void;
984
1033
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => void;
985
1034
  onDataCellSelectMove?: (metas: ViewMetaData[]) => void;
986
1035
  onCornerCellHover?: (data: TargetCellInfo) => void;
@@ -1006,17 +1055,7 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
1006
1055
  onRangeFiltered?: (data: ViewMetaData[]) => void;
1007
1056
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => void;
1008
1057
  onLayoutPagination?: (data: LayoutPaginationParams) => void;
1009
- /** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
1010
- onLayoutCellScroll?: (position: CellScrollPosition) => void;
1011
1058
  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
1059
  onBeforeRender?: () => void;
1021
1060
  onAfterRender?: () => void;
1022
1061
  onMounted?: (spreadsheet: SpreadSheet) => void;
@@ -1057,10 +1096,15 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
1057
1096
  onSelected?: (cells: S2CellType[]) => void;
1058
1097
  onReset?: (event: KeyboardEvent) => void;
1059
1098
  onLinkFieldJump?: (data: {
1060
- key: string;
1099
+ field: string;
1061
1100
  record: RawData;
1062
1101
  }) => void;
1063
1102
  onScroll?: (position: CellScrollPosition) => void;
1103
+ onLayoutAfterRealDataCellRender?: (options: {
1104
+ add: [number, number][];
1105
+ remove: [number, number][];
1106
+ spreadsheet: SpreadSheet;
1107
+ }) => void;
1064
1108
  onRowCellBrushSelection?: (event: GEvent) => void;
1065
1109
  onColCellBrushSelection?: (event: GEvent) => void;
1066
1110
  }
@@ -1124,7 +1168,6 @@ declare interface BulletTheme {
1124
1168
  width: number;
1125
1169
  height: number;
1126
1170
  fill?: string;
1127
- color?: string;
1128
1171
  opacity?: number;
1129
1172
  };
1130
1173
  rangeColors: RangeColors;
@@ -1159,16 +1202,6 @@ declare enum CellBorderPosition {
1159
1202
 
1160
1203
  declare type CellCallback<T extends BaseHeaderConfig> = (node: Node_2_2, spreadsheet: SpreadSheet_2, headerConfig: T) => S2CellType_2;
1161
1204
 
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
1205
  /**
1173
1206
  * 类似 background-clip 属性: https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
1174
1207
  * 分为三种类型:
@@ -1192,7 +1225,7 @@ declare enum CellClipBox {
1192
1225
  CONTENT_BOX = "contentBox"
1193
1226
  }
1194
1227
 
1195
- declare type CellCustomWidth = null | number | ((node: Node_2_2 | null) => number);
1228
+ declare type CellCustomSize = null | undefined | number | ((node: Node_2_2 | null) => number | null);
1196
1229
 
1197
1230
  declare class CellData {
1198
1231
  private raw;
@@ -1200,7 +1233,7 @@ declare class CellData {
1200
1233
  constructor(raw: RawData_2, extraField: string);
1201
1234
  static getCellDataList(raw: RawData_2, extraFields: string[]): CellData[];
1202
1235
  getOrigin(): RawData_2;
1203
- getValueByKey(key: string): DataItem;
1236
+ getValueByField(field: string): DataItem;
1204
1237
  get [EXTRA_FIELD](): string;
1205
1238
  get [VALUE_FIELD](): DataItem;
1206
1239
  }
@@ -1219,6 +1252,7 @@ declare interface CellMeta {
1219
1252
  colIndex: number;
1220
1253
  rowIndex: number;
1221
1254
  type: CellTypes;
1255
+ rowQuery?: Record<string, any>;
1222
1256
  [key: string]: unknown;
1223
1257
  }
1224
1258
 
@@ -1247,8 +1281,6 @@ declare interface CellTheme {
1247
1281
  verticalBorderWidth?: number;
1248
1282
  padding?: Padding;
1249
1283
  interactionState?: InteractionState;
1250
- miniBarChartHeight?: number;
1251
- miniBarChartFillColor?: string;
1252
1284
  }
1253
1285
 
1254
1286
  declare type CellThemes = {
@@ -1276,10 +1308,19 @@ declare class ColCell extends HeaderCell {
1276
1308
  protected isBolderText(): boolean;
1277
1309
  protected getTextPosition(): PointLike;
1278
1310
  protected getActionIconsWidth(): number;
1279
- protected getColResizeAreaKey(): string;
1280
1311
  protected getColResizeArea(): Group | undefined;
1281
1312
  protected getHorizontalResizeAreaName(): string;
1313
+ /**
1314
+ * @description 叶子节点, 但层级不同于其他节点 (如下图 a-1-1), 说明是任意不规则自定义节点, 此时不需要绘制热区
1315
+ * --------------------------------------------------
1316
+ * | 自定义节点 a-1 | |
1317
+ * |------------- |-----------| 自定义节点 a-1-1 |
1318
+ * | a-1-1 | a-1-2 | a-1-3 | |
1319
+ * -------------------------------------------------
1320
+ */
1321
+ protected isCrossColumnLeafNode(): boolean;
1282
1322
  protected drawHorizontalResizeArea(): void;
1323
+ private getResizeAreaWidth;
1283
1324
  protected shouldAddVerticalResizeArea(): boolean;
1284
1325
  protected getVerticalResizeAreaOffset(): {
1285
1326
  x: number;
@@ -1307,12 +1348,11 @@ declare class ColCell extends HeaderCell {
1307
1348
  protected handleViewport(viewport: AreaRange): AreaRange;
1308
1349
  }
1309
1350
 
1310
- declare interface ColCfg {
1311
- width?: CellCustomWidth;
1312
- height?: number;
1313
- widthByFieldValue?: Record<string, number>;
1314
- heightByField?: Record<string, number>;
1315
- hideMeasureColumn?: boolean;
1351
+ declare interface ColCellStyle extends BaseCellStyle {
1352
+ /**
1353
+ * 数值挂列头时, 是否隐藏数值 (即 s2DataConfig.fields.values 只有一个数值时生效)
1354
+ */
1355
+ hideValue?: boolean;
1316
1356
  }
1317
1357
 
1318
1358
  /**
@@ -1340,16 +1380,8 @@ declare class ColHeader extends BaseHeader<ColHeaderConfig> {
1340
1380
 
1341
1381
  declare interface ColHeaderConfig extends BaseHeaderConfig {
1342
1382
  cornerWidth?: number;
1343
- scrollContainsRowHeader?: boolean;
1344
1383
  }
1345
1384
 
1346
- declare type CollapsedRowsType_2 = {
1347
- collapsedRows: Record<string, boolean> & {
1348
- [x: number]: any;
1349
- };
1350
- meta?: Node_2_2;
1351
- };
1352
-
1353
1385
  /**
1354
1386
  * One field can hold a condition
1355
1387
  */
@@ -1365,8 +1397,26 @@ declare interface Conditions {
1365
1397
  icon?: IconCondition[];
1366
1398
  }
1367
1399
 
1400
+ declare type CopyableHTML = {
1401
+ type: CopyMIMEType.HTML;
1402
+ content: string;
1403
+ };
1404
+
1405
+ declare type CopyableList = [CopyablePlain, CopyableHTML];
1406
+
1407
+ declare type CopyablePlain = {
1408
+ type: CopyMIMEType.PLAIN;
1409
+ content: string;
1410
+ };
1411
+
1412
+ declare enum CopyMIMEType {
1413
+ PLAIN = "text/plain",
1414
+ HTML = "text/html"
1415
+ }
1416
+
1368
1417
  declare class CornerBBox extends BaseBBox {
1369
1418
  calculateBBox(): void;
1419
+ private getCornerBBoxOriginalHeight;
1370
1420
  private getCornerBBoxHeight;
1371
1421
  private getCornerBBoxWidth;
1372
1422
  private adjustCornerBBoxWidth;
@@ -1380,10 +1430,6 @@ declare class CornerCell extends HeaderCell {
1380
1430
  protected getBorderPositions(): CellBorderPosition[];
1381
1431
  update(): void;
1382
1432
  protected initCell(): void;
1383
- /**
1384
- * @deprecated 已废弃, 请使用 drawTextShape
1385
- */
1386
- protected drawCellText(): void;
1387
1433
  protected drawTextShape(): void;
1388
1434
  /**
1389
1435
  * 绘制折叠展开的icon
@@ -1430,15 +1476,12 @@ declare class CornerHeader extends BaseHeader<CornerHeaderConfig> {
1430
1476
  protected renderCells(): void;
1431
1477
  protected offset(): void;
1432
1478
  protected clip(): void;
1479
+ getNodes(): Node_2_2[];
1433
1480
  }
1434
1481
 
1435
1482
  declare type CornerHeaderCallback = (parent: S2CellType_2, spreadsheet: SpreadSheet_2, ...restOptions: unknown[]) => void;
1436
1483
 
1437
1484
  declare interface CornerHeaderConfig extends BaseHeaderConfig {
1438
- hierarchyType: S2Options_2['hierarchyType'];
1439
- hierarchyCollapse: boolean;
1440
- rows: SpreadSheetFacetCfg['rows'];
1441
- columns: SpreadSheetFacetCfg['columns'];
1442
1485
  seriesNumberWidth: number;
1443
1486
  }
1444
1487
 
@@ -1471,6 +1514,15 @@ declare interface CustomSVGIcon {
1471
1514
  svg: string;
1472
1515
  }
1473
1516
 
1517
+ /**
1518
+ * 自定义 text 图形
1519
+ * - 有 appendInfo 属性
1520
+ */
1521
+ declare class CustomText<T = Record<string, any>> extends Text_2 {
1522
+ appendInfo: T;
1523
+ constructor(options: DisplayObjectConfig<TextStyleProps>, appendInfo: T);
1524
+ }
1525
+
1474
1526
  export declare class CustomTooltip extends BaseTooltip {
1475
1527
  constructor(spreadsheet: SpreadSheet);
1476
1528
  renderContent(): void;
@@ -1478,11 +1530,11 @@ export declare class CustomTooltip extends BaseTooltip {
1478
1530
  }
1479
1531
 
1480
1532
  declare interface CustomTreeNode {
1481
- key: string;
1533
+ field: string;
1482
1534
  title?: string;
1483
1535
  collapsed?: boolean;
1484
1536
  description?: string;
1485
- children?: CustomTreeNode[];
1537
+ children?: string[] | CustomTreeNode[];
1486
1538
  }
1487
1539
 
1488
1540
  declare type Data = (RawData_2 & ExtraData) | undefined | null;
@@ -1517,7 +1569,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
1517
1569
  */
1518
1570
  private getDefaultTextFill;
1519
1571
  protected getTextStyle(): TextTheme;
1520
- getIconStyle(): IconCfg | undefined;
1572
+ getIconStyle(): IconStyle | undefined;
1521
1573
  protected drawConditionIntervalShape(): void;
1522
1574
  protected shouldHideRowSubtotalData(): boolean;
1523
1575
  protected getFormattedFieldValue(): FormatResult;
@@ -1554,6 +1606,19 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
1554
1606
 
1555
1607
  declare type DataCellCallback = (viewMeta: ViewMeta_2) => S2CellType_2;
1556
1608
 
1609
+ declare interface DataCellStyle {
1610
+ width?: number;
1611
+ height?: number;
1612
+ /**
1613
+ * 多列数值配置
1614
+ */
1615
+ valuesCfg?: {
1616
+ originalValueField?: string;
1617
+ widthPercent?: number[];
1618
+ showOriginalValue?: boolean;
1619
+ };
1620
+ }
1621
+
1557
1622
  declare type DataItem = SimpleData | MultiData | Record<string, unknown> | undefined | null;
1558
1623
 
1559
1624
  declare type DataPath = (number | string)[];
@@ -1579,14 +1644,14 @@ declare interface EmitterType {
1579
1644
  [S2Event.GLOBAL_ACTION_ICON_CLICK]: CanvasEventHandler;
1580
1645
  [S2Event.GLOBAL_ACTION_ICON_HOVER]: CanvasEventHandler;
1581
1646
  [S2Event.GLOBAL_ACTION_ICON_HOVER_OFF]: CanvasEventHandler;
1582
- [S2Event.GLOBAL_COPIED]: (data: string) => void;
1647
+ [S2Event.GLOBAL_COPIED]: (data: CopyableList | undefined) => void;
1583
1648
  [S2Event.GLOBAL_KEYBOARD_DOWN]: KeyboardEventHandler;
1584
1649
  [S2Event.GLOBAL_KEYBOARD_UP]: KeyboardEventHandler;
1585
1650
  [S2Event.GLOBAL_MOUSE_UP]: MouseEventHandler;
1586
1651
  [S2Event.GLOBAL_MOUSE_MOVE]: MouseEventHandler;
1587
1652
  [S2Event.LAYOUT_RESIZE_MOUSE_DOWN]: CanvasEventHandler;
1588
1653
  [S2Event.LAYOUT_RESIZE_MOUSE_UP]: CanvasEventHandler;
1589
- [S2Event.LAYOUT_RESIZE_MOUSE_MOVE]: CanvasEventHandler;
1654
+ [S2Event.LAYOUT_RESIZE_MOUSE_MOVE]: PointerEventHandler;
1590
1655
  [S2Event.GLOBAL_CONTEXT_MENU]: CanvasEventHandler;
1591
1656
  [S2Event.GLOBAL_CLICK]: CanvasEventHandler;
1592
1657
  [S2Event.GLOBAL_DOUBLE_CLICK]: CanvasEventHandler;
@@ -1602,8 +1667,9 @@ declare interface EmitterType {
1602
1667
  [S2Event.RANGE_FILTERED]: (data: RawData_2[]) => any;
1603
1668
  /** ================ Cell ================ */
1604
1669
  [S2Event.GLOBAL_LINK_FIELD_JUMP]: (data: {
1605
- key: string;
1606
- record: RawData_2;
1670
+ cellData: Node_2_2;
1671
+ field: string;
1672
+ record: Data;
1607
1673
  }) => void;
1608
1674
  /** ================ Date Cell ================ */
1609
1675
  [S2Event.DATA_CELL_MOUSE_DOWN]: CanvasEventHandler;
@@ -1613,7 +1679,6 @@ declare interface EmitterType {
1613
1679
  [S2Event.DATA_CELL_CLICK]: CanvasEventHandler;
1614
1680
  [S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
1615
1681
  [S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
1616
- [S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
1617
1682
  [S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: (DataCell_2 | CellMeta)[]) => void;
1618
1683
  [S2Event.DATA_CELL_SELECT_MOVE]: (metas: CellMeta[]) => void;
1619
1684
  /** ================ Row Cell ================ */
@@ -1624,9 +1689,12 @@ declare interface EmitterType {
1624
1689
  [S2Event.ROW_CELL_DOUBLE_CLICK]: CanvasEventHandler;
1625
1690
  [S2Event.ROW_CELL_CONTEXT_MENU]: CanvasEventHandler;
1626
1691
  [S2Event.ROW_CELL_MOUSE_UP]: CanvasEventHandler;
1627
- [S2Event.ROW_CELL_COLLAPSE_TREE_ROWS]: (data: RowCellCollapseTreeRowsType) => void;
1628
1692
  [S2Event.ROW_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
1629
1693
  [S2Event.ROW_CELL_BRUSH_SELECTION]: (cells: RowCell[]) => void;
1694
+ [S2Event.ROW_CELL_COLLAPSED]: (data: RowCellCollapsedParams_2) => void;
1695
+ [S2Event.ROW_CELL_COLLAPSED__PRIVATE]: (data: RowCellCollapsedParams_2) => void;
1696
+ [S2Event.ROW_CELL_ALL_COLLAPSED]: (isCollapsed: boolean) => void;
1697
+ [S2Event.ROW_CELL_ALL_COLLAPSED__PRIVATE]: (isCollapsed: boolean) => void;
1630
1698
  /** ================ Col Cell ================ */
1631
1699
  [S2Event.COL_CELL_MOUSE_DOWN]: CanvasEventHandler;
1632
1700
  [S2Event.COL_CELL_MOUSE_MOVE]: CanvasEventHandler;
@@ -1636,6 +1704,8 @@ declare interface EmitterType {
1636
1704
  [S2Event.COL_CELL_CONTEXT_MENU]: CanvasEventHandler;
1637
1705
  [S2Event.COL_CELL_MOUSE_UP]: CanvasEventHandler;
1638
1706
  [S2Event.COL_CELL_BRUSH_SELECTION]: (cells: ColCell[]) => void;
1707
+ [S2Event.COL_CELL_EXPANDED]: (expandedNode: Node_2_2) => void;
1708
+ [S2Event.COL_CELL_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
1639
1709
  /** ================ Corner Cell ================ */
1640
1710
  [S2Event.CORNER_CELL_MOUSE_MOVE]: CanvasEventHandler;
1641
1711
  [S2Event.CORNER_CELL_MOUSE_DOWN]: CanvasEventHandler;
@@ -1653,9 +1723,6 @@ declare interface EmitterType {
1653
1723
  [S2Event.MERGED_CELLS_CONTEXT_MENU]: CanvasEventHandler;
1654
1724
  [S2Event.MERGED_CELLS_DOUBLE_CLICK]: CanvasEventHandler;
1655
1725
  /** ================ 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
1726
  [S2Event.LAYOUT_PAGINATION]: (data: {
1660
1727
  pageSize: number;
1661
1728
  pageCount: number;
@@ -1663,11 +1730,12 @@ declare interface EmitterType {
1663
1730
  current: number;
1664
1731
  }) => void;
1665
1732
  [S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
1666
- /** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
1667
- [S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
1733
+ [S2Event.LAYOUT_AFTER_REAL_DATA_CELL_RENDER]: (options: {
1734
+ add: [number, number][];
1735
+ remove: [number, number][];
1736
+ spreadsheet: SpreadSheet_2;
1737
+ }) => void;
1668
1738
  [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
1739
  [S2Event.LAYOUT_BEFORE_RENDER]: () => void;
1672
1740
  [S2Event.LAYOUT_AFTER_RENDER]: () => void;
1673
1741
  [S2Event.LAYOUT_DESTROY]: () => void;
@@ -1799,15 +1867,13 @@ declare interface FrameConfig {
1799
1867
  viewportHeight: number;
1800
1868
  showViewportLeftShadow: boolean;
1801
1869
  showViewportRightShadow: boolean;
1802
- scrollContainsRowHeader: boolean;
1803
- isPivotMode: boolean;
1804
1870
  spreadsheet: SpreadSheet_2;
1805
1871
  }
1806
1872
 
1807
1873
  declare class FrozenGroup extends GridGroup {
1808
1874
  }
1809
1875
 
1810
- declare type GetCellMeta = (rowIndex?: number, colIndex?: number) => ViewMeta_2 | null;
1876
+ declare type GetCellMeta = (rowIndex: number, colIndex: number) => ViewMeta_2 | null;
1811
1877
 
1812
1878
  declare type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
1813
1879
  [K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
@@ -1855,7 +1921,12 @@ declare class GuiIcon extends Group {
1855
1921
  private cfg;
1856
1922
  constructor(cfg: GuiIconCfg);
1857
1923
  private getImage;
1858
- hasSupportSuffix: (image: string) => boolean;
1924
+ /**
1925
+ * 1. https://xxx.svg
1926
+ * 2. http://xxx.svg
1927
+ * 3. //xxx.svg
1928
+ */
1929
+ isOnlineLink: (src: string) => boolean;
1859
1930
  private render;
1860
1931
  }
1861
1932
 
@@ -1868,6 +1939,7 @@ declare class HdAdapter {
1868
1939
  private viewport;
1869
1940
  private devicePixelRatioMedia;
1870
1941
  private spreadsheet;
1942
+ private isDevicePixelRatioChange;
1871
1943
  constructor(spreadsheet: SpreadSheet_2);
1872
1944
  init: () => void;
1873
1945
  destroy: () => void;
@@ -1875,6 +1947,11 @@ declare class HdAdapter {
1875
1947
  private removeDevicePixelRatioListener;
1876
1948
  private initDeviceZoomListener;
1877
1949
  private removeDeviceZoomListener;
1950
+ /**
1951
+ * DPR 改变也会触发 visualViewport 的 resize 事件, 预期是只监听双指缩放, 所以这里规避掉
1952
+ * @see https://github.com/antvis/S2/issues/2072
1953
+ */
1954
+ private renderByZoomScaleWithoutResizeEffect;
1878
1955
  private renderByDevicePixelRatioChanged;
1879
1956
  private renderByDevicePixelRatio;
1880
1957
  private renderByZoomScale;
@@ -1885,11 +1962,6 @@ declare interface HeaderActionIcon {
1885
1962
  belongsCell: Omit<CellTypes, 'dataCell'>;
1886
1963
  defaultHide?: boolean | ((meta: Node_2_2, iconName: string) => boolean);
1887
1964
  displayCondition?: (mete: Node_2_2, iconName: string) => boolean;
1888
- /**
1889
- * 点击后的执行函数
1890
- * @deprecated 使用 onClick 代替
1891
- */
1892
- action?: (headerIconClickParams: HeaderIconClickParams) => void;
1893
1965
  onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
1894
1966
  onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
1895
1967
  }
@@ -1898,8 +1970,6 @@ declare interface HeaderActionIconOptions {
1898
1970
  iconName: string;
1899
1971
  x: number;
1900
1972
  y: number;
1901
- /** @deprecated 使用 onClick 代替 */
1902
- action?: (props: HeaderIconClickParams) => void;
1903
1973
  onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
1904
1974
  onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
1905
1975
  defaultHide?: boolean;
@@ -1943,6 +2013,7 @@ declare abstract class HeaderCell extends BaseCell<Node_2_2> {
1943
2013
  isMeasureField(): boolean;
1944
2014
  mappingValue(condition: Condition): MappingResult;
1945
2015
  findFieldCondition(conditions: Condition[]): Condition | undefined;
2016
+ getTreeIcon(): GuiIcon | undefined;
1946
2017
  }
1947
2018
 
1948
2019
  declare interface HeaderIconClickParams {
@@ -2000,14 +2071,14 @@ declare interface HoverFocusOptions {
2000
2071
  duration?: number;
2001
2072
  }
2002
2073
 
2003
- declare type IconCfg = Pick<IconTheme, 'size' | 'margin'> & Pick<IconCondition, 'position'>;
2004
-
2005
2074
  declare interface IconCondition extends Condition {
2006
2075
  position?: IconPosition;
2007
2076
  }
2008
2077
 
2009
2078
  declare type IconPosition = 'left' | 'right';
2010
2079
 
2080
+ declare type IconStyle = Pick<IconTheme, 'size' | 'margin'> & Pick<IconCondition, 'position'>;
2081
+
2011
2082
  declare interface IconTheme {
2012
2083
  fill?: string;
2013
2084
  downIconColor?: string;
@@ -2018,27 +2089,34 @@ declare interface IconTheme {
2018
2089
 
2019
2090
  declare type Indexes = [number, number, number, number];
2020
2091
 
2092
+ declare interface InteractionCellSelectedHighlightType {
2093
+ rowHeader?: boolean;
2094
+ colHeader?: boolean;
2095
+ currentRow?: boolean;
2096
+ currentCol?: boolean;
2097
+ }
2098
+
2021
2099
  declare type InteractionConstructor = new (spreadsheet: SpreadSheet_2) => BaseEvent;
2022
2100
 
2023
2101
  declare interface InteractionOptions {
2024
- linkFields?: string[];
2102
+ linkFields?: string[] | ((meta: Node_2_2 | ViewMeta_2) => boolean);
2025
2103
  selectedCellsSpotlight?: boolean;
2026
2104
  hoverHighlight?: boolean;
2027
- hoverFocus?: boolean | HoverFocusOptions;
2105
+ hoverFocus?: HoverFocusOptions | boolean;
2028
2106
  enableCopy?: boolean;
2029
2107
  copyWithFormat?: boolean;
2030
2108
  copyWithHeader?: boolean;
2031
2109
  autoResetSheetStyle?: boolean;
2032
2110
  hiddenColumnFields?: string[];
2033
2111
  scrollSpeedRatio?: ScrollSpeedRatio;
2034
- resize?: boolean | ResizeInteractionOptions;
2035
- brushSelection?: boolean | BrushSelection;
2112
+ resize?: ResizeInteractionOptions | boolean;
2113
+ brushSelection?: BrushSelection | boolean;
2036
2114
  multiSelection?: boolean;
2037
2115
  rangeSelection?: boolean;
2038
2116
  selectedCellMove?: boolean;
2039
2117
  scrollbarPosition?: ScrollbarPositionType;
2040
2118
  eventListenerOptions?: boolean | AddEventListenerOptions;
2041
- selectedCellHighlight?: boolean;
2119
+ selectedCellHighlight?: boolean | InteractionCellSelectedHighlightType;
2042
2120
  overscrollBehavior?: 'auto' | 'none' | 'contain' | null;
2043
2121
  /** ***********CUSTOM INTERACTION HOOKS**************** */
2044
2122
  customInteractions?: CustomInteraction[];
@@ -2182,6 +2260,11 @@ declare interface MappingResult extends ValueRange {
2182
2260
  * @version 1.34.0
2183
2261
  */
2184
2262
  intelligentReverseTextColor?: boolean;
2263
+ /**
2264
+ * @description custom the interval condition's width
2265
+ * @version 1.38.0
2266
+ */
2267
+ fieldValue?: number;
2185
2268
  }
2186
2269
 
2187
2270
  declare type Margin = Padding;
@@ -2216,8 +2299,17 @@ declare interface MergedCellInfo {
2216
2299
  }
2217
2300
 
2218
2301
  declare interface Meta {
2302
+ /**
2303
+ * 字段 id
2304
+ */
2219
2305
  field?: string;
2306
+ /**
2307
+ * 字段名称
2308
+ */
2220
2309
  name?: string;
2310
+ /**
2311
+ * 字段描述
2312
+ */
2221
2313
  description?: string;
2222
2314
  formatter?: Formatter;
2223
2315
  }
@@ -2240,15 +2332,16 @@ declare enum MiniChartTypes {
2240
2332
 
2241
2333
  declare type MouseEventHandler = (event: MouseEvent) => void;
2242
2334
 
2243
- /** use for gridAnalysisSheet
2335
+ /**
2336
+ * use for gridAnalysisSheet
2244
2337
  * eg. { label: '余额女',
2245
- values: [
2246
- ['最近7天登端天数', 1, 3423423, 323],
2247
- ['自然月新登用户数', 1, 3423423, 323],
2248
- ['最近7天登端天数', 1, 3423423, 323],
2249
- ['自然月新登用户数', 1, 3423423, 323],
2250
- ],
2251
- }
2338
+ * values: [
2339
+ * ['最近7天登端天数', 1, 3423423, 323],
2340
+ * ['自然月新登用户数', 1, 3423423, 323],
2341
+ * ['最近7天登端天数', 1, 3423423, 323],
2342
+ * ['自然月新登用户数', 1, 3423423, 323],
2343
+ * ],
2344
+ * }
2252
2345
  */
2253
2346
  declare interface MultiData<T = SimpleData[][] | MiniChartData> {
2254
2347
  values: T;
@@ -2261,8 +2354,37 @@ declare interface MultiData<T = SimpleData[][] | MiniChartData> {
2261
2354
  * Node for cornerHeader, colHeader, rowHeader
2262
2355
  */
2263
2356
  declare class Node_2_2 {
2357
+ id: string;
2358
+ value: string;
2359
+ field: string;
2360
+ x: number;
2361
+ y: number;
2362
+ width: number;
2363
+ height: number;
2364
+ colIndex: number;
2365
+ level: number;
2366
+ rowIndex: number;
2367
+ parent: Node_2_2 | undefined;
2368
+ isLeaf: boolean;
2369
+ isTotals: boolean;
2370
+ colId: string;
2264
2371
  isTotalMeasure: boolean;
2265
- config: BaseNodeConfig;
2372
+ isCollapsed: boolean;
2373
+ children: Node_2_2[];
2374
+ padding: number;
2375
+ hierarchy: Hierarchy;
2376
+ isPivotMode: boolean;
2377
+ seriesNumberWidth: number;
2378
+ spreadsheet: SpreadSheet_2;
2379
+ query?: Record<string, any>;
2380
+ belongsCell?: S2CellType_2 | null | undefined;
2381
+ inCollapseNode?: boolean;
2382
+ cornerType?: CornerNodeType;
2383
+ isGrandTotals?: boolean;
2384
+ isSubTotals?: boolean;
2385
+ hiddenChildNodeInfo?: HiddenColumnsInfo_2 | null;
2386
+ extra?: Record<string, any>;
2387
+ [key: string]: any;
2266
2388
  constructor(cfg: BaseNodeConfig);
2267
2389
  /**
2268
2390
  * Get node's field path
@@ -2310,43 +2432,13 @@ declare class Node_2_2 {
2310
2432
  * @param parent
2311
2433
  */
2312
2434
  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
2435
  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
2436
  static rootNode(): Node_2_2;
2345
- toJSON(): Omit_2<this, "config" | "parent" | "hierarchy" | "spreadsheet">;
2346
2437
  getHeadLeafChild(): Node_2_2 | undefined;
2347
2438
  /**
2348
2439
  * 获取树状模式下,当前节点以及其所有子节点的高度总和
2349
- * */
2440
+ *
2441
+ */
2350
2442
  getTotalHeightForTreeHierarchy(): number;
2351
2443
  }
2352
2444
 
@@ -2398,6 +2490,8 @@ declare interface PaletteMeta {
2398
2490
  [key: string]: string;
2399
2491
  };
2400
2492
  others?: {
2493
+ results: string;
2494
+ highlight: string;
2401
2495
  [key: string]: string;
2402
2496
  };
2403
2497
  }
@@ -2469,14 +2563,12 @@ type: PropType<Adaptive>;
2469
2563
  default: Adaptive;
2470
2564
  };
2471
2565
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
2472
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
2473
2566
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
2474
2567
  }, {
2475
2568
  s2Ref: ShallowRef<SheetExpose>;
2476
2569
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
2477
2570
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2478
2571
  spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
2479
- getSpreadSheet: (spreadsheet: SpreadSheet) => void;
2480
2572
  sheetUpdate: SheetUpdateCallback;
2481
2573
  rowCellHover: (data: TargetCellInfo) => void;
2482
2574
  rowCellClick: (data: TargetCellInfo) => void;
@@ -2485,11 +2577,8 @@ rowCellContextMenu: (data: TargetCellInfo) => void;
2485
2577
  rowCellMouseDown: (data: TargetCellInfo) => void;
2486
2578
  rowCellMouseUp: (data: TargetCellInfo) => void;
2487
2579
  rowCellMouseMove: (data: TargetCellInfo) => void;
2488
- rowCellCollapseTreeRows: (params: {
2489
- id: number;
2490
- isCollapsed: boolean;
2491
- node: Node_2;
2492
- }) => void;
2580
+ rowCellCollapsed: (params: RowCellCollapsedParams) => void;
2581
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
2493
2582
  rowCellScroll: (position: CellScrollPosition) => void;
2494
2583
  colCellHover: (data: TargetCellInfo) => void;
2495
2584
  colCellClick: (data: TargetCellInfo) => void;
@@ -2498,6 +2587,11 @@ colCellContextMenu: (data: TargetCellInfo) => void;
2498
2587
  colCellMouseDown: (data: TargetCellInfo) => void;
2499
2588
  colCellMouseUp: (data: TargetCellInfo) => void;
2500
2589
  colCellMouseMove: (data: TargetCellInfo) => void;
2590
+ colCellExpanded: (node: Node_2) => void;
2591
+ colCellHidden: (data: {
2592
+ currentHiddenColumnsInfo: HiddenColumnsInfo;
2593
+ hiddenColumnsDetail: HiddenColumnsInfo[];
2594
+ }) => void;
2501
2595
  dataCellHover: (data: TargetCellInfo) => void;
2502
2596
  dataCellClick: (data: TargetCellInfo) => void;
2503
2597
  dataCellDoubleClick: (data: TargetCellInfo) => void;
@@ -2505,7 +2599,6 @@ dataCellContextMenu: (data: TargetCellInfo) => void;
2505
2599
  dataCellMouseDown: (data: TargetCellInfo) => void;
2506
2600
  dataCellMouseUp: (data: TargetCellInfo) => void;
2507
2601
  dataCellMouseMove: (data: TargetCellInfo) => void;
2508
- dataCellTrendIconClick: (meta: ViewMeta) => void;
2509
2602
  dataCellBrushSelection: (brushRangeDataCells: DataCell[]) => void;
2510
2603
  dataCellSelectMove: (metas: ViewMetaData[]) => void;
2511
2604
  cornerCellHover: (data: TargetCellInfo) => void;
@@ -2531,16 +2624,7 @@ filteredValues: string[];
2531
2624
  rangeFiltered: (data: ViewMetaData[]) => void;
2532
2625
  layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
2533
2626
  layoutPagination: (data: LayoutPaginationParams) => void;
2534
- layoutCellScroll: (position: CellScrollPosition) => void;
2535
2627
  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
2628
  beforeRender: () => void;
2545
2629
  afterRender: () => void;
2546
2630
  mounted: (spreadsheet: SpreadSheet) => void;
@@ -2581,10 +2665,15 @@ mouseMove: (event: MouseEvent) => void;
2581
2665
  selected: (cells: S2CellType<ViewMeta>[]) => void;
2582
2666
  reset: (event: KeyboardEvent) => void;
2583
2667
  linkFieldJump: (data: {
2584
- key: string;
2668
+ field: string;
2585
2669
  record: RawData;
2586
2670
  }) => void;
2587
2671
  scroll: (position: CellScrollPosition) => void;
2672
+ layoutAfterRealDataCellRender: (options: {
2673
+ add: [number, number][];
2674
+ remove: [number, number][];
2675
+ spreadsheet: SpreadSheet;
2676
+ }) => void;
2588
2677
  rowCellBrushSelection: (event: GEvent) => void;
2589
2678
  colCellBrushSelection: (event: GEvent) => void;
2590
2679
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
@@ -2613,7 +2702,6 @@ type: PropType<Adaptive>;
2613
2702
  default: Adaptive;
2614
2703
  };
2615
2704
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
2616
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
2617
2705
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
2618
2706
  }>> & {
2619
2707
  onSheetUpdate?: (params: S2RenderOptions) => any;
@@ -2624,11 +2712,8 @@ onRowCellContextMenu?: (data: TargetCellInfo) => any;
2624
2712
  onRowCellMouseDown?: (data: TargetCellInfo) => any;
2625
2713
  onRowCellMouseUp?: (data: TargetCellInfo) => any;
2626
2714
  onRowCellMouseMove?: (data: TargetCellInfo) => any;
2627
- onRowCellCollapseTreeRows?: (params: {
2628
- id: number;
2629
- isCollapsed: boolean;
2630
- node: Node_2;
2631
- }) => any;
2715
+ onRowCellCollapsed?: (params: RowCellCollapsedParams) => any;
2716
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
2632
2717
  onRowCellScroll?: (position: CellScrollPosition) => any;
2633
2718
  onColCellHover?: (data: TargetCellInfo) => any;
2634
2719
  onColCellClick?: (data: TargetCellInfo) => any;
@@ -2637,6 +2722,11 @@ onColCellContextMenu?: (data: TargetCellInfo) => any;
2637
2722
  onColCellMouseDown?: (data: TargetCellInfo) => any;
2638
2723
  onColCellMouseUp?: (data: TargetCellInfo) => any;
2639
2724
  onColCellMouseMove?: (data: TargetCellInfo) => any;
2725
+ onColCellExpanded?: (node: Node_2) => any;
2726
+ onColCellHidden?: (data: {
2727
+ currentHiddenColumnsInfo: HiddenColumnsInfo;
2728
+ hiddenColumnsDetail: HiddenColumnsInfo[];
2729
+ }) => any;
2640
2730
  onDataCellHover?: (data: TargetCellInfo) => any;
2641
2731
  onDataCellClick?: (data: TargetCellInfo) => any;
2642
2732
  onDataCellDoubleClick?: (data: TargetCellInfo) => any;
@@ -2644,7 +2734,6 @@ onDataCellContextMenu?: (data: TargetCellInfo) => any;
2644
2734
  onDataCellMouseDown?: (data: TargetCellInfo) => any;
2645
2735
  onDataCellMouseUp?: (data: TargetCellInfo) => any;
2646
2736
  onDataCellMouseMove?: (data: TargetCellInfo) => any;
2647
- onDataCellTrendIconClick?: (meta: ViewMeta) => any;
2648
2737
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell[]) => any;
2649
2738
  onDataCellSelectMove?: (metas: ViewMetaData[]) => any;
2650
2739
  onCornerCellHover?: (data: TargetCellInfo) => any;
@@ -2670,16 +2759,7 @@ filteredValues: string[];
2670
2759
  onRangeFiltered?: (data: ViewMetaData[]) => any;
2671
2760
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
2672
2761
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
2673
- onLayoutCellScroll?: (position: CellScrollPosition) => any;
2674
2762
  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
2763
  onBeforeRender?: () => any;
2684
2764
  onAfterRender?: () => any;
2685
2765
  onMounted?: (spreadsheet: SpreadSheet) => any;
@@ -2720,14 +2800,18 @@ onMouseMove?: (event: MouseEvent) => any;
2720
2800
  onSelected?: (cells: S2CellType<ViewMeta>[]) => any;
2721
2801
  onReset?: (event: KeyboardEvent) => any;
2722
2802
  onLinkFieldJump?: (data: {
2723
- key: string;
2803
+ field: string;
2724
2804
  record: RawData;
2725
2805
  }) => any;
2726
2806
  onScroll?: (position: CellScrollPosition) => any;
2807
+ onLayoutAfterRealDataCellRender?: (options: {
2808
+ add: [number, number][];
2809
+ remove: [number, number][];
2810
+ spreadsheet: SpreadSheet;
2811
+ }) => any;
2727
2812
  onRowCellBrushSelection?: (event: GEvent) => any;
2728
2813
  onColCellBrushSelection?: (event: GEvent) => any;
2729
2814
  onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
2730
- onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
2731
2815
  }, {
2732
2816
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
2733
2817
  loading: boolean;
@@ -2747,6 +2831,8 @@ declare interface Point {
2747
2831
  y: number;
2748
2832
  }
2749
2833
 
2834
+ declare type PointerEventHandler = (event: PointerEvent) => void;
2835
+
2750
2836
  declare interface PointObject {
2751
2837
  x: number;
2752
2838
  y: number;
@@ -2790,7 +2876,9 @@ declare enum ResizeAreaEffect {
2790
2876
  }
2791
2877
 
2792
2878
  declare enum ResizeDirectionType {
2879
+ /** 水平方向 resize */
2793
2880
  Horizontal = "col",
2881
+ /** 垂直方向 resize */
2794
2882
  Vertical = "row"
2795
2883
  }
2796
2884
 
@@ -2812,8 +2900,6 @@ declare interface ResizeInfo_2 {
2812
2900
  effect: ResizeAreaEffect;
2813
2901
  isResizeArea?: boolean;
2814
2902
  isResizeMask?: boolean;
2815
- /** 字段id */
2816
- id: string;
2817
2903
  /** 当前拖拽热区对应的节点信息 */
2818
2904
  meta: Node_2_2 | ViewMeta_2;
2819
2905
  /** 拖拽后的宽度 */
@@ -2823,11 +2909,18 @@ declare interface ResizeInfo_2 {
2823
2909
  }
2824
2910
 
2825
2911
  declare interface ResizeInteractionOptions {
2912
+ /** 行头垂直方向 resize -> 针对行头叶子节点 */
2826
2913
  rowCellVertical?: boolean;
2914
+ /** 角头水平方向 resize -> 针对角头 CornerNodeType 为 Series 和 Row */
2827
2915
  cornerCellHorizontal?: boolean;
2916
+ /** 列头水平方向 resize -> 针对列头叶子节点 */
2828
2917
  colCellHorizontal?: boolean;
2918
+ /** 列头垂直方向 resize -> 针对列头各层级节点 */
2829
2919
  colCellVertical?: boolean;
2920
+ /** 行高调整时,影响当前行还是全部行 */
2830
2921
  rowResizeType?: ResizeType;
2922
+ /** 列高调整时,影响当前列还是全部列 */
2923
+ colResizeType?: ResizeType;
2831
2924
  disable?: (resizeInfo: ResizeInfo_2) => boolean;
2832
2925
  visible?: (cell: S2CellType_2) => boolean;
2833
2926
  }
@@ -2867,7 +2960,7 @@ declare class RootInteraction {
2867
2960
  isHoverState(): boolean;
2868
2961
  isActiveCell(cell: S2CellType_2): boolean;
2869
2962
  isSelectedCell(cell: S2CellType_2): boolean;
2870
- getCells(): CellMeta[];
2963
+ getCells(cellType?: CellTypes[]): CellMeta[];
2871
2964
  getActiveCells(): S2CellType_2[];
2872
2965
  clearStyleIndependent(): void;
2873
2966
  getPanelGroupAllUnSelectedDataCells(): DataCell_2[];
@@ -2898,6 +2991,7 @@ declare class RootInteraction {
2898
2991
  clearHoverTimer(): void;
2899
2992
  setHoverTimer(timer: number): void;
2900
2993
  getHoverTimer(): number | null;
2994
+ getSelectedCellHighlight(): InteractionCellSelectedHighlightType;
2901
2995
  }
2902
2996
 
2903
2997
  declare class RowCell extends HeaderCell {
@@ -2908,6 +3002,8 @@ declare class RowCell extends HeaderCell {
2908
3002
  protected showTreeIcon(): boolean;
2909
3003
  protected showTreeLeafNodeAlignDot(): boolean | undefined;
2910
3004
  protected getParentTreeIconCfg(): any;
3005
+ private onTreeIconClick;
3006
+ private emitCollapseEvent;
2911
3007
  protected drawTreeIcon(): void;
2912
3008
  protected drawTreeLeafNodeAlignDot(): void;
2913
3009
  protected isBolderText(): boolean;
@@ -2932,22 +3028,36 @@ declare class RowCell extends HeaderCell {
2932
3028
  protected getIconYPosition(): number;
2933
3029
  }
2934
3030
 
2935
- declare type RowCellCollapseTreeRowsType = {
2936
- id: string;
3031
+ declare type RowCellCollapsedParams_2 = {
2937
3032
  isCollapsed: boolean;
2938
3033
  node: Node_2_2;
3034
+ collapseFields?: RowCellStyle['collapseFields'];
2939
3035
  };
2940
3036
 
2941
- declare interface RowCfg {
2942
- width?: CellCustomWidth;
2943
- widthByField?: Record<string, number>;
2944
- heightByField?: Record<string, number>;
3037
+ declare interface RowCellStyle extends BaseCellStyle {
3038
+ /**
3039
+ * 是否展示树状分层下的层级占位点
3040
+ */
3041
+ showTreeLeafNodeAlignDot?: boolean;
3042
+ /**
3043
+ * 收起所有 (对应角头收起展开按钮)
3044
+ */
3045
+ collapseAll?: boolean | null;
2945
3046
  /**
2946
- * @deprecated (已废弃, 请使用 style.treeRowsWidth 代替) tree row width(拖拽产生的,无需主动设置)
3047
+ * 折叠节点
3048
+ * 优先级大于 collapseAll 和 expandDepth
3049
+ * id 级别: { ['root[&]浙江省']: true, ['root[&]河南省']: false } 即 只有 浙江省 对应的节点才会被折叠
3050
+ * field 级别: { city: true, type: false } : 即 所有 city 对应的维值都会被折叠
2947
3051
  */
2948
- treeRowsWidth?: number;
3052
+ collapseFields?: Record<string, boolean> | null;
3053
+ /**
3054
+ * 行头默认展开到第几层 (从 0 开始)
3055
+ */
3056
+ expandDepth?: number | null;
2949
3057
  }
2950
3058
 
3059
+ declare type RowData = Data | CellData[];
3060
+
2951
3061
  /**
2952
3062
  * Row Header for SpreadSheet
2953
3063
  */
@@ -2958,51 +3068,136 @@ declare class RowHeader extends BaseHeader<RowHeaderConfig> {
2958
3068
  protected clip(): void;
2959
3069
  }
2960
3070
 
2961
- declare interface RowHeaderConfig extends BaseHeaderConfig {
2962
- hierarchyType: S2Options_2['hierarchyType'];
2963
- linkFields: string[];
2964
- }
3071
+ declare type RowHeaderConfig = BaseHeaderConfig;
2965
3072
 
2966
3073
  declare interface S2BasicOptions<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> {
3074
+ /**
3075
+ * 表格宽度
3076
+ */
2967
3077
  width?: number;
3078
+ /**
3079
+ * 表格高度
3080
+ */
2968
3081
  height?: number;
3082
+ /**
3083
+ * 开启调试模式
3084
+ */
2969
3085
  debug?: boolean;
2970
- hierarchyType?: 'grid' | 'tree';
2971
- conditions?: Conditions;
2972
- totals?: Totals | null;
2973
- tooltip?: Tooltip<T, Icon, Text>;
3086
+ /**
3087
+ * 字段标记
3088
+ */
3089
+ conditions?: Conditions | null;
3090
+ /**
3091
+ * 提示信息
3092
+ */
3093
+ tooltip?: Tooltip<T, Icon, Text> | null;
3094
+ /**
3095
+ * 交互配置
3096
+ */
2974
3097
  interaction?: InteractionOptions;
3098
+ /**
3099
+ * 分页配置
3100
+ */
2975
3101
  pagination?: P;
2976
- frozenRowHeader?: boolean;
3102
+ /**
3103
+ * 自定义序号列文本, 默认为 "序号"
3104
+ */
2977
3105
  seriesNumberText?: string;
3106
+ /**
3107
+ * 是否显示序号
3108
+ */
2978
3109
  showSeriesNumber?: boolean;
3110
+ /**
3111
+ * 是否显示表头默认操作图标
3112
+ */
2979
3113
  showDefaultHeaderActionIcon?: boolean;
3114
+ /**
3115
+ * 自定义表头图标配置
3116
+ */
2980
3117
  headerActionIcons?: HeaderActionIcon[];
3118
+ /**
3119
+ * 自定义 SVG 图标
3120
+ */
2981
3121
  customSVGIcons?: CustomSVGIcon[];
3122
+ /**
3123
+ * 表格单元格宽高配置
3124
+ */
2982
3125
  style?: S2Style;
3126
+ /**
3127
+ * 是否开启高清适配
3128
+ */
2983
3129
  hdAdapter?: boolean;
2984
- mergedCellsInfo?: MergedCellInfo[][];
3130
+ /**
3131
+ * 空值单元格占位符
3132
+ */
2985
3133
  placeholder?: ((meta: Record<string, any>) => string) | string;
2986
- cornerText?: string;
2987
- cornerExtraFieldText?: string;
3134
+ /**
3135
+ * 是否支持 CSS 的 transform 属性
3136
+ */
2988
3137
  supportCSSTransform?: boolean;
3138
+ /**
3139
+ * 自定义 DPR, 默认 "window.devicePixelRatio"
3140
+ */
2989
3141
  devicePixelRatio?: number;
2990
- /** ***********Mobile Options Config**************** */
3142
+ /**
3143
+ * 设备类型: pc / mobile
3144
+ */
2991
3145
  device?: DeviceType;
2992
- /** ***********CUSTOM CELL/HEADER HOOKS**************** */
3146
+ /** *********** 自定义单元格 hooks **************** */
3147
+ /**
3148
+ * 自定义数值单元格
3149
+ */
2993
3150
  dataCell?: DataCellCallback;
3151
+ /**
3152
+ * 自定义角头单元格
3153
+ */
2994
3154
  cornerCell?: CellCallback<CornerHeaderConfig>;
3155
+ /**
3156
+ * 自定义序号单元格
3157
+ */
2995
3158
  seriesNumberCell?: CellCallback<BaseHeaderConfig>;
3159
+ /**
3160
+ * 自定义行头单元格
3161
+ */
2996
3162
  rowCell?: CellCallback<RowHeaderConfig>;
3163
+ /**
3164
+ * 自定义列头单元格
3165
+ */
2997
3166
  colCell?: CellCallback<ColHeaderConfig>;
3167
+ /**
3168
+ * 自定义表格框架/边框
3169
+ */
2998
3170
  frame?: FrameCallback;
3171
+ /**
3172
+ * 自定义角头
3173
+ */
2999
3174
  cornerHeader?: CornerHeaderCallback;
3000
- /** ***********CUSTOM LIFECYCLE HOOKS**************** */
3175
+ /** *********** 自定义布局 hooks **************** */
3176
+ /**
3177
+ * 自定义单元格层级, 动态增加/删除单元格
3178
+ */
3001
3179
  layoutHierarchy?: LayoutHierarchy;
3180
+ /**
3181
+ * 自定义节点排列顺序 (树状模式有效)
3182
+ */
3002
3183
  layoutArrange?: LayoutArrange;
3184
+ /**
3185
+ * 自定义单元格对应节点坐标/宽高
3186
+ */
3003
3187
  layoutCoordinate?: LayoutCoordinate;
3188
+ /**
3189
+ * 自定义数据坐标, 动态修改单元格数值
3190
+ */
3004
3191
  layoutDataPosition?: LayoutDataPosition;
3192
+ /**
3193
+ * 自定义序号节点
3194
+ */
3005
3195
  layoutSeriesNumberNodes?: LayoutSeriesNumberNodes;
3196
+ /** *********** 数据集 **************** */
3197
+ /**
3198
+ * 自定义数据集
3199
+ */
3200
+ dataSet?: (spreadsheet: SpreadSheet_2) => BaseDataSet_2;
3006
3201
  }
3007
3202
 
3008
3203
  declare type S2CellType_2<T extends SimpleBBox = ViewMeta_2> = DataCell_2 | HeaderCell | ColCell | CornerCell | RowCell | SeriesNumberCell | MergedCell | TableCornerCell | TableSeriesCell | BaseCell<T>;
@@ -3025,9 +3220,12 @@ declare enum S2Event {
3025
3220
  ROW_CELL_MOUSE_DOWN = "row-cell:mouse-down",
3026
3221
  ROW_CELL_MOUSE_UP = "row-cell:mouse-up",
3027
3222
  ROW_CELL_MOUSE_MOVE = "row-cell:mouse-move",
3028
- ROW_CELL_COLLAPSE_TREE_ROWS = "row-cell:collapsed-tree-rows",
3029
3223
  ROW_CELL_SCROLL = "row-cell:scroll",
3030
3224
  ROW_CELL_BRUSH_SELECTION = "row-cell:brush-selection",
3225
+ ROW_CELL_COLLAPSED = "row-cell:collapsed",
3226
+ ROW_CELL_ALL_COLLAPSED = "row-cell:all-collapsed",
3227
+ ROW_CELL_COLLAPSED__PRIVATE = "row-cell:collapsed__private",
3228
+ ROW_CELL_ALL_COLLAPSED__PRIVATE = "row-cell:all-collapsed__private",
3031
3229
  /** ================ Col Cell ================ */
3032
3230
  COL_CELL_HOVER = "col-cell:hover",
3033
3231
  COL_CELL_CLICK = "col-cell:click",
@@ -3037,6 +3235,8 @@ declare enum S2Event {
3037
3235
  COL_CELL_MOUSE_UP = "col-cell:mouse-up",
3038
3236
  COL_CELL_MOUSE_MOVE = "col-cell:mouse-move",
3039
3237
  COL_CELL_BRUSH_SELECTION = "col-cell:brush-selection",
3238
+ COL_CELL_EXPANDED = "col-cell:expanded",
3239
+ COL_CELL_HIDDEN = "col-cell:hidden",
3040
3240
  /** ================ Data Cell ================ */
3041
3241
  DATA_CELL_HOVER = "data-cell:hover",
3042
3242
  DATA_CELL_CLICK = "data-cell:click",
@@ -3045,7 +3245,6 @@ declare enum S2Event {
3045
3245
  DATA_CELL_MOUSE_UP = "data-cell:mouse-up",
3046
3246
  DATA_CELL_MOUSE_DOWN = "data-cell:mouse-down",
3047
3247
  DATA_CELL_MOUSE_MOVE = "data-cell:mouse-move",
3048
- DATA_CELL_TREND_ICON_CLICK = "data-cell:trend-icon-click",
3049
3248
  DATA_CELL_BRUSH_SELECTION = "data-cell:brush-selection",
3050
3249
  DATA_CELL_SELECT_MOVE = "data-cell:select-move",
3051
3250
  /** ================ Corner Cell ================ */
@@ -3072,15 +3271,9 @@ declare enum S2Event {
3072
3271
  RANGE_FILTERED = "filter:range-filtered",
3073
3272
  /** ================ Table Layout ================ */
3074
3273
  LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
3075
- /** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
3076
- LAYOUT_CELL_SCROLL = "layout:cell-scroll",
3077
3274
  LAYOUT_CELL_MOUNTED = "layout:cell-mounted",
3078
3275
  LAYOUT_PAGINATION = "layout:pagination",
3079
- LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
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",
3276
+ LAYOUT_AFTER_REAL_DATA_CELL_RENDER = "layout:after-real-data-cell-render",
3084
3277
  LAYOUT_AFTER_RENDER = "layout:after-render",
3085
3278
  LAYOUT_BEFORE_RENDER = "layout:before-render",
3086
3279
  LAYOUT_DESTROY = "layout:destroy",
@@ -3121,41 +3314,93 @@ declare interface S2EventHandler {
3121
3314
 
3122
3315
  declare type S2MountContainer_2 = string | Element;
3123
3316
 
3124
- declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>, S2TableSheetOptions, S2PivotSheetOptions {
3125
- dataSet?: (spreadsheet: SpreadSheet_2) => BaseDataSet_2;
3317
+ declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon = Element | string, Text = string> extends S2BasicOptions<T, P, Icon, Text>, S2PivotSheetOptions {
3318
+ frozen?: S2PivotSheetFrozenOptions & S2TableSheetFrozenOptions;
3319
+ }
3320
+
3321
+ declare interface S2PivotSheetFrozenOptions {
3322
+ /**
3323
+ * 是否冻结行头 (含角头区域, 透视表有效),
3324
+ * 当值为 number 时,标识行头冻结的最大区域,取值范围: (0, 1),0 表示不固定行头
3325
+ * 当值为 boolean 时,true 对应冻结最大区域为 0.5, false 对应 0
3326
+ */
3327
+ rowHeader?: boolean | number;
3126
3328
  }
3127
3329
 
3128
3330
  declare interface S2PivotSheetOptions {
3331
+ /**
3332
+ * 行头布局类型, grid: 平铺网格 | tree: 树状结构
3333
+ */
3334
+ hierarchyType?: 'grid' | 'tree';
3335
+ /**
3336
+ * 小计/总计配置
3337
+ */
3338
+ totals?: Totals | null;
3339
+ /**
3340
+ * 合并单元格配置
3341
+ */
3342
+ mergedCellsInfo?: MergedCellInfo[][];
3343
+ /**
3344
+ * 自定义角头文本
3345
+ */
3346
+ cornerText?: string;
3347
+ /**
3348
+ * 自定义数值虚拟字段文本, 默认 [数值]
3349
+ */
3350
+ cornerExtraFieldText?: string;
3129
3351
  }
3130
3352
 
3131
3353
  declare interface S2RenderOptions_2 {
3354
+ /**
3355
+ * 是否重新加载数据
3356
+ */
3132
3357
  reloadData?: boolean;
3358
+ /**
3359
+ * 是否重新生成数据集
3360
+ */
3133
3361
  reBuildDataSet?: boolean;
3362
+ /**
3363
+ * 是否重新生成列头隐藏信息
3364
+ */
3134
3365
  reBuildHiddenColumnsDetail?: boolean;
3135
3366
  }
3136
3367
 
3137
3368
  declare interface S2Style {
3369
+ /**
3370
+ * 布局类型
3371
+ */
3138
3372
  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
3373
  /**
3149
- * @deprecated use options.deviceType instead
3374
+ * 数值单元格配置
3150
3375
  */
3151
- device?: DeviceType;
3376
+ dataCell?: DataCellStyle | null;
3377
+ /**
3378
+ * 列头单元格配置
3379
+ */
3380
+ colCell?: ColCellStyle | null;
3381
+ /**
3382
+ * 行头单元格配置
3383
+ */
3384
+ rowCell?: RowCellStyle | null;
3152
3385
  }
3153
3386
 
3154
- declare interface S2TableSheetOptions {
3155
- frozenRowCount?: number;
3156
- frozenColCount?: number;
3157
- frozenTrailingRowCount?: number;
3158
- frozenTrailingColCount?: number;
3387
+ declare interface S2TableSheetFrozenOptions {
3388
+ /**
3389
+ * 行头冻结数量 (明细表有效)
3390
+ */
3391
+ rowCount?: number;
3392
+ /**
3393
+ * 列头冻结数量 (明细表有效)
3394
+ */
3395
+ colCount?: number;
3396
+ /**
3397
+ * 行尾冻结数量 (明细表有效)
3398
+ */
3399
+ trailingRowCount?: number;
3400
+ /**
3401
+ * 列尾冻结数量 (明细表有效)
3402
+ */
3403
+ trailingColCount?: number;
3159
3404
  }
3160
3405
 
3161
3406
  declare interface S2Theme extends CellThemes {
@@ -3178,7 +3423,6 @@ declare class ScrollBar extends Group {
3178
3423
  trackShape: DisplayObject;
3179
3424
  thumbShape: DisplayObject;
3180
3425
  private startPos;
3181
- private isMobile;
3182
3426
  private clearEvents;
3183
3427
  private eventHandlers;
3184
3428
  private scrollFrameId;
@@ -3221,10 +3465,10 @@ declare class ScrollBar extends Group {
3221
3465
  private onStartEvent;
3222
3466
  private bindLaterEvent;
3223
3467
  private onTrackClick;
3224
- private onMouseMove;
3225
- private onMouseUp;
3226
- private onTrackMouseOver;
3227
- private onTrackMouseOut;
3468
+ private onPointerMove;
3469
+ private onPointerUp;
3470
+ private onTrackPointerOver;
3471
+ private onTrackPointerOut;
3228
3472
  private validateRange;
3229
3473
  }
3230
3474
 
@@ -3309,7 +3553,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
3309
3553
  protected offset(): void;
3310
3554
  }
3311
3555
 
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" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
3556
+ export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
3557
  s2Ref: ShallowRef<SheetExpose>;
3314
3558
  sheetType: ComputedRef<DefineComponent< {
3315
3559
  sheetType: PropType<SheetType>;
@@ -3337,14 +3581,12 @@ type: PropType<Adaptive>;
3337
3581
  default: Adaptive;
3338
3582
  };
3339
3583
  onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
3340
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
3341
3584
  onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
3342
3585
  }, {
3343
3586
  s2Ref: ShallowRef<SheetExpose>;
3344
3587
  options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
3345
3588
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3346
3589
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
3347
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
3348
3590
  sheetUpdate: SheetUpdateCallback;
3349
3591
  rowCellHover: (data: TargetCellInfo_2) => void;
3350
3592
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -3353,11 +3595,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
3353
3595
  rowCellMouseDown: (data: TargetCellInfo_2) => void;
3354
3596
  rowCellMouseUp: (data: TargetCellInfo_2) => void;
3355
3597
  rowCellMouseMove: (data: TargetCellInfo_2) => void;
3356
- rowCellCollapseTreeRows: (params: {
3357
- id: number;
3358
- isCollapsed: boolean;
3359
- node: Node_2_2;
3360
- }) => void;
3598
+ rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
3599
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
3361
3600
  rowCellScroll: (position: CellScrollPosition_2) => void;
3362
3601
  colCellHover: (data: TargetCellInfo_2) => void;
3363
3602
  colCellClick: (data: TargetCellInfo_2) => void;
@@ -3366,6 +3605,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
3366
3605
  colCellMouseDown: (data: TargetCellInfo_2) => void;
3367
3606
  colCellMouseUp: (data: TargetCellInfo_2) => void;
3368
3607
  colCellMouseMove: (data: TargetCellInfo_2) => void;
3608
+ colCellExpanded: (node: Node_2_2) => void;
3609
+ colCellHidden: (data: {
3610
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
3611
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
3612
+ }) => void;
3369
3613
  dataCellHover: (data: TargetCellInfo_2) => void;
3370
3614
  dataCellClick: (data: TargetCellInfo_2) => void;
3371
3615
  dataCellDoubleClick: (data: TargetCellInfo_2) => void;
@@ -3373,7 +3617,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
3373
3617
  dataCellMouseDown: (data: TargetCellInfo_2) => void;
3374
3618
  dataCellMouseUp: (data: TargetCellInfo_2) => void;
3375
3619
  dataCellMouseMove: (data: TargetCellInfo_2) => void;
3376
- dataCellTrendIconClick: (meta: ViewMeta_2) => void;
3377
3620
  dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
3378
3621
  dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
3379
3622
  cornerCellHover: (data: TargetCellInfo_2) => void;
@@ -3391,7 +3634,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
3391
3634
  mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
3392
3635
  mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
3393
3636
  rangeSort: (params: SortParams_2) => void;
3394
- rangeSorted: (event: FederatedPointerEvent_2) => void;
3637
+ rangeSorted: (event: FederatedPointerEvent) => void;
3395
3638
  rangeFilter: (data: {
3396
3639
  filterKey: string;
3397
3640
  filteredValues: string[];
@@ -3399,16 +3642,7 @@ filteredValues: string[];
3399
3642
  rangeFiltered: (data: ViewMetaData_2[]) => void;
3400
3643
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
3401
3644
  layoutPagination: (data: LayoutPaginationParams) => void;
3402
- layoutCellScroll: (position: CellScrollPosition_2) => void;
3403
3645
  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
3646
  beforeRender: () => void;
3413
3647
  afterRender: () => void;
3414
3648
  mounted: (spreadsheet: SpreadSheet_2) => void;
@@ -3435,26 +3669,31 @@ resizeInfo?: ResizeInfo_2;
3435
3669
  keyBoardDown: (event: KeyboardEvent) => void;
3436
3670
  keyBoardUp: (event: KeyboardEvent) => void;
3437
3671
  copied: (copyData: string) => void;
3438
- actionIconHover: (event: FederatedPointerEvent_2) => void;
3439
- actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
3440
- actionIconClick: (event: FederatedPointerEvent_2) => void;
3441
- contextMenu: (event: FederatedPointerEvent_2) => void;
3442
- click: (event: FederatedPointerEvent_2) => void;
3443
- hover: (event: FederatedPointerEvent_2) => void;
3444
- doubleClick: (event: FederatedPointerEvent_2) => void;
3445
- mouseHover: (event: FederatedPointerEvent_2) => void;
3672
+ actionIconHover: (event: FederatedPointerEvent) => void;
3673
+ actionIconHoverOff: (event: FederatedPointerEvent) => void;
3674
+ actionIconClick: (event: FederatedPointerEvent) => void;
3675
+ contextMenu: (event: FederatedPointerEvent) => void;
3676
+ click: (event: FederatedPointerEvent) => void;
3677
+ hover: (event: FederatedPointerEvent) => void;
3678
+ doubleClick: (event: FederatedPointerEvent) => void;
3679
+ mouseHover: (event: FederatedPointerEvent) => void;
3446
3680
  mouseUp: (event: MouseEvent) => void;
3447
3681
  mouseDown: (event: MouseEvent) => void;
3448
3682
  mouseMove: (event: MouseEvent) => void;
3449
3683
  selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
3450
3684
  reset: (event: KeyboardEvent) => void;
3451
3685
  linkFieldJump: (data: {
3452
- key: string;
3686
+ field: string;
3453
3687
  record: RawData_2;
3454
3688
  }) => void;
3455
3689
  scroll: (position: CellScrollPosition_2) => void;
3456
- rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3457
- colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3690
+ layoutAfterRealDataCellRender: (options: {
3691
+ add: [number, number][];
3692
+ remove: [number, number][];
3693
+ spreadsheet: SpreadSheet_2;
3694
+ }) => void;
3695
+ rowCellBrushSelection: (event: FederatedPointerEvent) => void;
3696
+ colCellBrushSelection: (event: FederatedPointerEvent) => void;
3458
3697
  }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
3459
3698
  sheetType: PropType<SheetType>;
3460
3699
  dataCfg: PropType<S2DataConfig_2>;
@@ -3481,7 +3720,6 @@ type: PropType<Adaptive>;
3481
3720
  default: Adaptive;
3482
3721
  };
3483
3722
  onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
3484
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
3485
3723
  onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
3486
3724
  }>> & {
3487
3725
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
@@ -3492,11 +3730,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
3492
3730
  onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
3493
3731
  onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
3494
3732
  onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
3495
- onRowCellCollapseTreeRows?: (params: {
3496
- id: number;
3497
- isCollapsed: boolean;
3498
- node: Node_2_2;
3499
- }) => any;
3733
+ onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
3734
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
3500
3735
  onRowCellScroll?: (position: CellScrollPosition_2) => any;
3501
3736
  onColCellHover?: (data: TargetCellInfo_2) => any;
3502
3737
  onColCellClick?: (data: TargetCellInfo_2) => any;
@@ -3505,6 +3740,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
3505
3740
  onColCellMouseDown?: (data: TargetCellInfo_2) => any;
3506
3741
  onColCellMouseUp?: (data: TargetCellInfo_2) => any;
3507
3742
  onColCellMouseMove?: (data: TargetCellInfo_2) => any;
3743
+ onColCellExpanded?: (node: Node_2_2) => any;
3744
+ onColCellHidden?: (data: {
3745
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
3746
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
3747
+ }) => any;
3508
3748
  onDataCellHover?: (data: TargetCellInfo_2) => any;
3509
3749
  onDataCellClick?: (data: TargetCellInfo_2) => any;
3510
3750
  onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
@@ -3512,7 +3752,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
3512
3752
  onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
3513
3753
  onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
3514
3754
  onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
3515
- onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
3516
3755
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
3517
3756
  onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
3518
3757
  onCornerCellHover?: (data: TargetCellInfo_2) => any;
@@ -3530,7 +3769,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
3530
3769
  onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
3531
3770
  onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
3532
3771
  onRangeSort?: (params: SortParams_2) => any;
3533
- onRangeSorted?: (event: FederatedPointerEvent_2) => any;
3772
+ onRangeSorted?: (event: FederatedPointerEvent) => any;
3534
3773
  onRangeFilter?: (data: {
3535
3774
  filterKey: string;
3536
3775
  filteredValues: string[];
@@ -3538,16 +3777,7 @@ filteredValues: string[];
3538
3777
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
3539
3778
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
3540
3779
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
3541
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
3542
3780
  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
3781
  onBeforeRender?: () => any;
3552
3782
  onAfterRender?: () => any;
3553
3783
  onMounted?: (spreadsheet: SpreadSheet_2) => any;
@@ -3574,28 +3804,32 @@ resizeInfo?: ResizeInfo_2;
3574
3804
  onKeyBoardDown?: (event: KeyboardEvent) => any;
3575
3805
  onKeyBoardUp?: (event: KeyboardEvent) => any;
3576
3806
  onCopied?: (copyData: string) => any;
3577
- onActionIconHover?: (event: FederatedPointerEvent_2) => any;
3578
- onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
3579
- onActionIconClick?: (event: FederatedPointerEvent_2) => any;
3580
- onContextMenu?: (event: FederatedPointerEvent_2) => any;
3581
- onClick?: (event: FederatedPointerEvent_2) => any;
3582
- onHover?: (event: FederatedPointerEvent_2) => any;
3583
- onDoubleClick?: (event: FederatedPointerEvent_2) => any;
3584
- onMouseHover?: (event: FederatedPointerEvent_2) => any;
3807
+ onActionIconHover?: (event: FederatedPointerEvent) => any;
3808
+ onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
3809
+ onActionIconClick?: (event: FederatedPointerEvent) => any;
3810
+ onContextMenu?: (event: FederatedPointerEvent) => any;
3811
+ onClick?: (event: FederatedPointerEvent) => any;
3812
+ onHover?: (event: FederatedPointerEvent) => any;
3813
+ onDoubleClick?: (event: FederatedPointerEvent) => any;
3814
+ onMouseHover?: (event: FederatedPointerEvent) => any;
3585
3815
  onMouseUp?: (event: MouseEvent) => any;
3586
3816
  onMouseDown?: (event: MouseEvent) => any;
3587
3817
  onMouseMove?: (event: MouseEvent) => any;
3588
3818
  onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
3589
3819
  onReset?: (event: KeyboardEvent) => any;
3590
3820
  onLinkFieldJump?: (data: {
3591
- key: string;
3821
+ field: string;
3592
3822
  record: RawData_2;
3593
3823
  }) => any;
3594
3824
  onScroll?: (position: CellScrollPosition_2) => any;
3595
- onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
3596
- onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
3825
+ onLayoutAfterRealDataCellRender?: (options: {
3826
+ add: [number, number][];
3827
+ remove: [number, number][];
3828
+ spreadsheet: SpreadSheet_2;
3829
+ }) => any;
3830
+ onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
3831
+ onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
3597
3832
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
3598
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
3599
3833
  }, {
3600
3834
  options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
3601
3835
  loading: boolean;
@@ -3608,11 +3842,10 @@ showPagination: boolean | {
3608
3842
  onShowSizeChange?: (pageSize: number) => void;
3609
3843
  onChange?: (current: number) => void;
3610
3844
  };
3611
- }> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
3845
+ }> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
3846
  s2Ref: ShallowRef<SheetExpose>;
3613
3847
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3614
3848
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
3615
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
3616
3849
  sheetUpdate: SheetUpdateCallback;
3617
3850
  rowCellHover: (data: TargetCellInfo_2) => void;
3618
3851
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -3621,11 +3854,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
3621
3854
  rowCellMouseDown: (data: TargetCellInfo_2) => void;
3622
3855
  rowCellMouseUp: (data: TargetCellInfo_2) => void;
3623
3856
  rowCellMouseMove: (data: TargetCellInfo_2) => void;
3624
- rowCellCollapseTreeRows: (params: {
3625
- id: number;
3626
- isCollapsed: boolean;
3627
- node: Node_2_2;
3628
- }) => void;
3857
+ rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
3858
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
3629
3859
  rowCellScroll: (position: CellScrollPosition_2) => void;
3630
3860
  colCellHover: (data: TargetCellInfo_2) => void;
3631
3861
  colCellClick: (data: TargetCellInfo_2) => void;
@@ -3634,6 +3864,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
3634
3864
  colCellMouseDown: (data: TargetCellInfo_2) => void;
3635
3865
  colCellMouseUp: (data: TargetCellInfo_2) => void;
3636
3866
  colCellMouseMove: (data: TargetCellInfo_2) => void;
3867
+ colCellExpanded: (node: Node_2_2) => void;
3868
+ colCellHidden: (data: {
3869
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
3870
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
3871
+ }) => void;
3637
3872
  dataCellHover: (data: TargetCellInfo_2) => void;
3638
3873
  dataCellClick: (data: TargetCellInfo_2) => void;
3639
3874
  dataCellDoubleClick: (data: TargetCellInfo_2) => void;
@@ -3641,7 +3876,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
3641
3876
  dataCellMouseDown: (data: TargetCellInfo_2) => void;
3642
3877
  dataCellMouseUp: (data: TargetCellInfo_2) => void;
3643
3878
  dataCellMouseMove: (data: TargetCellInfo_2) => void;
3644
- dataCellTrendIconClick: (meta: ViewMeta_2) => void;
3645
3879
  dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
3646
3880
  dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
3647
3881
  cornerCellHover: (data: TargetCellInfo_2) => void;
@@ -3659,7 +3893,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
3659
3893
  mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
3660
3894
  mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
3661
3895
  rangeSort: (params: SortParams_2) => void;
3662
- rangeSorted: (event: FederatedPointerEvent_2) => void;
3896
+ rangeSorted: (event: FederatedPointerEvent) => void;
3663
3897
  rangeFilter: (data: {
3664
3898
  filterKey: string;
3665
3899
  filteredValues: string[];
@@ -3667,16 +3901,7 @@ filteredValues: string[];
3667
3901
  rangeFiltered: (data: ViewMetaData_2[]) => void;
3668
3902
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
3669
3903
  layoutPagination: (data: LayoutPaginationParams) => void;
3670
- layoutCellScroll: (position: CellScrollPosition_2) => void;
3671
3904
  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
3905
  beforeRender: () => void;
3681
3906
  afterRender: () => void;
3682
3907
  mounted: (spreadsheet: SpreadSheet_2) => void;
@@ -3703,27 +3928,32 @@ resizeInfo?: ResizeInfo_2;
3703
3928
  keyBoardDown: (event: KeyboardEvent) => void;
3704
3929
  keyBoardUp: (event: KeyboardEvent) => void;
3705
3930
  copied: (copyData: string) => void;
3706
- actionIconHover: (event: FederatedPointerEvent_2) => void;
3707
- actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
3708
- actionIconClick: (event: FederatedPointerEvent_2) => void;
3709
- contextMenu: (event: FederatedPointerEvent_2) => void;
3710
- click: (event: FederatedPointerEvent_2) => void;
3711
- hover: (event: FederatedPointerEvent_2) => void;
3712
- doubleClick: (event: FederatedPointerEvent_2) => void;
3713
- mouseHover: (event: FederatedPointerEvent_2) => void;
3931
+ actionIconHover: (event: FederatedPointerEvent) => void;
3932
+ actionIconHoverOff: (event: FederatedPointerEvent) => void;
3933
+ actionIconClick: (event: FederatedPointerEvent) => void;
3934
+ contextMenu: (event: FederatedPointerEvent) => void;
3935
+ click: (event: FederatedPointerEvent) => void;
3936
+ hover: (event: FederatedPointerEvent) => void;
3937
+ doubleClick: (event: FederatedPointerEvent) => void;
3938
+ mouseHover: (event: FederatedPointerEvent) => void;
3714
3939
  mouseUp: (event: MouseEvent) => void;
3715
3940
  mouseDown: (event: MouseEvent) => void;
3716
3941
  mouseMove: (event: MouseEvent) => void;
3717
3942
  selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
3718
3943
  reset: (event: KeyboardEvent) => void;
3719
3944
  linkFieldJump: (data: {
3720
- key: string;
3945
+ field: string;
3721
3946
  record: RawData_2;
3722
3947
  }) => void;
3723
3948
  scroll: (position: CellScrollPosition_2) => void;
3724
- rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3725
- colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3726
- }, 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" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
3949
+ layoutAfterRealDataCellRender: (options: {
3950
+ add: [number, number][];
3951
+ remove: [number, number][];
3952
+ spreadsheet: SpreadSheet_2;
3953
+ }) => void;
3954
+ rowCellBrushSelection: (event: FederatedPointerEvent) => void;
3955
+ colCellBrushSelection: (event: FederatedPointerEvent) => void;
3956
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
3957
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
3728
3958
  onRowCellHover?: (data: TargetCellInfo_2) => any;
3729
3959
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -3732,11 +3962,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
3732
3962
  onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
3733
3963
  onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
3734
3964
  onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
3735
- onRowCellCollapseTreeRows?: (params: {
3736
- id: number;
3737
- isCollapsed: boolean;
3738
- node: Node_2_2;
3739
- }) => any;
3965
+ onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
3966
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
3740
3967
  onRowCellScroll?: (position: CellScrollPosition_2) => any;
3741
3968
  onColCellHover?: (data: TargetCellInfo_2) => any;
3742
3969
  onColCellClick?: (data: TargetCellInfo_2) => any;
@@ -3745,6 +3972,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
3745
3972
  onColCellMouseDown?: (data: TargetCellInfo_2) => any;
3746
3973
  onColCellMouseUp?: (data: TargetCellInfo_2) => any;
3747
3974
  onColCellMouseMove?: (data: TargetCellInfo_2) => any;
3975
+ onColCellExpanded?: (node: Node_2_2) => any;
3976
+ onColCellHidden?: (data: {
3977
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
3978
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
3979
+ }) => any;
3748
3980
  onDataCellHover?: (data: TargetCellInfo_2) => any;
3749
3981
  onDataCellClick?: (data: TargetCellInfo_2) => any;
3750
3982
  onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
@@ -3752,7 +3984,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
3752
3984
  onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
3753
3985
  onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
3754
3986
  onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
3755
- onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
3756
3987
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
3757
3988
  onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
3758
3989
  onCornerCellHover?: (data: TargetCellInfo_2) => any;
@@ -3770,7 +4001,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
3770
4001
  onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
3771
4002
  onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
3772
4003
  onRangeSort?: (params: SortParams_2) => any;
3773
- onRangeSorted?: (event: FederatedPointerEvent_2) => any;
4004
+ onRangeSorted?: (event: FederatedPointerEvent) => any;
3774
4005
  onRangeFilter?: (data: {
3775
4006
  filterKey: string;
3776
4007
  filteredValues: string[];
@@ -3778,16 +4009,7 @@ filteredValues: string[];
3778
4009
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
3779
4010
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
3780
4011
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
3781
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
3782
4012
  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
4013
  onBeforeRender?: () => any;
3792
4014
  onAfterRender?: () => any;
3793
4015
  onMounted?: (spreadsheet: SpreadSheet_2) => any;
@@ -3814,32 +4036,35 @@ resizeInfo?: ResizeInfo_2;
3814
4036
  onKeyBoardDown?: (event: KeyboardEvent) => any;
3815
4037
  onKeyBoardUp?: (event: KeyboardEvent) => any;
3816
4038
  onCopied?: (copyData: string) => any;
3817
- onActionIconHover?: (event: FederatedPointerEvent_2) => any;
3818
- onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
3819
- onActionIconClick?: (event: FederatedPointerEvent_2) => any;
3820
- onContextMenu?: (event: FederatedPointerEvent_2) => any;
3821
- onClick?: (event: FederatedPointerEvent_2) => any;
3822
- onHover?: (event: FederatedPointerEvent_2) => any;
3823
- onDoubleClick?: (event: FederatedPointerEvent_2) => any;
3824
- onMouseHover?: (event: FederatedPointerEvent_2) => any;
4039
+ onActionIconHover?: (event: FederatedPointerEvent) => any;
4040
+ onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
4041
+ onActionIconClick?: (event: FederatedPointerEvent) => any;
4042
+ onContextMenu?: (event: FederatedPointerEvent) => any;
4043
+ onClick?: (event: FederatedPointerEvent) => any;
4044
+ onHover?: (event: FederatedPointerEvent) => any;
4045
+ onDoubleClick?: (event: FederatedPointerEvent) => any;
4046
+ onMouseHover?: (event: FederatedPointerEvent) => any;
3825
4047
  onMouseUp?: (event: MouseEvent) => any;
3826
4048
  onMouseDown?: (event: MouseEvent) => any;
3827
4049
  onMouseMove?: (event: MouseEvent) => any;
3828
4050
  onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
3829
4051
  onReset?: (event: KeyboardEvent) => any;
3830
4052
  onLinkFieldJump?: (data: {
3831
- key: string;
4053
+ field: string;
3832
4054
  record: RawData_2;
3833
4055
  }) => any;
3834
4056
  onScroll?: (position: CellScrollPosition_2) => any;
3835
- onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
3836
- onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
4057
+ onLayoutAfterRealDataCellRender?: (options: {
4058
+ add: [number, number][];
4059
+ remove: [number, number][];
4060
+ spreadsheet: SpreadSheet_2;
4061
+ }) => any;
4062
+ onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4063
+ onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
3837
4064
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
3838
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
3839
4065
  }, {}>>;
3840
4066
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3841
4067
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
3842
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
3843
4068
  sheetUpdate: SheetUpdateCallback;
3844
4069
  rowCellHover: (data: TargetCellInfo_2) => void;
3845
4070
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -3848,11 +4073,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
3848
4073
  rowCellMouseDown: (data: TargetCellInfo_2) => void;
3849
4074
  rowCellMouseUp: (data: TargetCellInfo_2) => void;
3850
4075
  rowCellMouseMove: (data: TargetCellInfo_2) => void;
3851
- rowCellCollapseTreeRows: (params: {
3852
- id: number;
3853
- isCollapsed: boolean;
3854
- node: Node_2_2;
3855
- }) => void;
4076
+ rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
4077
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
3856
4078
  rowCellScroll: (position: CellScrollPosition_2) => void;
3857
4079
  colCellHover: (data: TargetCellInfo_2) => void;
3858
4080
  colCellClick: (data: TargetCellInfo_2) => void;
@@ -3861,6 +4083,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
3861
4083
  colCellMouseDown: (data: TargetCellInfo_2) => void;
3862
4084
  colCellMouseUp: (data: TargetCellInfo_2) => void;
3863
4085
  colCellMouseMove: (data: TargetCellInfo_2) => void;
4086
+ colCellExpanded: (node: Node_2_2) => void;
4087
+ colCellHidden: (data: {
4088
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
4089
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
4090
+ }) => void;
3864
4091
  dataCellHover: (data: TargetCellInfo_2) => void;
3865
4092
  dataCellClick: (data: TargetCellInfo_2) => void;
3866
4093
  dataCellDoubleClick: (data: TargetCellInfo_2) => void;
@@ -3868,7 +4095,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
3868
4095
  dataCellMouseDown: (data: TargetCellInfo_2) => void;
3869
4096
  dataCellMouseUp: (data: TargetCellInfo_2) => void;
3870
4097
  dataCellMouseMove: (data: TargetCellInfo_2) => void;
3871
- dataCellTrendIconClick: (meta: ViewMeta_2) => void;
3872
4098
  dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
3873
4099
  dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
3874
4100
  cornerCellHover: (data: TargetCellInfo_2) => void;
@@ -3886,7 +4112,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
3886
4112
  mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
3887
4113
  mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
3888
4114
  rangeSort: (params: SortParams_2) => void;
3889
- rangeSorted: (event: FederatedPointerEvent_2) => void;
4115
+ rangeSorted: (event: FederatedPointerEvent) => void;
3890
4116
  rangeFilter: (data: {
3891
4117
  filterKey: string;
3892
4118
  filteredValues: string[];
@@ -3894,16 +4120,7 @@ filteredValues: string[];
3894
4120
  rangeFiltered: (data: ViewMetaData_2[]) => void;
3895
4121
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
3896
4122
  layoutPagination: (data: LayoutPaginationParams) => void;
3897
- layoutCellScroll: (position: CellScrollPosition_2) => void;
3898
4123
  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
4124
  beforeRender: () => void;
3908
4125
  afterRender: () => void;
3909
4126
  mounted: (spreadsheet: SpreadSheet_2) => void;
@@ -3930,27 +4147,32 @@ resizeInfo?: ResizeInfo_2;
3930
4147
  keyBoardDown: (event: KeyboardEvent) => void;
3931
4148
  keyBoardUp: (event: KeyboardEvent) => void;
3932
4149
  copied: (copyData: string) => void;
3933
- actionIconHover: (event: FederatedPointerEvent_2) => void;
3934
- actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
3935
- actionIconClick: (event: FederatedPointerEvent_2) => void;
3936
- contextMenu: (event: FederatedPointerEvent_2) => void;
3937
- click: (event: FederatedPointerEvent_2) => void;
3938
- hover: (event: FederatedPointerEvent_2) => void;
3939
- doubleClick: (event: FederatedPointerEvent_2) => void;
3940
- mouseHover: (event: FederatedPointerEvent_2) => void;
4150
+ actionIconHover: (event: FederatedPointerEvent) => void;
4151
+ actionIconHoverOff: (event: FederatedPointerEvent) => void;
4152
+ actionIconClick: (event: FederatedPointerEvent) => void;
4153
+ contextMenu: (event: FederatedPointerEvent) => void;
4154
+ click: (event: FederatedPointerEvent) => void;
4155
+ hover: (event: FederatedPointerEvent) => void;
4156
+ doubleClick: (event: FederatedPointerEvent) => void;
4157
+ mouseHover: (event: FederatedPointerEvent) => void;
3941
4158
  mouseUp: (event: MouseEvent) => void;
3942
4159
  mouseDown: (event: MouseEvent) => void;
3943
4160
  mouseMove: (event: MouseEvent) => void;
3944
4161
  selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
3945
4162
  reset: (event: KeyboardEvent) => void;
3946
4163
  linkFieldJump: (data: {
3947
- key: string;
4164
+ field: string;
3948
4165
  record: RawData_2;
3949
4166
  }) => void;
3950
4167
  scroll: (position: CellScrollPosition_2) => void;
3951
- rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3952
- colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
3953
- }, 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" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
4168
+ layoutAfterRealDataCellRender: (options: {
4169
+ add: [number, number][];
4170
+ remove: [number, number][];
4171
+ spreadsheet: SpreadSheet_2;
4172
+ }) => void;
4173
+ rowCellBrushSelection: (event: FederatedPointerEvent) => void;
4174
+ colCellBrushSelection: (event: FederatedPointerEvent) => void;
4175
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
4176
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
3955
4177
  onRowCellHover?: (data: TargetCellInfo_2) => any;
3956
4178
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -3959,11 +4181,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
3959
4181
  onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
3960
4182
  onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
3961
4183
  onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
3962
- onRowCellCollapseTreeRows?: (params: {
3963
- id: number;
3964
- isCollapsed: boolean;
3965
- node: Node_2_2;
3966
- }) => any;
4184
+ onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
4185
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
3967
4186
  onRowCellScroll?: (position: CellScrollPosition_2) => any;
3968
4187
  onColCellHover?: (data: TargetCellInfo_2) => any;
3969
4188
  onColCellClick?: (data: TargetCellInfo_2) => any;
@@ -3972,6 +4191,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
3972
4191
  onColCellMouseDown?: (data: TargetCellInfo_2) => any;
3973
4192
  onColCellMouseUp?: (data: TargetCellInfo_2) => any;
3974
4193
  onColCellMouseMove?: (data: TargetCellInfo_2) => any;
4194
+ onColCellExpanded?: (node: Node_2_2) => any;
4195
+ onColCellHidden?: (data: {
4196
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
4197
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
4198
+ }) => any;
3975
4199
  onDataCellHover?: (data: TargetCellInfo_2) => any;
3976
4200
  onDataCellClick?: (data: TargetCellInfo_2) => any;
3977
4201
  onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
@@ -3979,7 +4203,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
3979
4203
  onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
3980
4204
  onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
3981
4205
  onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
3982
- onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
3983
4206
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
3984
4207
  onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
3985
4208
  onCornerCellHover?: (data: TargetCellInfo_2) => any;
@@ -3997,7 +4220,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
3997
4220
  onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
3998
4221
  onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
3999
4222
  onRangeSort?: (params: SortParams_2) => any;
4000
- onRangeSorted?: (event: FederatedPointerEvent_2) => any;
4223
+ onRangeSorted?: (event: FederatedPointerEvent) => any;
4001
4224
  onRangeFilter?: (data: {
4002
4225
  filterKey: string;
4003
4226
  filteredValues: string[];
@@ -4005,16 +4228,7 @@ filteredValues: string[];
4005
4228
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
4006
4229
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
4007
4230
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
4008
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
4009
4231
  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
4232
  onBeforeRender?: () => any;
4019
4233
  onAfterRender?: () => any;
4020
4234
  onMounted?: (spreadsheet: SpreadSheet_2) => any;
@@ -4041,28 +4255,32 @@ resizeInfo?: ResizeInfo_2;
4041
4255
  onKeyBoardDown?: (event: KeyboardEvent) => any;
4042
4256
  onKeyBoardUp?: (event: KeyboardEvent) => any;
4043
4257
  onCopied?: (copyData: string) => any;
4044
- onActionIconHover?: (event: FederatedPointerEvent_2) => any;
4045
- onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
4046
- onActionIconClick?: (event: FederatedPointerEvent_2) => any;
4047
- onContextMenu?: (event: FederatedPointerEvent_2) => any;
4048
- onClick?: (event: FederatedPointerEvent_2) => any;
4049
- onHover?: (event: FederatedPointerEvent_2) => any;
4050
- onDoubleClick?: (event: FederatedPointerEvent_2) => any;
4051
- onMouseHover?: (event: FederatedPointerEvent_2) => any;
4258
+ onActionIconHover?: (event: FederatedPointerEvent) => any;
4259
+ onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
4260
+ onActionIconClick?: (event: FederatedPointerEvent) => any;
4261
+ onContextMenu?: (event: FederatedPointerEvent) => any;
4262
+ onClick?: (event: FederatedPointerEvent) => any;
4263
+ onHover?: (event: FederatedPointerEvent) => any;
4264
+ onDoubleClick?: (event: FederatedPointerEvent) => any;
4265
+ onMouseHover?: (event: FederatedPointerEvent) => any;
4052
4266
  onMouseUp?: (event: MouseEvent) => any;
4053
4267
  onMouseDown?: (event: MouseEvent) => any;
4054
4268
  onMouseMove?: (event: MouseEvent) => any;
4055
4269
  onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
4056
4270
  onReset?: (event: KeyboardEvent) => any;
4057
4271
  onLinkFieldJump?: (data: {
4058
- key: string;
4272
+ field: string;
4059
4273
  record: RawData_2;
4060
4274
  }) => any;
4061
4275
  onScroll?: (position: CellScrollPosition_2) => any;
4062
- onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
4063
- onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
4276
+ onLayoutAfterRealDataCellRender?: (options: {
4277
+ add: [number, number][];
4278
+ remove: [number, number][];
4279
+ spreadsheet: SpreadSheet_2;
4280
+ }) => any;
4281
+ onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4282
+ onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
4064
4283
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
4065
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
4066
4284
  }, {}>;
4067
4285
 
4068
4286
  declare type SheetComponentOptions = S2Options<TooltipContentType, Pagination & PaginationProps>;
@@ -4176,11 +4394,6 @@ declare abstract class SpreadSheet_2 extends EE {
4176
4394
  * tree type must be in strategy mode
4177
4395
  */
4178
4396
  abstract isHierarchyTreeType(): boolean;
4179
- /**
4180
- * Check whether scroll contains row header
4181
- * For now contains row header in ListSheet mode by default
4182
- */
4183
- abstract isScrollContainsRowHeader(): boolean;
4184
4397
  /**
4185
4398
  * Scroll Freeze Row Header
4186
4399
  */
@@ -4193,11 +4406,6 @@ declare abstract class SpreadSheet_2 extends EE {
4193
4406
  * Check if the value is in the columns
4194
4407
  */
4195
4408
  abstract isValueInCols(): boolean;
4196
- /**
4197
- * 避免每次新增、变更dataSet和options时,生成SpreadSheetFacetCfg
4198
- * 要多出定义匹配的问题,直接按需&部分拆分options/dataSet合并为facetCfg
4199
- */
4200
- protected abstract getFacetCfgFromDataSetAndOptions(): SpreadSheetFacetCfg;
4201
4409
  protected abstract buildFacet(): void;
4202
4410
  abstract clearDrillDownData(rowNodeId?: string, preventRender?: boolean): void;
4203
4411
  abstract handleGroupSort(event: FederatedPointerEvent, meta: Node_2_2): void;
@@ -4228,12 +4436,6 @@ declare abstract class SpreadSheet_2 extends EE {
4228
4436
  * 获取当前表格实际内容高度
4229
4437
  */
4230
4438
  getContentHeight(): number;
4231
- /**
4232
- * @param width
4233
- * @param height
4234
- * @deprecated 该方法将会在2.0被移除, 请使用 changeSheetSize 代替
4235
- */
4236
- changeSize(width?: number, height?: number): void;
4237
4439
  /**
4238
4440
  * 修改表格画布大小,不用重新加载数据
4239
4441
  * @param width
@@ -4315,12 +4517,6 @@ declare abstract class SpreadSheet_2 extends EE {
4315
4517
  getMenuDefaultSelectedKeys(nodeId: string): string[];
4316
4518
  }
4317
4519
 
4318
- declare interface SpreadSheetFacetCfg extends Fields, S2BasicOptions, S2TableSheetOptions, S2Style {
4319
- spreadsheet: SpreadSheet_2;
4320
- dataSet: BaseDataSet_2;
4321
- meta?: Meta[];
4322
- }
4323
-
4324
4520
  declare type StateShapeLayer = 'interactiveBgShape' | 'interactiveBorderShape';
4325
4521
 
4326
4522
  /**
@@ -4403,11 +4599,10 @@ declare class TableSeriesCell extends TableDataCell {
4403
4599
  protected getTextStyle(): TextTheme;
4404
4600
  }
4405
4601
 
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" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
4602
+ export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
4603
  s2Ref: ShallowRef<SheetExpose>;
4408
4604
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4409
4605
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
4410
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
4411
4606
  sheetUpdate: SheetUpdateCallback;
4412
4607
  rowCellHover: (data: TargetCellInfo_2) => void;
4413
4608
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -4416,11 +4611,8 @@ rowCellContextMenu: (data: TargetCellInfo_2) => void;
4416
4611
  rowCellMouseDown: (data: TargetCellInfo_2) => void;
4417
4612
  rowCellMouseUp: (data: TargetCellInfo_2) => void;
4418
4613
  rowCellMouseMove: (data: TargetCellInfo_2) => void;
4419
- rowCellCollapseTreeRows: (params: {
4420
- id: number;
4421
- isCollapsed: boolean;
4422
- node: Node_2_2;
4423
- }) => void;
4614
+ rowCellCollapsed: (params: RowCellCollapsedParams_2) => void;
4615
+ rowCellAllCollapsed: (isCollapsed: boolean) => void;
4424
4616
  rowCellScroll: (position: CellScrollPosition_2) => void;
4425
4617
  colCellHover: (data: TargetCellInfo_2) => void;
4426
4618
  colCellClick: (data: TargetCellInfo_2) => void;
@@ -4429,6 +4621,11 @@ colCellContextMenu: (data: TargetCellInfo_2) => void;
4429
4621
  colCellMouseDown: (data: TargetCellInfo_2) => void;
4430
4622
  colCellMouseUp: (data: TargetCellInfo_2) => void;
4431
4623
  colCellMouseMove: (data: TargetCellInfo_2) => void;
4624
+ colCellExpanded: (node: Node_2_2) => void;
4625
+ colCellHidden: (data: {
4626
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
4627
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
4628
+ }) => void;
4432
4629
  dataCellHover: (data: TargetCellInfo_2) => void;
4433
4630
  dataCellClick: (data: TargetCellInfo_2) => void;
4434
4631
  dataCellDoubleClick: (data: TargetCellInfo_2) => void;
@@ -4436,7 +4633,6 @@ dataCellContextMenu: (data: TargetCellInfo_2) => void;
4436
4633
  dataCellMouseDown: (data: TargetCellInfo_2) => void;
4437
4634
  dataCellMouseUp: (data: TargetCellInfo_2) => void;
4438
4635
  dataCellMouseMove: (data: TargetCellInfo_2) => void;
4439
- dataCellTrendIconClick: (meta: ViewMeta_2) => void;
4440
4636
  dataCellBrushSelection: (brushRangeDataCells: DataCell_2[]) => void;
4441
4637
  dataCellSelectMove: (metas: ViewMetaData_2[]) => void;
4442
4638
  cornerCellHover: (data: TargetCellInfo_2) => void;
@@ -4454,7 +4650,7 @@ mergedCellsMouseDown: (data: TargetCellInfo_2) => void;
4454
4650
  mergedCellsMouseUp: (data: TargetCellInfo_2) => void;
4455
4651
  mergedCellsMouseMove: (data: TargetCellInfo_2) => void;
4456
4652
  rangeSort: (params: SortParams_2) => void;
4457
- rangeSorted: (event: FederatedPointerEvent_2) => void;
4653
+ rangeSorted: (event: FederatedPointerEvent) => void;
4458
4654
  rangeFilter: (data: {
4459
4655
  filterKey: string;
4460
4656
  filteredValues: string[];
@@ -4462,16 +4658,7 @@ filteredValues: string[];
4462
4658
  rangeFiltered: (data: ViewMetaData_2[]) => void;
4463
4659
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
4464
4660
  layoutPagination: (data: LayoutPaginationParams) => void;
4465
- layoutCellScroll: (position: CellScrollPosition_2) => void;
4466
4661
  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
4662
  beforeRender: () => void;
4476
4663
  afterRender: () => void;
4477
4664
  mounted: (spreadsheet: SpreadSheet_2) => void;
@@ -4498,27 +4685,32 @@ resizeInfo?: ResizeInfo_2;
4498
4685
  keyBoardDown: (event: KeyboardEvent) => void;
4499
4686
  keyBoardUp: (event: KeyboardEvent) => void;
4500
4687
  copied: (copyData: string) => void;
4501
- actionIconHover: (event: FederatedPointerEvent_2) => void;
4502
- actionIconHoverOff: (event: FederatedPointerEvent_2) => void;
4503
- actionIconClick: (event: FederatedPointerEvent_2) => void;
4504
- contextMenu: (event: FederatedPointerEvent_2) => void;
4505
- click: (event: FederatedPointerEvent_2) => void;
4506
- hover: (event: FederatedPointerEvent_2) => void;
4507
- doubleClick: (event: FederatedPointerEvent_2) => void;
4508
- mouseHover: (event: FederatedPointerEvent_2) => void;
4688
+ actionIconHover: (event: FederatedPointerEvent) => void;
4689
+ actionIconHoverOff: (event: FederatedPointerEvent) => void;
4690
+ actionIconClick: (event: FederatedPointerEvent) => void;
4691
+ contextMenu: (event: FederatedPointerEvent) => void;
4692
+ click: (event: FederatedPointerEvent) => void;
4693
+ hover: (event: FederatedPointerEvent) => void;
4694
+ doubleClick: (event: FederatedPointerEvent) => void;
4695
+ mouseHover: (event: FederatedPointerEvent) => void;
4509
4696
  mouseUp: (event: MouseEvent) => void;
4510
4697
  mouseDown: (event: MouseEvent) => void;
4511
4698
  mouseMove: (event: MouseEvent) => void;
4512
4699
  selected: (cells: S2CellType_2<ViewMeta_2>[]) => void;
4513
4700
  reset: (event: KeyboardEvent) => void;
4514
4701
  linkFieldJump: (data: {
4515
- key: string;
4702
+ field: string;
4516
4703
  record: RawData_2;
4517
4704
  }) => void;
4518
4705
  scroll: (position: CellScrollPosition_2) => void;
4519
- rowCellBrushSelection: (event: FederatedPointerEvent_2) => void;
4520
- colCellBrushSelection: (event: FederatedPointerEvent_2) => void;
4521
- }, 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" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onLayoutCollapseRows" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "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" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
4706
+ layoutAfterRealDataCellRender: (options: {
4707
+ add: [number, number][];
4708
+ remove: [number, number][];
4709
+ spreadsheet: SpreadSheet_2;
4710
+ }) => void;
4711
+ rowCellBrushSelection: (event: FederatedPointerEvent) => void;
4712
+ colCellBrushSelection: (event: FederatedPointerEvent) => void;
4713
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "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" | "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
4714
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
4523
4715
  onRowCellHover?: (data: TargetCellInfo_2) => any;
4524
4716
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -4527,11 +4719,8 @@ onRowCellContextMenu?: (data: TargetCellInfo_2) => any;
4527
4719
  onRowCellMouseDown?: (data: TargetCellInfo_2) => any;
4528
4720
  onRowCellMouseUp?: (data: TargetCellInfo_2) => any;
4529
4721
  onRowCellMouseMove?: (data: TargetCellInfo_2) => any;
4530
- onRowCellCollapseTreeRows?: (params: {
4531
- id: number;
4532
- isCollapsed: boolean;
4533
- node: Node_2_2;
4534
- }) => any;
4722
+ onRowCellCollapsed?: (params: RowCellCollapsedParams_2) => any;
4723
+ onRowCellAllCollapsed?: (isCollapsed: boolean) => any;
4535
4724
  onRowCellScroll?: (position: CellScrollPosition_2) => any;
4536
4725
  onColCellHover?: (data: TargetCellInfo_2) => any;
4537
4726
  onColCellClick?: (data: TargetCellInfo_2) => any;
@@ -4540,6 +4729,11 @@ onColCellContextMenu?: (data: TargetCellInfo_2) => any;
4540
4729
  onColCellMouseDown?: (data: TargetCellInfo_2) => any;
4541
4730
  onColCellMouseUp?: (data: TargetCellInfo_2) => any;
4542
4731
  onColCellMouseMove?: (data: TargetCellInfo_2) => any;
4732
+ onColCellExpanded?: (node: Node_2_2) => any;
4733
+ onColCellHidden?: (data: {
4734
+ currentHiddenColumnsInfo: HiddenColumnsInfo_2;
4735
+ hiddenColumnsDetail: HiddenColumnsInfo_2[];
4736
+ }) => any;
4543
4737
  onDataCellHover?: (data: TargetCellInfo_2) => any;
4544
4738
  onDataCellClick?: (data: TargetCellInfo_2) => any;
4545
4739
  onDataCellDoubleClick?: (data: TargetCellInfo_2) => any;
@@ -4547,7 +4741,6 @@ onDataCellContextMenu?: (data: TargetCellInfo_2) => any;
4547
4741
  onDataCellMouseDown?: (data: TargetCellInfo_2) => any;
4548
4742
  onDataCellMouseUp?: (data: TargetCellInfo_2) => any;
4549
4743
  onDataCellMouseMove?: (data: TargetCellInfo_2) => any;
4550
- onDataCellTrendIconClick?: (meta: ViewMeta_2) => any;
4551
4744
  onDataCellBrushSelection?: (brushRangeDataCells: DataCell_2[]) => any;
4552
4745
  onDataCellSelectMove?: (metas: ViewMetaData_2[]) => any;
4553
4746
  onCornerCellHover?: (data: TargetCellInfo_2) => any;
@@ -4565,7 +4758,7 @@ onMergedCellsMouseDown?: (data: TargetCellInfo_2) => any;
4565
4758
  onMergedCellsMouseUp?: (data: TargetCellInfo_2) => any;
4566
4759
  onMergedCellsMouseMove?: (data: TargetCellInfo_2) => any;
4567
4760
  onRangeSort?: (params: SortParams_2) => any;
4568
- onRangeSorted?: (event: FederatedPointerEvent_2) => any;
4761
+ onRangeSorted?: (event: FederatedPointerEvent) => any;
4569
4762
  onRangeFilter?: (data: {
4570
4763
  filterKey: string;
4571
4764
  filteredValues: string[];
@@ -4573,16 +4766,7 @@ filteredValues: string[];
4573
4766
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
4574
4767
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
4575
4768
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
4576
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
4577
4769
  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
4770
  onBeforeRender?: () => any;
4587
4771
  onAfterRender?: () => any;
4588
4772
  onMounted?: (spreadsheet: SpreadSheet_2) => any;
@@ -4609,28 +4793,32 @@ resizeInfo?: ResizeInfo_2;
4609
4793
  onKeyBoardDown?: (event: KeyboardEvent) => any;
4610
4794
  onKeyBoardUp?: (event: KeyboardEvent) => any;
4611
4795
  onCopied?: (copyData: string) => any;
4612
- onActionIconHover?: (event: FederatedPointerEvent_2) => any;
4613
- onActionIconHoverOff?: (event: FederatedPointerEvent_2) => any;
4614
- onActionIconClick?: (event: FederatedPointerEvent_2) => any;
4615
- onContextMenu?: (event: FederatedPointerEvent_2) => any;
4616
- onClick?: (event: FederatedPointerEvent_2) => any;
4617
- onHover?: (event: FederatedPointerEvent_2) => any;
4618
- onDoubleClick?: (event: FederatedPointerEvent_2) => any;
4619
- onMouseHover?: (event: FederatedPointerEvent_2) => any;
4796
+ onActionIconHover?: (event: FederatedPointerEvent) => any;
4797
+ onActionIconHoverOff?: (event: FederatedPointerEvent) => any;
4798
+ onActionIconClick?: (event: FederatedPointerEvent) => any;
4799
+ onContextMenu?: (event: FederatedPointerEvent) => any;
4800
+ onClick?: (event: FederatedPointerEvent) => any;
4801
+ onHover?: (event: FederatedPointerEvent) => any;
4802
+ onDoubleClick?: (event: FederatedPointerEvent) => any;
4803
+ onMouseHover?: (event: FederatedPointerEvent) => any;
4620
4804
  onMouseUp?: (event: MouseEvent) => any;
4621
4805
  onMouseDown?: (event: MouseEvent) => any;
4622
4806
  onMouseMove?: (event: MouseEvent) => any;
4623
4807
  onSelected?: (cells: S2CellType_2<ViewMeta_2>[]) => any;
4624
4808
  onReset?: (event: KeyboardEvent) => any;
4625
4809
  onLinkFieldJump?: (data: {
4626
- key: string;
4810
+ field: string;
4627
4811
  record: RawData_2;
4628
4812
  }) => any;
4629
4813
  onScroll?: (position: CellScrollPosition_2) => any;
4630
- onRowCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
4631
- onColCellBrushSelection?: (event: FederatedPointerEvent_2) => any;
4814
+ onLayoutAfterRealDataCellRender?: (options: {
4815
+ add: [number, number][];
4816
+ remove: [number, number][];
4817
+ spreadsheet: SpreadSheet_2;
4818
+ }) => any;
4819
+ onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4820
+ onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
4632
4821
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
4633
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
4634
4822
  }, {}>;
4635
4823
 
4636
4824
  declare interface TargetCellInfo_2 {
@@ -4641,14 +4829,14 @@ declare interface TargetCellInfo_2 {
4641
4829
 
4642
4830
  declare type TextAlign = 'left' | 'center' | 'right';
4643
4831
 
4644
- declare interface TextAlignCfg {
4832
+ declare interface TextAlignStyle {
4645
4833
  textAlign?: TextAlign;
4646
4834
  textBaseline?: TextBaseline;
4647
4835
  }
4648
4836
 
4649
4837
  declare type TextBaseline = 'top' | 'middle' | 'bottom';
4650
4838
 
4651
- declare interface TextTheme extends TextAlignCfg {
4839
+ declare interface TextTheme extends TextAlignStyle {
4652
4840
  fontFamily?: string;
4653
4841
  fontSize?: number;
4654
4842
  fontWeight?: number | 'normal' | 'bold' | 'bolder' | 'lighter';
@@ -4666,10 +4854,22 @@ declare interface ThemeCfg_2 {
4666
4854
  declare type ThemeName = 'default' | 'colorful' | 'gray';
4667
4855
 
4668
4856
  declare interface Tooltip<T = TooltipContentType_2, Icon = Element | string, Text = string> extends BaseTooltipConfig<T, Icon, Text> {
4669
- row?: BaseTooltipConfig<T, Icon, Text>;
4670
- col?: BaseTooltipConfig<T, Icon, Text>;
4671
- corner?: BaseTooltipConfig<T, Icon, Text>;
4672
- data?: BaseTooltipConfig<T, Icon, Text>;
4857
+ /**
4858
+ * Tooltip 行头单元格配置
4859
+ */
4860
+ rowCell?: BaseTooltipConfig<T, Icon, Text>;
4861
+ /**
4862
+ * Tooltip 列头单元格配置
4863
+ */
4864
+ colCell?: BaseTooltipConfig<T, Icon, Text>;
4865
+ /**
4866
+ * Tooltip 角头单元格配置
4867
+ */
4868
+ cornerCell?: BaseTooltipConfig<T, Icon, Text>;
4869
+ /**
4870
+ * Tooltip 数值单元格配置
4871
+ */
4872
+ dataCell?: BaseTooltipConfig<T, Icon, Text>;
4673
4873
  }
4674
4874
 
4675
4875
  declare type TooltipAutoAdjustBoundary = 'body' | 'container' | null | undefined;
@@ -4710,9 +4910,17 @@ declare type TooltipInterpretationOptions = {
4710
4910
  };
4711
4911
 
4712
4912
  declare interface TooltipOperation<Icon = Element | string, Text = string> extends TooltipOperatorOptions<Icon, Text> {
4913
+ /**
4914
+ * 隐藏列 (叶子节点有效)
4915
+ */
4713
4916
  hiddenColumns?: boolean;
4714
- trend?: boolean;
4917
+ /**
4918
+ * 透视表组内排序
4919
+ */
4715
4920
  sort?: boolean;
4921
+ /**
4922
+ * 明细表排序
4923
+ */
4716
4924
  tableSort?: boolean;
4717
4925
  }
4718
4926
 
@@ -4765,10 +4973,13 @@ declare type TooltipShowOptions<T = TooltipContentType_2, Icon = Element | strin
4765
4973
 
4766
4974
  declare interface TooltipSummaryOptions {
4767
4975
  name: string | null;
4768
- value: number | string | undefined | null;
4769
- selectedData: Data[] | CellData[];
4976
+ selectedData: TooltipDataItem[];
4977
+ value: TooltipSummaryOptionsValue;
4978
+ originValue?: TooltipSummaryOptionsValue;
4770
4979
  }
4771
4980
 
4981
+ declare type TooltipSummaryOptionsValue = number | string | undefined | null;
4982
+
4772
4983
  declare interface Total {
4773
4984
  /** 是否显示总计 */
4774
4985
  showGrandTotals: boolean;
@@ -4853,6 +5064,7 @@ declare interface ViewMeta_2 {
4853
5064
  label?: string;
4854
5065
  value?: string | number;
4855
5066
  query?: Query;
5067
+ isLeaf?: boolean;
4856
5068
  [key: string]: unknown;
4857
5069
  }
4858
5070