@antv/s2-vue 2.0.0-next.4 → 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
@@ -21,14 +21,17 @@ import { ICanvas } from '@antv/g';
21
21
  import { Image as Image_2 } from '@antv/g';
22
22
  import { ImageStyleProps } from '@antv/g';
23
23
  import { LayoutResult } from '@antv/s2';
24
+ import { Line } from '@antv/g';
24
25
  import { LineStyleProps } from '@antv/g';
25
26
  import { MemoizedFunction } from 'lodash';
26
27
  import { Node as Node_2 } from '@antv/s2';
27
28
  import { Pagination } from '@antv/s2';
28
29
  import type { PaginationProps } from 'ant-design-vue';
29
30
  import { PointLike } from '@antv/g';
31
+ import { Polygon } from '@antv/g';
30
32
  import { PropType } from 'vue';
31
33
  import { RawData } from '@antv/s2';
34
+ import { Rect } from '@antv/g';
32
35
  import { Ref } from 'vue';
33
36
  import { ResizeInfo } from '@antv/s2';
34
37
  import { ResizeParams } from '@antv/s2';
@@ -42,6 +45,8 @@ import { ShallowRef } from 'vue';
42
45
  import { SortParams } from '@antv/s2';
43
46
  import { SpreadSheet } from '@antv/s2';
44
47
  import { TargetCellInfo } from '@antv/s2';
48
+ import { Text as Text_2 } from '@antv/g';
49
+ import { TextStyleProps } from '@antv/g';
45
50
  import { ThemeCfg } from '@antv/s2';
46
51
  import { Timer } from 'd3-timer';
47
52
  import { TooltipContentType } from '@antv/s2';
@@ -102,14 +107,14 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
102
107
  protected meta: T;
103
108
  protected spreadsheet: SpreadSheet_2;
104
109
  protected theme: S2Theme;
105
- protected backgroundShape: DisplayObject;
106
- protected textShape: DisplayObject;
107
- protected textShapes: DisplayObject[];
108
- protected linkFieldShape: DisplayObject;
110
+ protected backgroundShape: Rect | Polygon;
111
+ protected textShape: CustomText;
112
+ protected textShapes: CustomText[];
113
+ protected linkFieldShape: Line;
109
114
  protected actualText: string;
110
115
  protected actualTextWidth: number;
111
116
  protected conditions: Conditions;
112
- protected conditionIntervalShape: DisplayObject | undefined;
117
+ protected conditionIntervalShape: Rect | undefined;
113
118
  protected conditionIconShape: GuiIcon;
114
119
  protected conditionIconShapes: GuiIcon[];
115
120
  protected stateShapes: Map<StateShapeLayer, DisplayObject<any, any>>;
@@ -155,7 +160,7 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
155
160
  protected abstract mappingValue(condition: Condition): MappingResult | undefined | null;
156
161
  protected shouldInit(): boolean;
157
162
  getStyle<K extends keyof S2Theme = keyof CellThemes>(name?: K): DefaultCellTheme | S2Theme[K];
158
- getLinkFieldShape(): DisplayObject<any, any>;
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;
@@ -445,7 +450,7 @@ declare abstract class BaseFacet {
445
450
  calculateCellWidthHeight: () => void;
446
451
  /**
447
452
  * The purpose of this rewrite is to take into account that when rowHeader supports scrollbars
448
- 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
449
454
  * @param scrollX
450
455
  * @param scrollY
451
456
  * @public
@@ -487,22 +492,31 @@ declare abstract class BaseFacet {
487
492
  isVerticalScrollOverTheViewport: (deltaY: number) => boolean;
488
493
  isHorizontalScrollOverTheViewport: (scrollOffset: CellScrollOffset) => boolean;
489
494
  /**
490
- 在当前表格滚动分两种情况:
491
- 1. 当前表格无滚动条: 无需阻止外部容器滚动
492
- 2. 当前表格有滚动条:
493
- - 未滚动到顶部或底部: 当前表格滚动, 阻止外部容器滚动
494
- - 滚动到顶部或底部: 恢复外部容器滚动
495
+ * 在当前表格滚动分两种情况:
496
+ * 1. 当前表格无滚动条: 无需阻止外部容器滚动
497
+ * 2. 当前表格有滚动条:
498
+ * - 未滚动到顶部或底部: 当前表格滚动, 阻止外部容器滚动
499
+ * - 滚动到顶部或底部: 恢复外部容器滚动
495
500
  */
496
501
  isScrollOverTheViewport: (scrollOffset: CellScrollOffset) => boolean;
497
502
  cancelScrollFrame: () => boolean;
498
503
  clearScrollFrameIdOnMobile: () => void;
499
504
  /**
500
- https://developer.mozilla.org/zh-CN/docs/Web/CSS/overscroll-behavior
501
- 阻止外部容器滚动: 表格是虚拟滚动, 这里按照标准模拟浏览器的 [overscroll-behavior] 实现
502
- 1. auto => 只有在滚动到表格顶部或底部时才触发外部容器滚动
503
- 1. contain => 默认的滚动边界行为不变(“触底”效果或者刷新),但是临近的滚动区域不会被滚动链影响到
504
- 2. none => 临近滚动区域不受到滚动链影响,而且默认的滚动到边界的表现也被阻止
505
- 所以只要不为 `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
506
520
  */
507
521
  private stopScrollChainingIfNeeded;
508
522
  private stopScrollChaining;
@@ -664,6 +678,7 @@ declare interface BaseNodeConfig {
664
678
  height?: number;
665
679
  padding?: number;
666
680
  children?: Node_2_2[];
681
+ hiddenColumnsInfo?: HiddenColumnsInfo_2 | null;
667
682
  extra?: Record<string, any>;
668
683
  }
669
684
 
@@ -693,7 +708,6 @@ type: PropType<Adaptive>;
693
708
  default: Adaptive;
694
709
  };
