stk-table-vue 0.6.8 → 0.6.10

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.
@@ -63,89 +63,100 @@ declare function setRowExpand(rowKeyOrRow: string | undefined | DT, expand?: boo
63
63
  col?: StkTableColumn<DT>;
64
64
  silent?: boolean;
65
65
  }): void;
66
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
67
- width?: string | undefined;
66
+ declare function __VLS_template(): {
67
+ tableHeader?(_: {
68
+ col: StkTableColumn<any>;
69
+ }): any;
70
+ expand?(_: {
71
+ row: any;
72
+ col: any;
73
+ }): any;
74
+ empty?(_: {}): any;
75
+ customBottom?(_: {}): any;
76
+ };
77
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
78
+ width?: string;
68
79
  /** 最小表格宽度 */
69
- minWidth?: string | undefined;
80
+ minWidth?: string;
70
81
  /** 表格最大宽度*/
71
- maxWidth?: string | undefined;
82
+ maxWidth?: string;
72
83
  /** 斑马线条纹 */
73
- stripe?: boolean | undefined;
84
+ stripe?: boolean;
74
85
  /** 是否使用 table-layout:fixed(低版本浏览器需要设置table) */
75
- fixedMode?: boolean | undefined;
86
+ fixedMode?: boolean;
76
87
  /** 是否隐藏表头 */
77
- headless?: boolean | undefined;
88
+ headless?: boolean;
78
89
  /** 主题,亮、暗 */
79
- theme?: "light" | "dark" | undefined;
90
+ theme?: "light" | "dark";
80
91
  /**
81
92
  * 行高
82
93
  * - `props.autoRowHeight` 为 `true` 时,将表示为期望行高,用于计算。不再影响实际行高。
83
94
  */
84
- rowHeight?: number | undefined;
95
+ rowHeight?: number;
85
96
  /**
86
97
  * 是否可变行高
87
98
  * - 设置为 `true` 时, `props.rowHeight` 将表示为期望行高,用于计算。不再影响实际行高。
88
99
  */
89
- autoRowHeight?: boolean | AutoRowHeightConfig<any> | undefined;
100
+ autoRowHeight?: boolean | AutoRowHeightConfig<DT>;
90
101
  /** 是否高亮鼠标悬浮的行 */
91
- rowHover?: boolean | undefined;
102
+ rowHover?: boolean;
92
103
  /** 是否高亮选中的行 */
93
- rowActive?: boolean | undefined;
104
+ rowActive?: boolean;
94
105
  /** 当前行再次点击否可以取消 (rowActive=true)*/
95
- rowCurrentRevokable?: boolean | undefined;
106
+ rowCurrentRevokable?: boolean;
96
107
  /** 表头行高。default = rowHeight */
97
- headerRowHeight?: number | null | undefined;
108
+ headerRowHeight?: number | null;
98
109
  /** 虚拟滚动 */
99
- virtual?: boolean | undefined;
110
+ virtual?: boolean;
100
111
  /** x轴虚拟滚动(必须设置列宽)*/
101
- virtualX?: boolean | undefined;
112
+ virtualX?: boolean;
102
113
  /** 表格列配置 */
103
- columns?: StkTableColumn<any>[] | undefined;
114
+ columns?: StkTableColumn<DT>[];
104
115
  /** 表格数据源 */
105
- dataSource?: any[] | undefined;
116
+ dataSource?: DT[];
106
117
  /** 行唯一键 (行唯一值不能为undefined) */
107
- rowKey?: UniqKeyProp | undefined;
118
+ rowKey?: UniqKeyProp;
108
119
  /** 列唯一键 */
109
- colKey?: UniqKeyProp | undefined;
120
+ colKey?: UniqKeyProp;
110
121
  /** 空值展示文字 */
111
122
  emptyCellText?: string | ((option: {
112
- row: any;
113
- col: StkTableColumn<any>;
114
- }) => string) | undefined;
123
+ row: DT;
124
+ col: StkTableColumn<DT>;
125
+ }) => string);
115
126
  /** 暂无数据兜底高度是否撑满 */
