@antv/s2-vue 1.1.0-alpha.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/esm/index.d.ts +84 -15
- package/esm/index.js +4 -2
- package/esm/index.js.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/esm/index.d.ts
CHANGED
|
@@ -161,6 +161,15 @@ declare abstract class BaseCell<T extends SimpleBBox> extends Group {
|
|
|
161
161
|
getTextShape(): IShape;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
declare interface BaseChartData {
|
|
165
|
+
type: MiniChartTypes;
|
|
166
|
+
data: Data_2[];
|
|
167
|
+
encode?: {
|
|
168
|
+
x: keyof Data_2;
|
|
169
|
+
y: keyof Data_2;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
164
173
|
declare interface BaseDataSet {
|
|
165
174
|
name: string;
|
|
166
175
|
value: string;
|
|
@@ -442,6 +451,7 @@ declare abstract class BaseFacet {
|
|
|
442
451
|
* @protected
|
|
443
452
|
*/
|
|
444
453
|
protected dynamicRenderCell(): void;
|
|
454
|
+
private emitScrollEvent;
|
|
445
455
|
protected onAfterScroll: DebouncedFunc<() => void>;
|
|
446
456
|
protected saveInitColumnLeafNodes(columnNodes?: Node_2_2[]): void;
|
|
447
457
|
}
|
|
@@ -596,6 +606,7 @@ id: number;
|
|
|
596
606
|
isCollapsed: boolean;
|
|
597
607
|
node: Node_2;
|
|
598
608
|
}) => void;
|
|
609
|
+
rowCellScroll: (position: CellScrollPosition) => void;
|
|
599
610
|
colCellHover: (data: TargetCellInfo) => void;
|
|
600
611
|
colCellClick: (data: TargetCellInfo) => void;
|
|
601
612
|
colCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -687,6 +698,7 @@ linkFieldJump: (data: {
|
|
|
687
698
|
key: string;
|
|
688
699
|
record: Data;
|
|
689
700
|
}) => void;
|
|
701
|
+
scroll: (position: CellScrollPosition) => void;
|
|
690
702
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
691
703
|
sheetType: PropType<SheetType>;
|
|
692
704
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -728,6 +740,7 @@ id: number;
|
|
|
728
740
|
isCollapsed: boolean;
|
|
729
741
|
node: Node_2;
|
|
730
742
|
}) => any;
|
|
743
|
+
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
731
744
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
732
745
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
733
746
|
onColCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -819,6 +832,7 @@ onLinkFieldJump?: (data: {
|
|
|
819
832
|
key: string;
|
|
820
833
|
record: Data;
|
|
821
834
|
}) => any;
|
|
835
|
+
onScroll?: (position: CellScrollPosition) => any;
|
|
822
836
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<string | Element>) => any;
|
|
823
837
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
824
838
|
}, {
|
|
@@ -864,6 +878,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
864
878
|
isCollapsed: boolean;
|
|
865
879
|
node: Node_2;
|
|
866
880
|
}) => void;
|
|
881
|
+
onRowCellScroll?: (position: CellScrollPosition) => void;
|
|
867
882
|
onColCellHover?: (data: TargetCellInfo) => void;
|
|
868
883
|
onColCellClick?: (data: TargetCellInfo) => void;
|
|
869
884
|
onColCellDoubleClick?: (data: TargetCellInfo) => void;
|
|
@@ -909,6 +924,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
909
924
|
total: number;
|
|
910
925
|
current: number;
|
|
911
926
|
}) => void;
|
|
927
|
+
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
912
928
|
onLayoutCellScroll?: (position: CellScrollPosition) => void;
|
|
913
929
|
onLayoutAfterCollapseRows?: (data: CollapsedRowsType) => void;
|
|
914
930
|
onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
|
|
@@ -955,6 +971,7 @@ declare interface BaseSheetComponentProps<PartialDrillDown = unknown, Header = u
|
|
|
955
971
|
key: string;
|
|
956
972
|
record: Data;
|
|
957
973
|
}) => void;
|
|
974
|
+
onScroll?: (position: CellScrollPosition) => void;
|
|
958
975
|
}
|
|
959
976
|
|
|
960
977
|
/**
|
|
@@ -1006,6 +1023,7 @@ declare interface BulletTheme {
|
|
|
1006
1023
|
}
|
|
1007
1024
|
|
|
1008
1025
|
declare interface BulletValue {
|
|
1026
|
+
type: MiniChartTypes.Bullet;
|
|
1009
1027
|
measure: number | string;
|
|
1010
1028
|
target: number | string;
|
|
1011
1029
|
[key: string]: unknown;
|
|
@@ -1057,7 +1075,6 @@ declare interface CellMeta_2 {
|
|
|
1057
1075
|
declare interface CellScrollPosition_2 {
|
|
1058
1076
|
scrollX: number;
|
|
1059
1077
|
scrollY: number;
|
|
1060
|
-
thumbOffset?: number;
|
|
1061
1078
|
}
|
|
1062
1079
|
|
|
1063
1080
|
declare interface CellTheme {
|
|
@@ -1369,6 +1386,7 @@ declare interface DefaultCellTheme extends GridAnalysisCellTheme {
|
|
|
1369
1386
|
measureText?: TextTheme;
|
|
1370
1387
|
cell?: CellTheme;
|
|
1371
1388
|
icon?: IconTheme;
|
|
1389
|
+
miniChart?: MiniChartTheme;
|
|
1372
1390
|
seriesNumberWidth?: number;
|
|
1373
1391
|
}
|
|
1374
1392
|
|
|
@@ -1390,6 +1408,7 @@ declare interface EmitterType {
|
|
|
1390
1408
|
[S2Event.GLOBAL_RESET]: EventHandler_3;
|
|
1391
1409
|
[S2Event.GLOBAL_HOVER]: CanvasEventHandler;
|
|
1392
1410
|
[S2Event.GLOBAL_SELECTED]: SelectedHandler;
|
|
1411
|
+
[S2Event.GLOBAL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1393
1412
|
/** ================ Sort ================ */
|
|
1394
1413
|
[S2Event.RANGE_SORT]: (info: SortParams_2) => void;
|
|
1395
1414
|
[S2Event.RANGE_SORTED]: SortedHandler | CanvasEventHandler;
|
|
@@ -1410,8 +1429,8 @@ declare interface EmitterType {
|
|
|
1410
1429
|
[S2Event.DATA_CELL_DOUBLE_CLICK]: CanvasEventHandler;
|
|
1411
1430
|
[S2Event.DATA_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1412
1431
|
[S2Event.DATA_CELL_TREND_ICON_CLICK]: (data: ViewMeta_2) => void;
|
|
1413
|
-
[S2Event.
|
|
1414
|
-
[S2Event.
|
|
1432
|
+
[S2Event.DATA_CELL_BRUSH_SELECTION]: (cells: DataCell_2[]) => void;
|
|
1433
|
+
[S2Event.DATA_CELL_SELECT_MOVE]: (metas: CellMeta_2[]) => void;
|
|
1415
1434
|
/** ================ Row Cell ================ */
|
|
1416
1435
|
[S2Event.ROW_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1417
1436
|
[S2Event.ROW_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1421,6 +1440,7 @@ declare interface EmitterType {
|
|
|
1421
1440
|
[S2Event.ROW_CELL_CONTEXT_MENU]: CanvasEventHandler;
|
|
1422
1441
|
[S2Event.ROW_CELL_MOUSE_UP]: CanvasEventHandler;
|
|
1423
1442
|
[S2Event.ROW_CELL_COLLAPSE_TREE_ROWS]: (data: RowCellCollapseTreeRowsType) => void;
|
|
1443
|
+
[S2Event.ROW_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1424
1444
|
/** ================ Col Cell ================ */
|
|
1425
1445
|
[S2Event.COL_CELL_MOUSE_DOWN]: CanvasEventHandler;
|
|
1426
1446
|
[S2Event.COL_CELL_MOUSE_MOVE]: CanvasEventHandler;
|
|
@@ -1456,7 +1476,8 @@ declare interface EmitterType {
|
|
|
1456
1476
|
current: number;
|
|
1457
1477
|
}) => void;
|
|
1458
1478
|
[S2Event.LAYOUT_AFTER_HEADER_LAYOUT]: (data: LayoutResult_2) => void;
|
|
1459
|
-
|
|
1479
|
+
/** @deprecated 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
1480
|
+
[S2Event.LAYOUT_CELL_SCROLL]: (position: CellScrollPosition_2) => void;
|
|
1460
1481
|
[S2Event.LAYOUT_COLS_EXPANDED]: (expandedNode: Node_2_2) => void;
|
|
1461
1482
|
[S2Event.LAYOUT_COLS_HIDDEN]: (currentHiddenColumnsInfo: HiddenColumnsInfo_2, hiddenColumnsDetail: HiddenColumnsInfo_2[]) => void;
|
|
1462
1483
|
[S2Event.LAYOUT_BEFORE_RENDER]: () => void;
|
|
@@ -1892,6 +1913,19 @@ declare interface LayoutResult_2 {
|
|
|
1892
1913
|
*/
|
|
1893
1914
|
declare type LayoutWidthType = 'adaptive' | 'colAdaptive' | 'compact';
|
|
1894
1915
|
|
|
1916
|
+
declare interface LineTheme {
|
|
1917
|
+
point?: {
|
|
1918
|
+
size: number;
|
|
1919
|
+
fill?: string;
|
|
1920
|
+
opacity?: number;
|
|
1921
|
+
};
|
|
1922
|
+
linkLine?: {
|
|
1923
|
+
size: number;
|
|
1924
|
+
fill?: string;
|
|
1925
|
+
opacity?: number;
|
|
1926
|
+
};
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1895
1929
|
declare type ListItem = {
|
|
1896
1930
|
name: string;
|
|
1897
1931
|
value: string | number;
|
|
@@ -1947,6 +1981,19 @@ declare interface Meta {
|
|
|
1947
1981
|
formatter?: Formatter;
|
|
1948
1982
|
}
|
|
1949
1983
|
|
|
1984
|
+
declare type MiniChartData = BaseChartData | BulletValue;
|
|
1985
|
+
|
|
1986
|
+
declare interface MiniChartTheme {
|
|
1987
|
+
line?: LineTheme;
|
|
1988
|
+
bullet?: BulletTheme;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
/** mini 图类型 */
|
|
1992
|
+
declare enum MiniChartTypes {
|
|
1993
|
+
Line = "line",
|
|
1994
|
+
Bullet = "bullet"
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1950
1997
|
declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
1951
1998
|
|
|
1952
1999
|
/** use for gridAnalysisSheet
|
|
@@ -1959,7 +2006,7 @@ declare type MouseEventHandler = (event: MouseEvent) => void;
|
|
|
1959
2006
|
],
|
|
1960
2007
|
}
|
|
1961
2008
|
*/
|
|
1962
|
-
declare interface MultiData<T = SimpleDataItem[][] |
|
|
2009
|
+
declare interface MultiData<T = SimpleDataItem[][] | MiniChartData> {
|
|
1963
2010
|
values: T;
|
|
1964
2011
|
originalValues?: T;
|
|
1965
2012
|
label?: string;
|
|
@@ -2185,6 +2232,7 @@ id: number;
|
|
|
2185
2232
|
isCollapsed: boolean;
|
|
2186
2233
|
node: Node_2;
|
|
2187
2234
|
}) => void;
|
|
2235
|
+
rowCellScroll: (position: CellScrollPosition) => void;
|
|
2188
2236
|
colCellHover: (data: TargetCellInfo) => void;
|
|
2189
2237
|
colCellClick: (data: TargetCellInfo) => void;
|
|
2190
2238
|
colCellDoubleClick: (data: TargetCellInfo) => void;
|
|
@@ -2276,6 +2324,7 @@ linkFieldJump: (data: {
|
|
|
2276
2324
|
key: string;
|
|
2277
2325
|
record: Data;
|
|
2278
2326
|
}) => void;
|
|
2327
|
+
scroll: (position: CellScrollPosition) => void;
|
|
2279
2328
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
2280
2329
|
sheetType: PropType<SheetType>;
|
|
2281
2330
|
dataCfg: PropType<S2DataConfig>;
|
|
@@ -2317,6 +2366,7 @@ id: number;
|
|
|
2317
2366
|
isCollapsed: boolean;
|
|
2318
2367
|
node: Node_2;
|
|
2319
2368
|
}) => any;
|
|
2369
|
+
onRowCellScroll?: (position: CellScrollPosition) => any;
|
|
2320
2370
|
onColCellHover?: (data: TargetCellInfo) => any;
|
|
2321
2371
|
onColCellClick?: (data: TargetCellInfo) => any;
|
|
2322
2372
|
onColCellDoubleClick?: (data: TargetCellInfo) => any;
|
|
@@ -2408,6 +2458,7 @@ onLinkFieldJump?: (data: {
|
|
|
2408
2458
|
key: string;
|
|
2409
2459
|
record: Data;
|
|
2410
2460
|
}) => any;
|
|
2461
|
+
onScroll?: (position: CellScrollPosition) => any;
|
|
2411
2462
|
onSpreadsheet?: (container: S2MountContainer, dataCfg: S2DataConfig, options: S2Options<string | Element>) => any;
|
|
2412
2463
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet) => any;
|
|
2413
2464
|
}, {
|
|
@@ -2686,6 +2737,7 @@ declare enum S2Event {
|
|
|
2686
2737
|
ROW_CELL_MOUSE_UP = "row-cell:mouse-up",
|
|
2687
2738
|
ROW_CELL_MOUSE_MOVE = "row-cell:mouse-move",
|
|
2688
2739
|
ROW_CELL_COLLAPSE_TREE_ROWS = "row-cell:collapsed-tree-rows",
|
|
2740
|
+
ROW_CELL_SCROLL = "row-cell:scroll",
|
|
2689
2741
|
/** ================ Col Cell ================ */
|
|
2690
2742
|
COL_CELL_HOVER = "col-cell:hover",
|
|
2691
2743
|
COL_CELL_CLICK = "col-cell:click",
|
|
@@ -2703,8 +2755,8 @@ declare enum S2Event {
|
|
|
2703
2755
|
DATA_CELL_MOUSE_DOWN = "data-cell:mouse-down",
|
|
2704
2756
|
DATA_CELL_MOUSE_MOVE = "data-cell:mouse-move",
|
|
2705
2757
|
DATA_CELL_TREND_ICON_CLICK = "data-cell:trend-icon-click",
|
|
2706
|
-
|
|
2707
|
-
|
|
2758
|
+
DATA_CELL_BRUSH_SELECTION = "data-cell:brush-selection",
|
|
2759
|
+
DATA_CELL_SELECT_MOVE = "data-cell:select-move",
|
|
2708
2760
|
/** ================ Corner Cell ================ */
|
|
2709
2761
|
CORNER_CELL_HOVER = "corner-cell:hover",
|
|
2710
2762
|
CORNER_CELL_CLICK = "corner-cell:click",
|
|
@@ -2729,6 +2781,7 @@ declare enum S2Event {
|
|
|
2729
2781
|
RANGE_FILTERED = "filter:range-filtered",
|
|
2730
2782
|
/** ================ Table Layout ================ */
|
|
2731
2783
|
LAYOUT_AFTER_HEADER_LAYOUT = "layout:after-header-layout",
|
|
2784
|
+
/** @deprecated 已废弃, 请使用 S2Event.GLOBAL_SCROLL 代替 */
|
|
2732
2785
|
LAYOUT_CELL_SCROLL = "layout:cell-scroll",
|
|
2733
2786
|
LAYOUT_PAGINATION = "layout:pagination",
|
|
2734
2787
|
LAYOUT_COLLAPSE_ROWS = "layout:collapsed-rows",
|
|
@@ -2764,7 +2817,8 @@ declare enum S2Event {
|
|
|
2764
2817
|
GLOBAL_SELECTED = "global:selected",
|
|
2765
2818
|
GLOBAL_HOVER = "global:hover",
|
|
2766
2819
|
GLOBAL_RESET = "global:reset",
|
|
2767
|
-
GLOBAL_LINK_FIELD_JUMP = "global:link-field-jump"
|
|
2820
|
+
GLOBAL_LINK_FIELD_JUMP = "global:link-field-jump",
|
|
2821
|
+
GLOBAL_SCROLL = "global:scroll"
|
|
2768
2822
|
}
|
|
2769
2823
|
|
|
2770
2824
|
declare interface S2EventHandler {
|
|
@@ -2798,7 +2852,6 @@ declare interface S2Theme extends CellThemes {
|
|
|
2798
2852
|
resizeArea?: ResizeArea;
|
|
2799
2853
|
scrollBar?: ScrollBarTheme;
|
|
2800
2854
|
splitLine?: SplitLine;
|
|
2801
|
-
bullet?: BulletTheme;
|
|
2802
2855
|
prepareSelectMask?: InteractionStateTheme;
|
|
2803
2856
|
background?: Background;
|
|
2804
2857
|
}
|
|
@@ -2939,7 +2992,7 @@ declare class SeriesNumberHeader extends BaseHeader<BaseHeaderConfig> {
|
|
|
2939
2992
|
private getTextPadding;
|
|
2940
2993
|
}
|
|
2941
2994
|
|
|
2942
|
-
export declare const SheetComponent: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
2995
|
+
export declare const SheetComponent: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
2943
2996
|
s2Ref: ShallowRef<SheetExpose>;
|
|
2944
2997
|
sheetType: ComputedRef<DefineComponent< {
|
|
2945
2998
|
sheetType: PropType<SheetType>;
|
|
@@ -2987,6 +3040,7 @@ id: number;
|
|
|
2987
3040
|
isCollapsed: boolean;
|
|
2988
3041
|
node: Node_2_2;
|
|
2989
3042
|
}) => void;
|
|
3043
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
2990
3044
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
2991
3045
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
2992
3046
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3078,6 +3132,7 @@ linkFieldJump: (data: {
|
|
|
3078
3132
|
key: string;
|
|
3079
3133
|
record: Data_2;
|
|
3080
3134
|
}) => void;
|
|
3135
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3081
3136
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
|
|
3082
3137
|
sheetType: PropType<SheetType>;
|
|
3083
3138
|
dataCfg: PropType<S2DataConfig_2>;
|
|
@@ -3119,6 +3174,7 @@ id: number;
|
|
|
3119
3174
|
isCollapsed: boolean;
|
|
3120
3175
|
node: Node_2_2;
|
|
3121
3176
|
}) => any;
|
|
3177
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3122
3178
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3123
3179
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3124
3180
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3210,6 +3266,7 @@ onLinkFieldJump?: (data: {
|
|
|
3210
3266
|
key: string;
|
|
3211
3267
|
record: Data_2;
|
|
3212
3268
|
}) => any;
|
|
3269
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3213
3270
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3214
3271
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3215
3272
|
}, {
|
|
@@ -3224,7 +3281,7 @@ showPagination: boolean | {
|
|
|
3224
3281
|
onShowSizeChange?: (pageSize: number) => void;
|
|
3225
3282
|
onChange?: (current: number) => void;
|
|
3226
3283
|
};
|
|
3227
|
-
}> | DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
3284
|
+
}> | DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
3228
3285
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3229
3286
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3230
3287
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => SpreadSheet_2;
|
|
@@ -3242,6 +3299,7 @@ id: number;
|
|
|
3242
3299
|
isCollapsed: boolean;
|
|
3243
3300
|
node: Node_2_2;
|
|
3244
3301
|
}) => void;
|
|
3302
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3245
3303
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3246
3304
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3247
3305
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3333,7 +3391,8 @@ linkFieldJump: (data: {
|
|
|
3333
3391
|
key: string;
|
|
3334
3392
|
record: Data_2;
|
|
3335
3393
|
}) => void;
|
|
3336
|
-
|
|
3394
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3395
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
3337
3396
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3338
3397
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3339
3398
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3347,6 +3406,7 @@ id: number;
|
|
|
3347
3406
|
isCollapsed: boolean;
|
|
3348
3407
|
node: Node_2_2;
|
|
3349
3408
|
}) => any;
|
|
3409
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3350
3410
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3351
3411
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3352
3412
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3438,6 +3498,7 @@ onLinkFieldJump?: (data: {
|
|
|
3438
3498
|
key: string;
|
|
3439
3499
|
record: Data_2;
|
|
3440
3500
|
}) => any;
|
|
3501
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3441
3502
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3442
3503
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3443
3504
|
}, {}>>;
|
|
@@ -3457,6 +3518,7 @@ id: number;
|
|
|
3457
3518
|
isCollapsed: boolean;
|
|
3458
3519
|
node: Node_2_2;
|
|
3459
3520
|
}) => void;
|
|
3521
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3460
3522
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3461
3523
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3462
3524
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -3548,7 +3610,8 @@ linkFieldJump: (data: {
|
|
|
3548
3610
|
key: string;
|
|
3549
3611
|
record: Data_2;
|
|
3550
3612
|
}) => void;
|
|
3551
|
-
|
|
3613
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
3614
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
3552
3615
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
3553
3616
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
3554
3617
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3562,6 +3625,7 @@ id: number;
|
|
|
3562
3625
|
isCollapsed: boolean;
|
|
3563
3626
|
node: Node_2_2;
|
|
3564
3627
|
}) => any;
|
|
3628
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
3565
3629
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
3566
3630
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
3567
3631
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -3653,6 +3717,7 @@ onLinkFieldJump?: (data: {
|
|
|
3653
3717
|
key: string;
|
|
3654
3718
|
record: Data_2;
|
|
3655
3719
|
}) => any;
|
|
3720
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
3656
3721
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
3657
3722
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
3658
3723
|
}, {}>;
|
|
@@ -3946,7 +4011,7 @@ declare interface Style {
|
|
|
3946
4011
|
device?: 'pc' | 'mobile';
|
|
3947
4012
|
}
|
|
3948
4013
|
|
|
3949
|
-
export declare const TableSheet: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump">, {
|
|
4014
|
+
export declare const TableSheet: DefineComponent<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">, {
|
|
3950
4015
|
s2Ref: ShallowRef<SheetExpose>;
|
|
3951
4016
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3952
4017
|
spreadsheet: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => SpreadSheet_2;
|
|
@@ -3964,6 +4029,7 @@ id: number;
|
|
|
3964
4029
|
isCollapsed: boolean;
|
|
3965
4030
|
node: Node_2_2;
|
|
3966
4031
|
}) => void;
|
|
4032
|
+
rowCellScroll: (position: CellScrollPosition_2) => void;
|
|
3967
4033
|
colCellHover: (data: TargetCellInfo_2) => void;
|
|
3968
4034
|
colCellClick: (data: TargetCellInfo_2) => void;
|
|
3969
4035
|
colCellDoubleClick: (data: TargetCellInfo_2) => void;
|
|
@@ -4055,7 +4121,8 @@ linkFieldJump: (data: {
|
|
|
4055
4121
|
key: string;
|
|
4056
4122
|
record: Data_2;
|
|
4057
4123
|
}) => void;
|
|
4058
|
-
|
|
4124
|
+
scroll: (position: CellScrollPosition_2) => void;
|
|
4125
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<GetInitProps<BaseSheetComponentProps<PartDrillDown, unknown>, "sheetType" | "spreadsheet" | "options" | "loading" | "partDrillDown" | "adaptive" | "showPagination" | "themeCfg" | "header" | "getSpreadSheet" | "onSheetUpdate" | "onRowCellHover" | "onRowCellClick" | "onRowCellDoubleClick" | "onRowCellContextMenu" | "onRowCellMouseDown" | "onRowCellMouseUp" | "onRowCellMouseMove" | "onRowCellCollapseTreeRows" | "onRowCellScroll" | "onColCellHover" | "onColCellClick" | "onColCellDoubleClick" | "onColCellContextMenu" | "onColCellMouseDown" | "onColCellMouseUp" | "onColCellMouseMove" | "onDataCellHover" | "onDataCellClick" | "onDataCellDoubleClick" | "onDataCellContextMenu" | "onDataCellMouseDown" | "onDataCellMouseUp" | "onDataCellMouseMove" | "onDataCellTrendIconClick" | "onDataCellBrushSelection" | "onDataCellSelectMove" | "onCornerCellHover" | "onCornerCellClick" | "onCornerCellDoubleClick" | "onCornerCellContextMenu" | "onCornerCellMouseDown" | "onCornerCellMouseUp" | "onCornerCellMouseMove" | "onMergedCellsHover" | "onMergedCellsClick" | "onMergedCellsDoubleClick" | "onMergedCellsContextMenu" | "onMergedCellsMouseDown" | "onMergedCellsMouseUp" | "onMergedCellsMouseMove" | "onRangeSort" | "onRangeSorted" | "onRangeFilter" | "onRangeFiltered" | "onLayoutAfterHeaderLayout" | "onLayoutPagination" | "onLayoutCellScroll" | "onLayoutAfterCollapseRows" | "onCollapseRowsAll" | "onLayoutColsExpanded" | "onLayoutColsHidden" | "onBeforeRender" | "onAfterRender" | "onDestroy" | "onLayoutResize" | "onLayoutResizeSeriesWidth" | "onLayoutResizeRowWidth" | "onLayoutResizeRowHeight" | "onLayoutResizeColWidth" | "onLayoutResizeColHeight" | "onLayoutResizeTreeWidth" | "onLayoutResizeMouseDown" | "onLayoutResizeMouseUp" | "onLayoutResizeMouseMove" | "onKeyBoardDown" | "onKeyBoardUp" | "onCopied" | "onActionIconHover" | "onActionIconClick" | "onContextMenu" | "onClick" | "onDoubleClick" | "onMouseHover" | "onMouseUp" | "onSelected" | "onReset" | "onLinkFieldJump" | "onScroll">>> & {
|
|
4059
4126
|
onSheetUpdate?: (params: S2RenderOptions_2) => any;
|
|
4060
4127
|
onRowCellHover?: (data: TargetCellInfo_2) => any;
|
|
4061
4128
|
onRowCellClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4069,6 +4136,7 @@ id: number;
|
|
|
4069
4136
|
isCollapsed: boolean;
|
|
4070
4137
|
node: Node_2_2;
|
|
4071
4138
|
}) => any;
|
|
4139
|
+
onRowCellScroll?: (position: CellScrollPosition_2) => any;
|
|
4072
4140
|
onColCellHover?: (data: TargetCellInfo_2) => any;
|
|
4073
4141
|
onColCellClick?: (data: TargetCellInfo_2) => any;
|
|
4074
4142
|
onColCellDoubleClick?: (data: TargetCellInfo_2) => any;
|
|
@@ -4160,6 +4228,7 @@ onLinkFieldJump?: (data: {
|
|
|
4160
4228
|
key: string;
|
|
4161
4229
|
record: Data_2;
|
|
4162
4230
|
}) => any;
|
|
4231
|
+
onScroll?: (position: CellScrollPosition_2) => any;
|
|
4163
4232
|
onSpreadsheet?: (container: S2MountContainer_2, dataCfg: S2DataConfig_2, options: S2Options_2<string | Element>) => any;
|
|
4164
4233
|
onGetSpreadSheet?: (spreadsheet: SpreadSheet_2) => any;
|
|
4165
4234
|
}, {}>;
|
package/esm/index.js
CHANGED
|
@@ -2351,6 +2351,7 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2351
2351
|
useCellEvent(s2Ref, emit, S2Event.ROW_CELL_MOUSE_UP, "rowCellMouseUp");
|
|
2352
2352
|
useCellEvent(s2Ref, emit, S2Event.ROW_CELL_MOUSE_MOVE, "rowCellMouseMove");
|
|
2353
2353
|
useS2Event(s2Ref, emit, S2Event.ROW_CELL_COLLAPSE_TREE_ROWS, "rowCellCollapseTreeRows");
|
|
2354
|
+
useS2Event(s2Ref, emit, S2Event.ROW_CELL_SCROLL, "rowCellScroll");
|
|
2354
2355
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_HOVER, "colCellHover");
|
|
2355
2356
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_CLICK, "colCellClick");
|
|
2356
2357
|
useCellEvent(s2Ref, emit, S2Event.COL_CELL_DOUBLE_CLICK, "colCellDoubleClick");
|
|
@@ -2366,8 +2367,8 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2366
2367
|
useCellEvent(s2Ref, emit, S2Event.DATA_CELL_MOUSE_UP, "dataCellMouseUp");
|
|
2367
2368
|
useCellEvent(s2Ref, emit, S2Event.DATA_CELL_MOUSE_MOVE, "dataCellMouseMove");
|
|
2368
2369
|
useS2Event(s2Ref, emit, S2Event.DATA_CELL_TREND_ICON_CLICK, "dataCellTrendIconClick");
|
|
2369
|
-
useS2Event(s2Ref, emit, S2Event.
|
|
2370
|
-
useS2Event(s2Ref, emit, S2Event.
|
|
2370
|
+
useS2Event(s2Ref, emit, S2Event.DATA_CELL_BRUSH_SELECTION, "dataCellBrushSelection");
|
|
2371
|
+
useS2Event(s2Ref, emit, S2Event.DATA_CELL_SELECT_MOVE, "dataCellSelectMove");
|
|
2371
2372
|
useCellEvent(s2Ref, emit, S2Event.CORNER_CELL_HOVER, "cornerCellHover");
|
|
2372
2373
|
useCellEvent(s2Ref, emit, S2Event.CORNER_CELL_CLICK, "cornerCellClick");
|
|
2373
2374
|
useCellEvent(s2Ref, emit, S2Event.CORNER_CELL_DOUBLE_CLICK, "cornerCellDoubleClick");
|
|
@@ -2419,6 +2420,7 @@ const useEvents = (s2Ref, emit) => {
|
|
|
2419
2420
|
useS2Event(s2Ref, emit, S2Event.GLOBAL_MOUSE_UP, "mouseUp");
|
|
2420
2421
|
useS2Event(s2Ref, emit, S2Event.GLOBAL_RESET, "reset");
|
|
2421
2422
|
useS2Event(s2Ref, emit, S2Event.GLOBAL_LINK_FIELD_JUMP, "linkFieldJump");
|
|
2423
|
+
useS2Event(s2Ref, emit, S2Event.GLOBAL_SCROLL, "scroll");
|
|
2422
2424
|
});
|
|
2423
2425
|
};
|
|
2424
2426
|
const useLoading = (s2Ref, loadingProp = false) => {
|