695
710
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
696
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
697
711
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
698
712
  }, {
699
713
  S2_PREFIX_CLS: string;
@@ -713,7 +727,6 @@ handlePageChange: (nextCurrent: number) => void;
713
727
  handlePageSizeChange: (nextSize: number) => void;
714
728
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
715
729
  spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
716
- getSpreadSheet: (spreadsheet: SpreadSheet) => void;
717
730
  sheetUpdate: SheetUpdateCallback;
718
731
  rowCellHover: (data: TargetCellInfo) => void;
719
732
  rowCellClick: (data: TargetCellInfo) => void;
@@ -769,7 +782,6 @@ filteredValues: string[];
769
782
  rangeFiltered: (data: ViewMetaData[]) => void;
770
783
  layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
771
784
  layoutPagination: (data: LayoutPaginationParams) => void;
772
- layoutCellScroll: (position: CellScrollPosition) => void;
773
785
  layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
774
786
  beforeRender: () => void;
775
787
  afterRender: () => void;
@@ -848,7 +860,6 @@ type: PropType<Adaptive>;
848
860
  default: Adaptive;
849
861
  };
850
862
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
851
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
852
863
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
853
864
  }>> & {
854
865
  onSheetUpdate?: (params: S2RenderOptions) => any;
@@ -906,7 +917,6 @@ filteredValues: string[];
906
917
  onRangeFiltered?: (data: ViewMetaData[]) => any;
907
918
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
908
919
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
909
- onLayoutCellScroll?: (position: CellScrollPosition) => any;
910
920
  onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
911
921
  onBeforeRender?: () => any;
912
922
  onAfterRender?: () => any;
@@ -960,7 +970,6 @@ spreadsheet: SpreadSheet;
960
970
  onRowCellBrushSelection?: (event: GEvent) => any;
961
971
  onColCellBrushSelection?: (event: GEvent) => any;
962
972
  onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
963
- onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
964
973
  }, {
965
974
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
966
975
  loading: boolean;
@@ -990,8 +999,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
990
999
  };
991
1000
  themeCfg?: ThemeCfg;
992
1001
  header?: Header;
993
- /** @deprecated 1.29.0 已废弃, 请使用 onMounted 代替 */
994
- getSpreadSheet?: (spreadsheet: SpreadSheet) => void;
995
1002
  /** 底表 render callback */
996
1003
  onSheetUpdate?: SheetUpdateCallback;
997
1004
  onRowCellHover?: (data: TargetCellInfo) => void;
@@ -1048,8 +1055,6 @@ declare interface BaseSheetComponentProps<RenderHandler = unknown, PartialDrillD
1048
1055
  onRangeFiltered?: (data: ViewMetaData[]) => void;
1049
1056
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => void;
1050
1057
  onLayoutPagination?: (data: LayoutPaginationParams) => void;
1051
- /** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
1052
- onLayoutCellScroll?: (position: CellScrollPosition) => void;
1053
1058
  onLayoutCellMounted?: (cell: S2CellType) => void;
1054
1059
  onBeforeRender?: () => void;
1055
1060
  onAfterRender?: () => void;
@@ -1163,7 +1168,6 @@ declare interface BulletTheme {
1163
1168
  width: number;
1164
1169
  height: number;
1165
1170
  fill?: string;
1166
- color?: string;
1167
1171
  opacity?: number;
1168
1172
  };
1169
1173
  rangeColors: RangeColors;
@@ -1277,8 +1281,6 @@ declare interface CellTheme {
1277
1281
  verticalBorderWidth?: number;
1278
1282
  padding?: Padding;
1279
1283
  interactionState?: InteractionState;
1280
- miniBarChartHeight?: number;
1281
- miniBarChartFillColor?: string;
1282
1284
  }
1283
1285
 
1284
1286
  declare type CellThemes = {
@@ -1395,6 +1397,23 @@ declare interface Conditions {
1395
1397
  icon?: IconCondition[];
1396
1398
  }
1397
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
+
1398
1417
  declare class CornerBBox extends BaseBBox {
1399
1418
  calculateBBox(): void;
1400
1419
  private getCornerBBoxOriginalHeight;
@@ -1411,10 +1430,6 @@ declare class CornerCell extends HeaderCell {
1411
1430
  protected getBorderPositions(): CellBorderPosition[];
1412
1431
  update(): void;
1413
1432
  protected initCell(): void;
1414
- /**
1415
- * @deprecated 已废弃, 请使用 drawTextShape
1416
- */
1417
- protected drawCellText(): void;
1418
1433
  protected drawTextShape(): void;