116
- noDataFull?: boolean | undefined;
127
+ noDataFull?: boolean;
117
128
  /** 是否展示暂无数据 */
118
- showNoData?: boolean | undefined;
129
+ showNoData?: boolean;
119
130
  /** 是否服务端排序,true则不排序数据 */
120
- sortRemote?: boolean | undefined;
131
+ sortRemote?: boolean;
121
132
  /** 表头是否溢出展示... */
122
- showHeaderOverflow?: boolean | undefined;
133
+ showHeaderOverflow?: boolean;
123
134
  /** 表体溢出是否展示... */
124
- showOverflow?: boolean | undefined;
135
+ showOverflow?: boolean;
125
136
  /** 是否增加行hover class $*$ rename*/
126
- showTrHoverClass?: boolean | undefined;
137
+ showTrHoverClass?: boolean;
127
138
  /** 是否高亮鼠标悬浮的单元格 */
128
- cellHover?: boolean | undefined;
139
+ cellHover?: boolean;
129
140
  /** 是否高亮选中的单元格 */
130
- cellActive?: boolean | undefined;
141
+ cellActive?: boolean;
131
142
  /** 单元格再次点击否可以取消选中 (cellActive=true)*/
132
- selectedCellRevokable?: boolean | undefined;
143
+ selectedCellRevokable?: boolean;
133
144
  /** 表头是否可拖动。支持回调函数。 */
134
- headerDrag?: HeaderDragConfig | undefined;
145
+ headerDrag?: HeaderDragConfig;
135
146
  /**
136
147
  * 给行附加className<br>
137
148
  * FIXME: 是否需要优化,因为不传此prop会使表格行一直执行空函数,是否有影响
138
149
  */
139
- rowClassName?: ((row: any, i: number) => string) | undefined;
150
+ rowClassName?: (row: DT, i: number) => string;
140
151
  /**
141
152
  * 列宽是否可拖动(需要设置v-model:columns)<br>
142
153
  * **不要设置**列minWidth,**必须**设置width<br>
143
154
  * 列宽拖动时,每一列都必须要有width,且minWidth/maxWidth不生效。table width会变为"fit-content"。
144
155
  * - 会自动更新props.columns中的with属性
145
156
  */
146
- colResizable?: boolean | ColResizableConfig<any> | undefined;
157
+ colResizable?: boolean | ColResizableConfig<DT>;
147
158
  /** 可拖动至最小的列宽 */
148
- colMinWidth?: number | undefined;
159
+ colMinWidth?: number;
149
160
  /**
150
161
  * 单元格分割线。
151
162
  * 默认横竖都有
@@ -153,29 +164,29 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
153
164
  * "v" - 仅展示竖线
154
165
  * "body-v" - 仅表体展示竖线
155
166
  */
156
- bordered?: boolean | "h" | "v" | "body-v" | undefined;
167
+ bordered?: boolean | "h" | "v" | "body-v";
157
168
  /**
158
169
  * 自动重新计算虚拟滚动高度宽度。默认true
159
170
  * [非响应式]
160
171
  * 传入方法表示resize后的回调
161
172
  */
162
- autoResize?: boolean | (() => void) | undefined;
173
+ autoResize?: boolean | (() => void);
163
174
  /** 是否展示固定列阴影。为节省性能,默认false。 */
164
- fixedColShadow?: boolean | undefined;
175
+ fixedColShadow?: boolean;
165
176
  /** 优化vue2 滚动 */
166
- optimizeVue2Scroll?: boolean | undefined;
177
+ optimizeVue2Scroll?: boolean;
167
178
  /** 排序配置 */
168
- sortConfig?: SortConfig<any> | undefined;
179
+ sortConfig?: SortConfig<DT>;
169
180
  /** 隐藏头部title。可传入colKey数组 */
170
- hideHeaderTitle?: boolean | string[] | undefined;
181
+ hideHeaderTitle?: boolean | string[];
171
182
  /** 高亮配置 */
172
- highlightConfig?: HighlightConfig | undefined;
183
+ highlightConfig?: HighlightConfig;
173
184
  /** 序号列配置 */
174
- seqConfig?: SeqConfig | undefined;
185
+ seqConfig?: SeqConfig;
175
186
  /** 展开行配置 */
176
- expandConfig?: ExpandConfig | undefined;
187
+ expandConfig?: ExpandConfig;
177
188
  /** 行拖动配置 */
178
- dragRowConfig?: DragRowConfig | undefined;
189
+ dragRowConfig?: DragRowConfig;
179
190
  /**
180
191
  * 固定头,固定列实现方式。(非响应式)
181
192
  *
@@ -185,13 +196,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
185
196
  *
186
197
  * 低版本浏览器强制为'relative',
187
198
  */
188
- cellFixedMode?: "sticky" | "relative" | undefined;
199
+ cellFixedMode?: "sticky" | "relative";
189
200
  /**
190
- * 是否平滑滚动。default: chrome < 85 ? true : false
201
+ * 是否平滑滚动。default: chrome < 85 || chrome > 120 ? true : false
191
202
  * - false: 使用 onwheel 滚动。为了防止滚动过快导致白屏。
192
203
  * - true: 不使用 onwheel 滚动。鼠标滚轮滚动时更加平滑。滚动过快时会白屏。
193
204
  */