1419
1434
  /**
1420
1435
  * 绘制折叠展开的icon
@@ -1499,6 +1514,15 @@ declare interface CustomSVGIcon {
1499
1514
  svg: string;
1500
1515
  }
1501
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
+
1502
1526
  export declare class CustomTooltip extends BaseTooltip {
1503
1527
  constructor(spreadsheet: SpreadSheet);
1504
1528
  renderContent(): void;
@@ -1545,7 +1569,7 @@ declare class DataCell_2 extends BaseCell<ViewMeta_2> {
1545
1569
  */
1546
1570
  private getDefaultTextFill;
1547
1571
  protected getTextStyle(): TextTheme;
1548
- getIconStyle(): IconCfg | undefined;
1572
+ getIconStyle(): IconStyle | undefined;
1549
1573
  protected drawConditionIntervalShape(): void;
1550
1574
  protected shouldHideRowSubtotalData(): boolean;
1551
1575
  protected getFormattedFieldValue(): FormatResult;
@@ -1620,14 +1644,14 @@ declare interface EmitterType {
1620
1644
  [S2Event.GLOBAL_ACTION_ICON_CLICK]: CanvasEventHandler;
1621
1645
  [S2Event.GLOBAL_ACTION_ICON_HOVER]: CanvasEventHandler;
1622
1646
  [S2Event.GLOBAL_ACTION_ICON_HOVER_OFF]: CanvasEventHandler;
1623
- [S2Event.GLOBAL_COPIED]: (data: string) => void;
1647
+ [S2Event.GLOBAL_COPIED]: (data: CopyableList | undefined) => void;
1624
1648
  [S2Event.GLOBAL_KEYBOARD_DOWN]: KeyboardEventHandler;
1625
1649
  [S2Event.GLOBAL_KEYBOARD_UP]: KeyboardEventHandler;
1626
1650
  [S2Event.GLOBAL_MOUSE_UP]: MouseEventHandler;
1627
1651
  [S2Event.GLOBAL_MOUSE_MOVE]: MouseEventHandler;
1628
1652
  [S2Event.LAYOUT_RESIZE_MOUSE_DOWN]: CanvasEventHandler;
1629
1653
  [S2Event.LAYOUT_RESIZE_MOUSE_UP]: CanvasEventHandler;
1630
- [S2Event.LAYOUT_RESIZE_MOUSE_MOVE]: CanvasEventHandler;
1654
+ [S2Event.LAYOUT_RESIZE_MOUSE_MOVE]: PointerEventHandler;
1631
1655
  [S2Event.GLOBAL_CONTEXT_MENU]: CanvasEventHandler;
1632
1656
  [S2Event.GLOBAL_CLICK]: CanvasEventHandler;
1633
1657
  [S2Event.GLOBAL_DOUBLE_CLICK]: CanvasEventHandler;
@@ -1711,8 +1735,6 @@ declare interface EmitterType {
1711
1735
  remove: [number, number][];
1712
1736
  spreadsheet: SpreadSheet_2;
1713
1737
  }) => void;
1714
- /** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
1715
- [S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
1716
1738
  [S2Event.LAYOUT_CELL_MOUNTED]: (cell: S2CellType_2) => void;
1717
1739
  [S2Event.LAYOUT_BEFORE_RENDER]: () => void;
1718
1740
  [S2Event.LAYOUT_AFTER_RENDER]: () => void;
@@ -1899,7 +1921,12 @@ declare class GuiIcon extends Group {
1899
1921
  private cfg;
1900
1922
  constructor(cfg: GuiIconCfg);
1901
1923
  private getImage;
1902
- 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;
1903
1930
  private render;
1904
1931
  }
1905
1932
 
@@ -1912,6 +1939,7 @@ declare class HdAdapter {
1912
1939
  private viewport;
1913
1940
  private devicePixelRatioMedia;
1914
1941
  private spreadsheet;
1942
+ private isDevicePixelRatioChange;
1915
1943
  constructor(spreadsheet: SpreadSheet_2);
1916
1944
  init: () => void;
1917
1945
  destroy: () => void;
@@ -1919,6 +1947,11 @@ declare class HdAdapter {
1919
1947
  private removeDevicePixelRatioListener;
1920
1948
  private initDeviceZoomListener;
1921
1949
  private removeDeviceZoomListener;
1950
+ /**
1951
+ * DPR 改变也会触发 visualViewport 的 resize 事件, 预期是只监听双指缩放, 所以这里规避掉
1952
+ * @see https://github.com/antvis/S2/issues/2072
1953
+ */
1954
+ private renderByZoomScaleWithoutResizeEffect;
1922
1955
  private renderByDevicePixelRatioChanged;
1923
1956
  private renderByDevicePixelRatio;
1924
1957
  private renderByZoomScale;