194
- smoothScroll?: boolean | undefined;
205
+ smoothScroll?: boolean;
206
+ /** 按整数行纵向滚动 */
207
+ scrollRowByRow?: boolean;
195
208
  }>, {
196
209
  width: string;
197
210
  fixedMode: boolean;
@@ -241,6 +254,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
241
254
  dragRowConfig: () => {};
242
255
  cellFixedMode: string;
243
256
  smoothScroll: boolean;
257
+ scrollRowByRow: boolean;
244
258
  }>>, {
245
259
  /**
246
260
  * 重新计算虚拟列表宽高
@@ -248,7 +262,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
248
262
  * en: calc virtual scroll x & y info
249
263
  * @see {@link initVirtualScroll}
250
264
  */
251
- initVirtualScroll: (height?: number | undefined) => void;
265
+ initVirtualScroll: (height?: number) => void;
252
266
  /**
253
267
  * 重新计算虚拟列表宽度
254
268
  *
@@ -262,7 +276,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
262
276
  * en: calc virtual scroll y
263
277
  * @see {@link initVirtualScrollY}
264
278
  */
265
- initVirtualScrollY: (height?: number | undefined) => void;
279
+ initVirtualScrollY: (height?: number) => void;
266
280
  /**
267
281
  * 选中一行
268
282
  *
@@ -345,7 +359,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
345
359
  * en: When the row height is not fixed, call this method to update the row height if the row height changes.
346
360
  * @see {@link setAutoHeight}
347
361
  */
348
- setAutoHeight: (rowKey: import('./types/index').UniqKey, height?: number | null | undefined) => void;
362
+ setAutoHeight: (rowKey: import('./types/index').UniqKey, height?: number | null) => void;
349
363
  /**
350
364
  * 清除所有行高
351
365
  *
@@ -361,8 +375,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
361
375
  }) => void;
362
376
  "cell-selected": (ev: MouseEvent | null, data: {
363
377
  select: boolean;
364
- row: any;
365
- col: StkTableColumn<any> | undefined;
378
+ row: DT | undefined;
379
+ col: StkTableColumn<DT> | undefined;
366
380
  }) => void;
367
381
  "row-dblclick": (ev: MouseEvent, row: any) => void;
368
382
  "header-row-menu": (ev: MouseEvent) => void;
@@ -371,6 +385,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
371
385
  "cell-mouseenter": (ev: MouseEvent, row: any, col: StkTableColumn<any>) => void;
372
386
  "cell-mouseleave": (ev: MouseEvent, row: any, col: StkTableColumn<any>) => void;
373
387
  "cell-mouseover": (ev: MouseEvent, row: any, col: StkTableColumn<any>) => void;
388
+ "cell-mousedown": (ev: MouseEvent, row: any, col: StkTableColumn<any>) => void;
374
389
  "header-cell-click": (ev: MouseEvent, col: StkTableColumn<any>) => void;
375
390
  scroll: (ev: Event, data: {
376
391
  startIndex: number;
@@ -381,96 +396,96 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
381
396
  "th-drag-start": (dragStartKey: string) => void;
382
397
  "th-drop": (targetColKey: string) => void;
383
398
  "row-order-change": (dragStartKey: string, targetRowKey: string) => void;
384
- "col-resize": (cols: StkTableColumn<any>) => void;
399
+ "col-resize": (col: StkTableColumn<any>) => void;
385
400
  "toggle-row-expand": (data: {
386
401
  expanded: boolean;
387
- row: any;
388
- col: StkTableColumn<any> | null;
402
+ row: DT;
403
+ col: StkTableColumn<DT> | null;
389
404
  }) => void;
390
405
  "update:columns": (cols: StkTableColumn<any>[]) => void;
391
406
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
392
- width?: string | undefined;
407
+ width?: string;
393
408
  /** 最小表格宽度 */
394
- minWidth?: string | undefined;
409
+ minWidth?: string;
395
410
  /** 表格最大宽度*/
396
- maxWidth?: string | undefined;
411
+ maxWidth?: string;
397
412
  /** 斑马线条纹 */
398
- stripe?: boolean | undefined;
413
+ stripe?: boolean;
399
414
  /** 是否使用 table-layout:fixed(低版本浏览器需要设置table) */
400
- fixedMode?: boolean | undefined;
415
+ fixedMode?: boolean;
401
416
  /** 是否隐藏表头 */
402
- headless?: boolean | undefined;
417
+ headless?: boolean;
403
418
  /** 主题,亮、暗 */
404
- theme?: "light" | "dark" | undefined;
419
+ theme?: "light" | "dark";
405
420
  /**
406
421
  * 行高
407
422
  * - `props.autoRowHeight` 为 `true` 时,将表示为期望行高,用于计算。不再影响实际行高。
408
423
  */
409
- rowHeight?: number | undefined;
424
+ rowHeight?: number;
410
425
  /**
411
426
  * 是否可变行高
412
427
  * - 设置为 `true` 时, `props.rowHeight` 将表示为期望行高,用于计算。不再影响实际行高。
413
428
  */
414
- autoRowHeight?: boolean | AutoRowHeightConfig<any> | undefined;
429
+ autoRowHeight?: boolean | AutoRowHeightConfig<DT>;
415
430
  /** 是否高亮鼠标悬浮的行 */
416
- rowHover?: boolean | undefined;
431
+ rowHover?: boolean;
417
432
  /** 是否高亮选中的行 */
418
- rowActive?: boolean | undefined;
433
+ rowActive?: boolean;
419
434
  /** 当前行再次点击否可以取消 (rowActive=true)*/
420
- rowCurrentRevokable?: boolean | undefined;
435
+ rowCurrentRevokable?: boolean;
421
436
  /** 表头行高。default = rowHeight */
422
- headerRowHeight?: number | null | undefined;
437
+ headerRowHeight?: number | null;
423
438
  /** 虚拟滚动 */
424
- virtual?: boolean | undefined;
439
+ virtual?: boolean;
425
440
  /** x轴虚拟滚动(必须设置列宽)*/
426
- virtualX?: boolean | undefined;
441
+ virtualX?: boolean;
427
442
  /** 表格列配置 */
428
- columns?: StkTableColumn<any>[] | undefined;
443
+ columns?: StkTableColumn<DT>[];
429
444
  /** 表格数据源 */
430
- dataSource?: any[] | undefined;
445
+ dataSource?: DT[];
431
446
  /** 行唯一键 (行唯一值不能为undefined) */
432
- rowKey?: UniqKeyProp | undefined;
447
+ rowKey?: UniqKeyProp;
433
448
  /** 列唯一键 */
434
- colKey?: UniqKeyProp | undefined;
449
+ colKey?: UniqKeyProp;
435
450
  /** 空值展示文字 */
436
451
  emptyCellText?: string | ((option: {
437
- row: any;
438
- col: StkTableColumn<any>;
439
- }) => string) | undefined;
452
+ row: DT;
453
+ col: StkTableColumn<DT>;
454
+ }) => string);
440
455
  /** 暂无数据兜底高度是否撑满 */
441
- noDataFull?: boolean | undefined;
456
+ noDataFull?: boolean;
442
457
  /** 是否展示暂无数据 */
443
- showNoData?: boolean | undefined;
458
+ showNoData?: boolean;
444
459
  /** 是否服务端排序,true则不排序数据 */
445
- sortRemote?: boolean | undefined;
460
+ sortRemote?: boolean;
446
461
  /** 表头是否溢出展示... */
447
- showHeaderOverflow?: boolean | undefined;
462
+ showHeaderOverflow?: boolean;
448
463
  /** 表体溢出是否展示... */
449
- showOverflow?: boolean | undefined;
464
+ showOverflow?: boolean;
450
465
  /** 是否增加行hover class $*$ rename*/
451
- showTrHoverClass?: boolean | undefined;
466
+ showTrHoverClass?: boolean;
452
467
  /** 是否高亮鼠标悬浮的单元格 */
453
- cellHover?: boolean | undefined;
468
+ cellHover?: boolean;
454
469
  /** 是否高亮选中的单元格 */
455
- cellActive?: boolean | undefined;
470
+ cellActive?: boolean;
456
471
  /** 单元格再次点击否可以取消选中 (cellActive=true)*/
457
- selectedCellRevokable?: boolean | undefined;
472
+ selectedCellRevokable?: boolean;
458
473
  /** 表头是否可拖动。支持回调函数。 */
459
- headerDrag?: HeaderDragConfig | undefined;
474
+ headerDrag?: HeaderDragConfig;
460
475
  /**
461
476
  * 给行附加className<br>
462
477
  * FIXME: 是否需要优化,因为不传此prop会使表格行一直执行空函数,是否有影响
463
478
  */
464
- rowClassName?: ((row: any, i: number) => string) | undefined;
479
+ rowClassName?: (row: DT, i: number) => string;
465
480
  /**
466
481
  * 列宽是否可拖动(需要设置v-model:columns)<br>
467
482
  * **不要设置**列minWidth,**必须**设置width<br>
468
483
  * 列宽拖动时,每一列都必须要有width,且minWidth/maxWidth不生效。table width会变为"fit-content"。
469
484
  * - 会自动更新props.columns中的with属性
470
485
  */
471
- colResizable?: boolean | ColResizableConfig<any> | undefined;
486
+ colResizable?: boolean | ColResizableConfig<DT>;
472
487
  /** 可拖动至最小的列宽 */
473
- colMinWidth?: number | undefined;
488
+ colMinWidth?: number;
474
489
  /**
475
490
  * 单元格分割线。
476
491
  * 默认横竖都有
@@ -478,29 +493,29 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
478
493
  * "v" - 仅展示竖线
479
494
  * "body-v" - 仅表体展示竖线
480
495
  */
481
- bordered?: boolean | "h" | "v" | "body-v" | undefined;
496
+ bordered?: boolean | "h" | "v" | "body-v";
482
497
  /**
483
498
  * 自动重新计算虚拟滚动高度宽度。默认true
484
499
  * [非响应式]
485
500
  * 传入方法表示resize后的回调
486
501
  */
487
- autoResize?: boolean | (() => void) | undefined;
502
+ autoResize?: boolean | (() => void);
488
503
  /** 是否展示固定列阴影。为节省性能,默认false。 */