@@ -1929,11 +1962,6 @@ declare interface HeaderActionIcon {
1929
1962
  belongsCell: Omit<CellTypes, 'dataCell'>;
1930
1963
  defaultHide?: boolean | ((meta: Node_2_2, iconName: string) => boolean);
1931
1964
  displayCondition?: (mete: Node_2_2, iconName: string) => boolean;
1932
- /**
1933
- * 点击后的执行函数
1934
- * @deprecated 使用 onClick 代替
1935
- */
1936
- action?: (headerIconClickParams: HeaderIconClickParams) => void;
1937
1965
  onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
1938
1966
  onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
1939
1967
  }
@@ -1942,8 +1970,6 @@ declare interface HeaderActionIconOptions {
1942
1970
  iconName: string;
1943
1971
  x: number;
1944
1972
  y: number;
1945
- /** @deprecated 使用 onClick 代替 */
1946
- action?: (props: HeaderIconClickParams) => void;
1947
1973
  onClick?: (headerIconClickParams: HeaderIconClickParams) => void;
1948
1974
  onHover?: (headerIconHoverParams: HeaderIconHoverParams) => void;
1949
1975
  defaultHide?: boolean;
@@ -2045,14 +2071,14 @@ declare interface HoverFocusOptions {
2045
2071
  duration?: number;
2046
2072
  }
2047
2073
 
2048
- declare type IconCfg = Pick<IconTheme, 'size' | 'margin'> & Pick<IconCondition, 'position'>;
2049
-
2050
2074
  declare interface IconCondition extends Condition {
2051
2075
  position?: IconPosition;
2052
2076
  }
2053
2077
 
2054
2078
  declare type IconPosition = 'left' | 'right';
2055
2079
 
2080
+ declare type IconStyle = Pick<IconTheme, 'size' | 'margin'> & Pick<IconCondition, 'position'>;
2081
+
2056
2082
  declare interface IconTheme {
2057
2083
  fill?: string;
2058
2084
  downIconColor?: string;
@@ -2273,8 +2299,17 @@ declare interface MergedCellInfo {
2273
2299
  }
2274
2300
 
2275
2301
  declare interface Meta {
2302
+ /**
2303
+ * 字段 id
2304
+ */
2276
2305
  field?: string;
2306
+ /**
2307
+ * 字段名称
2308
+ */
2277
2309
  name?: string;
2310
+ /**
2311
+ * 字段描述
2312
+ */
2278
2313
  description?: string;
2279
2314
  formatter?: Formatter;
2280
2315
  }
@@ -2297,15 +2332,16 @@ declare enum MiniChartTypes {
2297
2332
 
2298
2333
  declare type MouseEventHandler = (event: MouseEvent) => void;
2299
2334
 
2300
- /** use for gridAnalysisSheet
2335
+ /**
2336
+ * use for gridAnalysisSheet
2301
2337
  * eg. { label: '余额女',
2302
- values: [
2303
- ['最近7天登端天数', 1, 3423423, 323],
2304
- ['自然月新登用户数', 1, 3423423, 323],
2305
- ['最近7天登端天数', 1, 3423423, 323],
2306
- ['自然月新登用户数', 1, 3423423, 323],
2307
- ],
2308
- }
2338
+ * values: [
2339
+ * ['最近7天登端天数', 1, 3423423, 323],
2340
+ * ['自然月新登用户数', 1, 3423423, 323],
2341
+ * ['最近7天登端天数', 1, 3423423, 323],
2342
+ * ['自然月新登用户数', 1, 3423423, 323],
2343
+ * ],
2344
+ * }
2309
2345
  */
2310
2346
  declare interface MultiData<T = SimpleData[][] | MiniChartData> {
2311
2347
  values: T;
@@ -2346,8 +2382,10 @@ declare class Node_2_2 {
2346
2382
  cornerType?: CornerNodeType;
2347
2383
  isGrandTotals?: boolean;
2348
2384
  isSubTotals?: boolean;
2385
+ hiddenChildNodeInfo?: HiddenColumnsInfo_2 | null;
2386
+ extra?: Record<string, any>;
2349
2387
  [key: string]: any;
2350
- constructor({ id, field, value, parent, level, rowIndex, isTotals, isGrandTotals, isSubTotals, isCollapsed, hierarchy, isPivotMode, seriesNumberWidth, spreadsheet, query, belongsCell, inCollapseNode, isTotalMeasure, isLeaf, extra, }: BaseNodeConfig);
2388
+ constructor(cfg: BaseNodeConfig);
2351
2389
  /**
2352
2390
  * Get node's field path
2353
2391
  * eg: node.id = root[&]东北[&]黑龙江
@@ -2399,7 +2437,8 @@ declare class Node_2_2 {
2399
2437
  getHeadLeafChild(): Node_2_2 | undefined;
2400
2438
  /**
2401
2439
  * 获取树状模式下,当前节点以及其所有子节点的高度总和
2402
- * */
2440
+ *
2441
+ */
2403
2442
  getTotalHeightForTreeHierarchy(): number;
2404
2443
  }
2405
2444
 
@@ -2451,6 +2490,8 @@ declare interface PaletteMeta {
2451
2490
  [key: string]: string;
2452
2491
  };
2453
2492
  others?: {
2493
+ results: string;
2494
+ highlight: string;
2454
2495
  [key: string]: string;
2455
2496
  };
2456
2497
  }
@@ -2522,14 +2563,12 @@ type: PropType<Adaptive>;
2522
2563
  default: Adaptive;
2523
2564
  };
2524
2565
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
2525
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
2526
2566
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
2527
2567
  }, {
2528
2568
  s2Ref: ShallowRef<SheetExpose>;
2529
2569
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
2530
2570
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2531
2571
  spreadsheet: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet;
2532
- getSpreadSheet: (spreadsheet: SpreadSheet) => void;
2533
2572
  sheetUpdate: SheetUpdateCallback;
2534
2573
  rowCellHover: (data: TargetCellInfo) => void;
2535
2574
  rowCellClick: (data: TargetCellInfo) => void;
@@ -2585,7 +2624,6 @@ filteredValues: string[];
2585
2624
  rangeFiltered: (data: ViewMetaData[]) => void;
2586
2625
  layoutAfterHeaderLayout: (layoutResult: LayoutResult) => void;
2587
2626
  layoutPagination: (data: LayoutPaginationParams) => void;
2588
- layoutCellScroll: (position: CellScrollPosition) => void;
2589
2627
  layoutCellMounted: (cell: S2CellType<ViewMeta>) => void;
2590
2628
  beforeRender: () => void;
2591
2629
  afterRender: () => void;
@@ -2664,7 +2702,6 @@ type: PropType<Adaptive>;
2664
2702
  default: Adaptive;
2665
2703
  };
2666
2704
  onSpreadsheet: PropType<(container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => SpreadSheet>;
2667
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet) => void>;
2668
2705
  onMounted: PropType<(spreadsheet: SpreadSheet) => void>;
2669
2706
  }>> & {
2670
2707
  onSheetUpdate?: (params: S2RenderOptions) => any;
@@ -2722,7 +2759,6 @@ filteredValues: string[];
2722
2759
  onRangeFiltered?: (data: ViewMetaData[]) => any;
2723
2760
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult) => any;
2724
2761
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
2725
- onLayoutCellScroll?: (position: CellScrollPosition) => any;
2726
2762
  onLayoutCellMounted?: (cell: S2CellType<ViewMeta>) => any;