489
- fixedColShadow?: boolean | undefined;
504
+ fixedColShadow?: boolean;
490
505
  /** 优化vue2 滚动 */
491
- optimizeVue2Scroll?: boolean | undefined;
506
+ optimizeVue2Scroll?: boolean;
492
507
  /** 排序配置 */
493
- sortConfig?: SortConfig<any> | undefined;
508
+ sortConfig?: SortConfig<DT>;
494
509
  /** 隐藏头部title。可传入colKey数组 */
495
- hideHeaderTitle?: boolean | string[] | undefined;
510
+ hideHeaderTitle?: boolean | string[];
496
511
  /** 高亮配置 */
497
- highlightConfig?: HighlightConfig | undefined;
512
+ highlightConfig?: HighlightConfig;
498
513
  /** 序号列配置 */
499
- seqConfig?: SeqConfig | undefined;
514
+ seqConfig?: SeqConfig;
500
515
  /** 展开行配置 */
501
- expandConfig?: ExpandConfig | undefined;
516
+ expandConfig?: ExpandConfig;
502
517
  /** 行拖动配置 */
503
- dragRowConfig?: DragRowConfig | undefined;
518
+ dragRowConfig?: DragRowConfig;
504
519
  /**
505
520
  * 固定头,固定列实现方式。(非响应式)
506
521
  *
@@ -510,13 +525,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
510
525
  *
511
526
  * 低版本浏览器强制为'relative',
512
527
  */
513
- cellFixedMode?: "sticky" | "relative" | undefined;
528
+ cellFixedMode?: "sticky" | "relative";
514
529
  /**
515
- * 是否平滑滚动。default: chrome < 85 ? true : false
530
+ * 是否平滑滚动。default: chrome < 85 || chrome > 120 ? true : false
516
531
  * - false: 使用 onwheel 滚动。为了防止滚动过快导致白屏。
517
532
  * - true: 不使用 onwheel 滚动。鼠标滚轮滚动时更加平滑。滚动过快时会白屏。
518
533
  */
519
- smoothScroll?: boolean | undefined;
534
+ smoothScroll?: boolean;
535
+ /** 按整数行纵向滚动 */
536
+ scrollRowByRow?: boolean;
520
537
  }>, {
521
538
  width: string;
522
539
  fixedMode: boolean;
@@ -566,13 +583,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
566
583
  dragRowConfig: () => {};
567
584
  cellFixedMode: string;
568
585
  smoothScroll: boolean;
586
+ scrollRowByRow: boolean;
569
587
  }>>> & Readonly<{
570
588
  onScroll?: ((ev: Event, data: {
571
589
  startIndex: number;
572
590
  endIndex: number;
573
591
  }) => any) | undefined;
574
592
  "onUpdate:columns"?: ((cols: StkTableColumn<any>[]) => any) | undefined;
575
- "onCol-resize"?: ((cols: StkTableColumn<any>) => any) | undefined;
593
+ "onCol-resize"?: ((col: StkTableColumn<any>) => any) | undefined;
576
594
  "onTh-drag-start"?: ((dragStartKey: string) => any) | undefined;
577
595
  "onTh-drop"?: ((targetColKey: string) => any) | undefined;
578
596
  "onCol-order-change"?: ((dragStartKey: string, targetColKey: string) => any) | undefined;
@@ -584,8 +602,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
584
602
  }) => any) | undefined;
585
603
  "onCell-selected"?: ((ev: MouseEvent | null, data: {
586
604
  select: boolean;
587
- row: any;
588
- col: StkTableColumn<any> | undefined;
605
+ row: DT | undefined;
606
+ col: StkTableColumn<DT> | undefined;
589
607
  }) => any) | undefined;
590
608
  "onRow-dblclick"?: ((ev: MouseEvent, row: any) => any) | undefined;
591
609
  "onHeader-row-menu"?: ((ev: MouseEvent) => any) | undefined;