2727
2763
  onBeforeRender?: () => any;
2728
2764
  onAfterRender?: () => any;
@@ -2776,7 +2812,6 @@ spreadsheet: SpreadSheet;
2776
2812
  onRowCellBrushSelection?: (event: GEvent) => any;
2777
2813
  onColCellBrushSelection?: (event: GEvent) => any;
2778
2814
  onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<TooltipContentType, Pagination, string | Element, string>) => any;
2779
- onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
2780
2815
  }, {
2781
2816
  options: S2Options<TooltipContentType, Pagination, string | Element, string>;
2782
2817
  loading: boolean;
@@ -2796,6 +2831,8 @@ declare interface Point {
2796
2831
  y: number;
2797
2832
  }
2798
2833
 
2834
+ declare type PointerEventHandler = (event: PointerEvent) => void;
2835
+
2799
2836
  declare interface PointObject {
2800
2837
  x: number;
2801
2838
  y: number;
@@ -2839,7 +2876,9 @@ declare enum ResizeAreaEffect {
2839
2876
  }
2840
2877
 
2841
2878
  declare enum ResizeDirectionType {
2879
+ /** 水平方向 resize */
2842
2880
  Horizontal = "col",
2881
+ /** 垂直方向 resize */
2843
2882
  Vertical = "row"
2844
2883
  }
2845
2884
 
@@ -2870,11 +2909,17 @@ declare interface ResizeInfo_2 {
2870
2909
  }
2871
2910
 
2872
2911
  declare interface ResizeInteractionOptions {
2912
+ /** 行头垂直方向 resize -> 针对行头叶子节点 */
2873
2913
  rowCellVertical?: boolean;
2914
+ /** 角头水平方向 resize -> 针对角头 CornerNodeType 为 Series 和 Row */
2874
2915
  cornerCellHorizontal?: boolean;
2916
+ /** 列头水平方向 resize -> 针对列头叶子节点 */
2875
2917
  colCellHorizontal?: boolean;
2918
+ /** 列头垂直方向 resize -> 针对列头各层级节点 */
2876
2919
  colCellVertical?: boolean;
2920
+ /** 行高调整时,影响当前行还是全部行 */
2877
2921
  rowResizeType?: ResizeType;
2922
+ /** 列高调整时,影响当前列还是全部列 */
2878
2923
  colResizeType?: ResizeType;
2879
2924
  disable?: (resizeInfo: ResizeInfo_2) => boolean;
2880
2925
  visible?: (cell: S2CellType_2) => boolean;
@@ -3226,8 +3271,6 @@ declare enum S2Event {
3226
3271
  RANGE_FILTERED = "filter:range-filtered",
3227
3272
  /** ================ Table Layout ================ */
3228
3273
  LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
3229
- /** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
3230
- LAYOUT_CELL_SCROLL = "layout:cell-scroll",
3231
3274
  LAYOUT_CELL_MOUNTED = "layout:cell-mounted",
3232
3275
  LAYOUT_PAGINATION = "layout:pagination",
3233
3276
  LAYOUT_AFTER_REAL_DATA_CELL_RENDER = "layout:after-real-data-cell-render",
@@ -3277,9 +3320,11 @@ declare interface S2Options_2<T = TooltipContentType_2, P = Pagination_2, Icon =
3277
3320
 
3278
3321
  declare interface S2PivotSheetFrozenOptions {
3279
3322
  /**
3280
- * 是否冻结行头 (含角头区域, 透视表有效)
3323
+ * 是否冻结行头 (含角头区域, 透视表有效),
3324
+ * 当值为 number 时,标识行头冻结的最大区域,取值范围: (0, 1),0 表示不固定行头
3325
+ * 当值为 boolean 时,true 对应冻结最大区域为 0.5, false 对应 0
3281
3326
  */
3282
- rowHeader?: boolean;
3327
+ rowHeader?: boolean | number;
3283
3328
  }
3284
3329
 
3285
3330
  declare interface S2PivotSheetOptions {
@@ -3337,10 +3382,6 @@ declare interface S2Style {
3337
3382
  * 行头单元格配置
3338
3383
  */
3339
3384
  rowCell?: RowCellStyle | null;
3340
- /**
3341
- * @deprecated 设备类型 use options.device instead
3342
- */
3343
- device?: DeviceType;
3344
3385
  }
3345
3386
 
3346
3387
  declare interface S2TableSheetFrozenOptions {
@@ -3382,7 +3423,6 @@ declare class ScrollBar extends Group {
3382
3423
  trackShape: DisplayObject;
3383
3424
  thumbShape: DisplayObject;
3384
3425
  private startPos;
3385
- private isMobile;
3386
3426
  private clearEvents;
3387
3427
  private eventHandlers;
3388
3428
  private scrollFrameId;
@@ -3425,10 +3465,10 @@ declare class ScrollBar extends Group {
3425
3465
  private onStartEvent;
3426
3466
  private bindLaterEvent;
3427
3467
  private onTrackClick;
3428
- private onMouseMove;
3429
- private onMouseUp;
3430
- private onTrackMouseOver;
3431
- private onTrackMouseOut;
3468
+ private onPointerMove;
3469
+ private onPointerUp;
3470
+ private onTrackPointerOver;
3471
+ private onTrackPointerOut;
3432
3472
  private validateRange;
3433
3473
  }
3434
3474
 
@@ -3513,7 +3553,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
3513
3553
  protected offset(): void;
3514
3554
  }
3515
3555
 
3516
- export declare const SheetComponent: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
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">, {
3517
3557
  s2Ref: ShallowRef<SheetExpose>;
3518
3558
  sheetType: ComputedRef<DefineComponent< {
3519
3559
  sheetType: PropType<SheetType>;
@@ -3541,14 +3581,12 @@ type: PropType<Adaptive>;
3541
3581
  default: Adaptive;
3542
3582
  };
3543
3583
  onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
3544
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
3545
3584
  onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
3546
3585
  }, {
3547
3586
  s2Ref: ShallowRef<SheetExpose>;
3548
3587
  options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
3549
3588
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3550
3589
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
3551
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
3552
3590
  sheetUpdate: SheetUpdateCallback;
3553
3591
  rowCellHover: (data: TargetCellInfo_2) => void;
3554
3592
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -3604,7 +3642,6 @@ filteredValues: string[];
3604
3642
  rangeFiltered: (data: ViewMetaData_2[]) => void;
3605
3643
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
3606
3644
  layoutPagination: (data: LayoutPaginationParams) => void;
3607
- layoutCellScroll: (position: CellScrollPosition_2) => void;
3608
3645
  layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
3609
3646
  beforeRender: () => void;
3610
3647
  afterRender: () => void;
@@ -3683,7 +3720,6 @@ type: PropType<Adaptive>;
3683
3720
  default: Adaptive;
3684
3721
  };
3685
3722
  onSpreadsheet: PropType<(container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2>;
3686
- onGetSpreadSheet: PropType<(spreadsheet: SpreadSheet_2) => void>;
3687
3723
  onMounted: PropType<(spreadsheet: SpreadSheet_2) => void>;
3688
3724
  }>> & {
3689
3725
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
@@ -3741,7 +3777,6 @@ filteredValues: string[];
3741
3777
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
3742
3778
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
3743
3779
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
3744
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
3745
3780
  onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
3746
3781
  onBeforeRender?: () => any;
3747
3782
  onAfterRender?: () => any;
@@ -3795,7 +3830,6 @@ spreadsheet: SpreadSheet_2;
3795
3830
  onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
3796
3831
  onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
3797
3832
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
3798
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
3799
3833
  }, {
3800
3834
  options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>;
3801
3835
  loading: boolean;
@@ -3808,11 +3842,10 @@ showPagination: boolean | {
3808
3842
  onShowSizeChange?: (pageSize: number) => void;
3809
3843
  onChange?: (current: number) => void;
3810
3844
  };
3811
- }> | DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
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">, {
3812
3846
  s2Ref: ShallowRef<SheetExpose>;
3813
3847
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3814
3848
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
3815
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
3816
3849
  sheetUpdate: SheetUpdateCallback;
3817
3850
  rowCellHover: (data: TargetCellInfo_2) => void;
3818
3851
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -3868,7 +3901,6 @@ filteredValues: string[];
3868
3901
  rangeFiltered: (data: ViewMetaData_2[]) => void;
3869
3902
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
3870
3903
  layoutPagination: (data: LayoutPaginationParams) => void;
3871
- layoutCellScroll: (position: CellScrollPosition_2) => void;
3872
3904
  layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
3873
3905
  beforeRender: () => void;
3874
3906
  afterRender: () => void;
@@ -3921,7 +3953,7 @@ spreadsheet: SpreadSheet_2;
3921
3953
  }) => void;
3922
3954
  rowCellBrushSelection: (event: FederatedPointerEvent) => void;
3923
3955
  colCellBrushSelection: (event: FederatedPointerEvent) => void;
3924
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
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">>> & {
3925
3957
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
3926
3958
  onRowCellHover?: (data: TargetCellInfo_2) => any;
3927
3959
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -3977,7 +4009,6 @@ filteredValues: string[];
3977
4009
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
3978
4010
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
3979
4011
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
3980
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
3981
4012
  onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
3982
4013
  onBeforeRender?: () => any;
3983
4014
  onAfterRender?: () => any;
@@ -4031,11 +4062,9 @@ spreadsheet: SpreadSheet_2;
4031
4062
  onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4032
4063
  onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
4033
4064
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
4034
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
4035
4065
  }, {}>>;
4036
4066
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4037
4067
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
4038
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
4039
4068
  sheetUpdate: SheetUpdateCallback;
4040
4069
  rowCellHover: (data: TargetCellInfo_2) => void;
4041
4070
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -4091,7 +4120,6 @@ filteredValues: string[];
4091
4120
  rangeFiltered: (data: ViewMetaData_2[]) => void;
4092
4121
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
4093
4122
  layoutPagination: (data: LayoutPaginationParams) => void;
4094
- layoutCellScroll: (position: CellScrollPosition_2) => void;
4095
4123
  layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
4096
4124
  beforeRender: () => void;
4097
4125
  afterRender: () => void;
@@ -4144,7 +4172,7 @@ spreadsheet: SpreadSheet_2;
4144
4172
  }) => void;