@@ -594,22 +612,23 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
594
612
  "onCell-mouseenter"?: ((ev: MouseEvent, row: any, col: StkTableColumn<any>) => any) | undefined;
595
613
  "onCell-mouseleave"?: ((ev: MouseEvent, row: any, col: StkTableColumn<any>) => any) | undefined;
596
614
  "onCell-mouseover"?: ((ev: MouseEvent, row: any, col: StkTableColumn<any>) => any) | undefined;
615
+ "onCell-mousedown"?: ((ev: MouseEvent, row: any, col: StkTableColumn<any>) => any) | undefined;
597
616
  "onHeader-cell-click"?: ((ev: MouseEvent, col: StkTableColumn<any>) => any) | undefined;
598
617
  "onScroll-x"?: ((ev: Event) => any) | undefined;
599
618
  "onToggle-row-expand"?: ((data: {
600
619
  expanded: boolean;
601
- row: any;
602
- col: StkTableColumn<any> | null;
620
+ row: DT;
621
+ col: StkTableColumn<DT> | null;
603
622
  }) => any) | undefined;
604
623
  }>, {
605
624
  width: string;
606
625
  minWidth: string;
607
626
  maxWidth: string;
608
- sortConfig: SortConfig<any>;
627
+ sortConfig: SortConfig<DT>;
609
628
  rowHeight: number;
610
629
  headerRowHeight: number | null;
611
630
  headless: boolean;
612
- autoRowHeight: boolean | AutoRowHeightConfig<any>;
631
+ autoRowHeight: boolean | AutoRowHeightConfig<DT>;
613
632
  stripe: boolean;
614
633
  optimizeVue2Scroll: boolean;
615
634
  rowKey: UniqKeyProp;
@@ -621,11 +640,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
621
640
  rowCurrentRevokable: boolean;
622
641
  virtual: boolean;
623
642
  virtualX: boolean;
624
- columns: StkTableColumn<any>[];
625
- dataSource: any[];
643
+ columns: StkTableColumn<DT>[];
644
+ dataSource: DT[];
626
645
  emptyCellText: string | ((option: {
627
- row: any;
628
- col: StkTableColumn<any>;
646
+ row: DT;
647
+ col: StkTableColumn<DT>;
629
648
  }) => string);
630
649
  noDataFull: boolean;
631
650
  showNoData: boolean;
@@ -637,8 +656,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
637
656
  cellActive: boolean;
638
657
  selectedCellRevokable: boolean;
639
658
  headerDrag: HeaderDragConfig;
640
- rowClassName: (row: any, i: number) => string;
641
- colResizable: boolean | ColResizableConfig<any>;
659
+ rowClassName: (row: DT, i: number) => string;
660
+ colResizable: boolean | ColResizableConfig<DT>;
642
661
  colMinWidth: number;
643
662
  bordered: boolean | "h" | "v" | "body-v";
644
663
  autoResize: boolean | (() => void);
@@ -650,17 +669,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
650
669
  dragRowConfig: DragRowConfig;
651
670
  cellFixedMode: "sticky" | "relative";
652
671
  smoothScroll: boolean;
653
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
654
- tableHeader?(_: {
655
- col: StkTableColumn<any>;
656
- }): any;
657
- expand?(_: {
658
- row: any;
659
- col: any;
660
- }): any;
661
- empty?(_: {}): any;
662
- customBottom?(_: {}): any;
663
- }>;
672
+ scrollRowByRow: boolean;
673
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
674
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
664
675
  export default _default;
665
676
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
666
677
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -25,3 +25,5 @@ export declare const DEFAULT_SMOOTH_SCROLL: boolean;
25
25
  export declare const STK_ID_PREFIX = "stk";
26
26
  /** expanded row key prefix */
27
27
  export declare const EXPANDED_ROW_KEY_PREFIX = "expanded-";
28
+ /** cell key 的分隔符 */
29
+ export declare const CELL_KEY_SEPARATE = "--";