4145
4173
  rowCellBrushSelection: (event: FederatedPointerEvent) => void;
4146
4174
  colCellBrushSelection: (event: FederatedPointerEvent) => void;
4147
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
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">>> & {
4148
4176
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
4149
4177
  onRowCellHover?: (data: TargetCellInfo_2) => any;
4150
4178
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -4200,7 +4228,6 @@ filteredValues: string[];
4200
4228
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
4201
4229
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
4202
4230
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
4203
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
4204
4231
  onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
4205
4232
  onBeforeRender?: () => any;
4206
4233
  onAfterRender?: () => any;
@@ -4254,7 +4281,6 @@ spreadsheet: SpreadSheet_2;
4254
4281
  onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4255
4282
  onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
4256
4283
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
4257
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
4258
4284
  }, {}>;
4259
4285
 
4260
4286
  declare type SheetComponentOptions = S2Options<TooltipContentType, Pagination & PaginationProps>;
@@ -4368,11 +4394,6 @@ declare abstract class SpreadSheet_2 extends EE {
4368
4394
  * tree type must be in strategy mode
4369
4395
  */
4370
4396
  abstract isHierarchyTreeType(): boolean;
4371
- /**
4372
- * Check whether scroll contains row header
4373
- * For now contains row header in ListSheet mode by default
4374
- */
4375
- abstract isScrollContainsRowHeader(): boolean;
4376
4397
  /**
4377
4398
  * Scroll Freeze Row Header
4378
4399
  */
@@ -4415,12 +4436,6 @@ declare abstract class SpreadSheet_2 extends EE {
4415
4436
  * 获取当前表格实际内容高度
4416
4437
  */
4417
4438
  getContentHeight(): number;
4418
- /**
4419
- * @param width
4420
- * @param height
4421
- * @deprecated 该方法将会在2.0被移除, 请使用 changeSheetSize 代替
4422
- */
4423
- changeSize(width?: number, height?: number): void;
4424
4439
  /**
4425
4440
  * 修改表格画布大小,不用重新加载数据
4426
4441
  * @param width
@@ -4584,11 +4599,10 @@ declare class TableSeriesCell extends TableDataCell {
4584
4599
  protected getTextStyle(): TextTheme;
4585
4600
  }
4586
4601
 
4587
- export declare const TableSheet: DefineComponent<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">, {
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">, {
4588
4603
  s2Ref: ShallowRef<SheetExpose>;
4589
4604
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4590
4605
  spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => SpreadSheet_2;
4591
- getSpreadSheet: (spreadsheet: SpreadSheet_2) => void;
4592
4606
  sheetUpdate: SheetUpdateCallback;
4593
4607
  rowCellHover: (data: TargetCellInfo_2) => void;
4594
4608
  rowCellClick: (data: TargetCellInfo_2) => void;
@@ -4644,7 +4658,6 @@ filteredValues: string[];
4644
4658
  rangeFiltered: (data: ViewMetaData_2[]) => void;
4645
4659
  layoutAfterHeaderLayout: (layoutResult: LayoutResult_2) => void;
4646
4660
  layoutPagination: (data: LayoutPaginationParams) => void;
4647
- layoutCellScroll: (position: CellScrollPosition_2) => void;
4648
4661
  layoutCellMounted: (cell: S2CellType_2<ViewMeta_2>) => void;
4649
4662
  beforeRender: () => void;
4650
4663
  afterRender: () => void;
@@ -4697,7 +4710,7 @@ spreadsheet: SpreadSheet_2;
4697
4710
  }) => void;
4698
4711
  rowCellBrushSelection: (event: FederatedPointerEvent) => void;
4699
4712
  colCellBrushSelection: (event: FederatedPointerEvent) => void;
4700
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<SheetComponentProps, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "renderConfig" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapsed" | "onRowCellAllCollapsed" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onColCellExpanded" | "onColCellHidden" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutCellMounted" | "onBeforeRender" | "onAfterRender" | "onMounted" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconHoverOff" | "onActionIconClick" | "onContextMenu" | "onClick" | "onHover" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onMouseDown" | "onMouseMove" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll" | "onLayoutAfterRealDataCellRender" | "onRowCellBrushSelection" | "onColCellBrushSelection">>> & {
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">>> & {
4701
4714
  onSheetUpdate?: (params: S2RenderOptions_2) => any;
4702
4715
  onRowCellHover?: (data: TargetCellInfo_2) => any;
4703
4716
  onRowCellClick?: (data: TargetCellInfo_2) => any;
@@ -4753,7 +4766,6 @@ filteredValues: string[];
4753
4766
  onRangeFiltered?: (data: ViewMetaData_2[]) => any;
4754
4767
  onLayoutAfterHeaderLayout?: (layoutResult: LayoutResult_2) => any;
4755
4768
  onLayoutPagination?: (data: LayoutPaginationParams) => any;
4756
- onLayoutCellScroll?: (position: CellScrollPosition_2) => any;
4757
4769
  onLayoutCellMounted?: (cell: S2CellType_2<ViewMeta_2>) => any;
4758
4770
  onBeforeRender?: () => any;
4759
4771
  onAfterRender?: () => any;
@@ -4807,7 +4819,6 @@ spreadsheet: SpreadSheet_2;
4807
4819
  onRowCellBrushSelection?: (event: FederatedPointerEvent) => any;
4808
4820
  onColCellBrushSelection?: (event: FederatedPointerEvent) => any;
4809
4821
  onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<TooltipContentType_2, Pagination_2, string | Element, string>) => any;
4810
- onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
4811
4822
  }, {}>;
4812
4823
 
4813
4824
  declare interface TargetCellInfo_2 {
@@ -4818,14 +4829,14 @@ declare interface TargetCellInfo_2 {
4818
4829
 
4819
4830
  declare type TextAlign = 'left' | 'center' | 'right';
4820
4831
 
4821
- declare interface TextAlignCfg {
4832
+ declare interface TextAlignStyle {
4822
4833
  textAlign?: TextAlign;
4823
4834
  textBaseline?: TextBaseline;
4824
4835
  }
4825
4836
 
4826
4837
  declare type TextBaseline = 'top' | 'middle' | 'bottom';
4827
4838
 
4828
- declare interface TextTheme extends TextAlignCfg {
4839
+ declare interface TextTheme extends TextAlignStyle {
4829
4840
  fontFamily?: string;
4830
4841
  fontSize?: number;
4831
4842
  fontWeight?: number | 'normal' | 'bold' | 'bolder' | 'lighter';
@@ -4962,10 +4973,13 @@ declare type TooltipShowOptions<T = TooltipContentType_2, Icon = Element | strin
4962
4973
 
4963
4974
  declare interface TooltipSummaryOptions {
4964
4975
  name: string | null;
4965
- value: number | string | undefined | null;
4966
- selectedData: Data[] | CellData[];
4976
+ selectedData: TooltipDataItem[];
4977
+ value: TooltipSummaryOptionsValue;
4978
+ originValue?: TooltipSummaryOptionsValue;
4967
4979
  }
4968
4980
 
4981
+ declare type TooltipSummaryOptionsValue = number | string | undefined | null;
4982
+
4969
4983
  declare interface Total {
4970
4984
  /** 是否显示总计 */
4971
4985
  showGrandTotals: boolean;
@@ -5050,6 +5064,7 @@ declare interface ViewMeta_2 {
5050
5064
  label?: string;
5051
5065
  value?: string | number;
5052
5066
  query?: Query;
5067
+ isLeaf?: boolean;
5053
5068
  [key: string]: unknown;
5054
5069
  }
5055
5070