@opentinyvue/vue-grid 3.23.0 → 3.25.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.
Files changed (40) hide show
  1. package/lib/index.js +9778 -10716
  2. package/package.json +17 -17
  3. package/src/body/src/body.d.ts +26 -12
  4. package/src/body/src/usePool.d.ts +6 -0
  5. package/src/cell/index.d.ts +4 -1
  6. package/src/cell/src/cell.d.ts +4 -1
  7. package/src/column/src/column.d.ts +14 -6
  8. package/src/composable/index.d.ts +5 -0
  9. package/src/composable/useCellEvent.d.ts +16 -0
  10. package/src/composable/useCellSpan.d.ts +5 -0
  11. package/src/composable/useCellStatus.d.ts +3 -0
  12. package/src/composable/useData.d.ts +7 -0
  13. package/src/composable/useDrag/index.d.ts +2 -2
  14. package/src/composable/useHeader.d.ts +10 -0
  15. package/src/composable/useRowGroup.d.ts +3 -2
  16. package/src/config.d.ts +35 -0
  17. package/src/edit/src/methods.d.ts +1 -1
  18. package/src/grid/grid.d.ts +4 -2
  19. package/src/loading/src/loading.d.ts +2 -0
  20. package/src/mobile-first/column-content.vue.d.ts +2 -0
  21. package/src/mobile-first/column-layout.vue.d.ts +2 -0
  22. package/src/mobile-first/column-link.vue.d.ts +2 -0
  23. package/src/mobile-first/column-type.vue.d.ts +2 -0
  24. package/src/mobile-first/custom-view.vue.d.ts +2 -0
  25. package/src/mobile-first/empty.vue.d.ts +2 -0
  26. package/src/mobile-first/gantt-view.vue.d.ts +2 -0
  27. package/src/mobile-first/index.vue.d.ts +2 -15
  28. package/src/mobile-first/list-view.vue.d.ts +2 -0
  29. package/src/mobile-first/table-row.vue.d.ts +2 -0
  30. package/src/table/src/methods.d.ts +41 -17
  31. package/src/table/src/strategy.d.ts +13 -23
  32. package/src/table/src/table.d.ts +238 -50
  33. package/src/table/src/utils/autoCellWidth.d.ts +6 -31
  34. package/src/table/src/utils/updateStyle.d.ts +1 -5
  35. package/src/tree/src/methods.d.ts +1 -1
  36. package/src/footer/index.d.ts +0 -26
  37. package/src/footer/src/footer.d.ts +0 -63
  38. package/src/header/index.d.ts +0 -26
  39. package/src/header/src/header.d.ts +0 -51
  40. package/src/table/src/utils/handleFixedColumn.d.ts +0 -6
@@ -1,5 +1,7 @@
1
1
  import { handleGlobalMousedownEvent, handleGlobalBlurEvent, handleGlobalMousewheelEvent, handleArrowKeyDown, handleCopyKeyDown, handleCtxMenu, handleDelKeyDown, handleEnterKeyDown, handleEscKeyDown, handleF2KeyDown, handleOtherKeyDown, handleSpaceKeyDown, handleTabKeyDown, handleGlobalKeydownEvent, handleGlobalResizeEvent, handleGlobalMousedownCaptureEvent } from './events';
2
2
  declare const Methods: {
3
+ addIntersectionObserver(): void;
4
+ removeIntersectionObserver(): void;
3
5
  getParentElem(): any;
4
6
  updateParentHeight(): void;
5
7
  getParentHeight(): any;
@@ -11,22 +13,40 @@ declare const Methods: {
11
13
  loadTableData(datas: any, notRefresh: any): any;
12
14
  reloadData(datas: any): any;
13
15
  loadData(datas: any): Promise<unknown>;
16
+ getOriginRow(row: any): any;
17
+ setOriginRow(row: any, record: any): void;
14
18
  reloadRow(row: any, record: any, field: any): any;
15
19
  reloadColumn(columns: any): any;
16
20
  loadColumn(columns: any): Promise<any>;
17
- updateCache(source: any): void;
18
- cacheColumnMap(): void;
19
- getRowNode(tr: any): any;
20
- getColumnNode(cell: any): any;
21
+ /** 设置数据查找缓存,对数据进行备份,深度克隆 */
22
+ updateCache(backup?: boolean, deepCopy?: boolean): void;
23
+ cacheColumnMap(options: any): void;
24
+ getRowNode(tr: any): {
25
+ item: any;
26
+ index: any;
27
+ items: any;
28
+ } | null;
29
+ getColumnNode(cell: any): {
30
+ index: any;
31
+ item: any;
32
+ items: any;
33
+ } | null;
21
34
  getRowIndex(row: any): any;
22
35
  getColumnIndex(column: any): any;
23
- hasIndexColumn(column: any): any;
36
+ hasIndexColumn(column: any): boolean;
24
37
  defineField(row: any, copy: any): any;
25
38
  isTemporaryRow(row: any): any;
26
39
  createData(records: any, copy: any): Promise<unknown>;
27
40
  createRow(records: any): Promise<unknown>;
41
+ /**
42
+ * 清空单元格内容:
43
+ * 如果不传参数,则清空整个表格内容;
44
+ * 如果传row,则清空一行内容;
45
+ * 如果传rows,则清空多行内容;
46
+ * 如果还额外传了field,则清空指定单元格内容;
47
+ */
28
48
  clearData(rows: any, field: any): any;
29
- hasRowInsert(row: any): number;
49
+ hasRowInsert(row: any): any;
30
50
  compareRow(row: any, originalRow: any, field: any): any;
31
51
  hasRowChange(row: any, field: any): any;
32
52
  getColumns(columnIndex: any): any;
@@ -41,6 +61,12 @@ declare const Methods: {
41
61
  getData(rowIndex: any): any;
42
62
  getSelectRecords(notCopy: any): any;
43
63
  updateAfterFullData(): any;
64
+ /** 处理后数据,构建分组数据和构建渲染图 */
65
+ handleAfterFullData(): void;
66
+ /** 处理外部过滤和重置,区别于表头过滤 */
67
+ handleExternalFilter(value: any, filter: any): Promise<unknown>;
68
+ updateSelectionStatus(): void;
69
+ getRowCount(): any;
44
70
  getRowById(rowid: any): any;
45
71
  getTableData(): {
46
72
  visibleData: any;
@@ -51,10 +77,10 @@ declare const Methods: {
51
77
  handleDefault(): void;
52
78
  mergeCustomColumn(customColumns: any, sort: any, colWidth: any): void;
53
79
  resetAll(): void;
54
- hideColumn(tableColumn: any): any;
55
- showColumn(tableColumn: any): any;
80
+ showColumn(column: any): any;
81
+ hideColumn(column: any): any;
82
+ handleVisibleColumn(column: any, visible: any): any;
56
83
  resetCustoms(): any;
57
- handleVisibleColumn(tableColumn: any, visible: any): any;
58
84
  reloadCustoms(customColumns: any, sort: any, colWidth: any): any;
59
85
  watchColumn(value: any): void;
60
86
  refreshColumn(): any;
@@ -64,10 +90,9 @@ declare const Methods: {
64
90
  * 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
65
91
  */
66
92
  recalculate(): any;
67
- autoCellWidth(headerEl: any, bodyEl: any, footerEl: any): void;
68
- syncHeaderHeight(): void;
93
+ autoCellWidth(): void;
69
94
  resetResizable(): any;
70
- updateStyle(): any;
95
+ updateStyle(): void;
71
96
  preventEvent(event: any, type: any, args: any, next: any, end: any): void;
72
97
  blurOutside({ row, args, column }: {
73
98
  row: any;
@@ -133,8 +158,6 @@ declare const Methods: {
133
158
  getRowHeight(): any;
134
159
  computeScrollLoad(): any;
135
160
  updateScrollXData(): void;
136
- updateScrollXSpace(): void;
137
- debounceRaf(handlerKey: any, callback: any): void;
138
161
  updateScrollYData(): void;
139
162
  updateScrollYSpace(): void;
140
163
  updateScrollLoadBar(event: any): void;
@@ -165,14 +188,15 @@ declare const Methods: {
165
188
  targetElem?: undefined;
166
189
  };
167
190
  handleVisibilityChange(visible: any, entry: any): void;
168
- updateTableBodyHeight(): void;
169
191
  toggleColumnOrder(column: any): "asc" | "desc" | null;
170
- watchDataForVue3(): void;
192
+ handleDataChange(): void;
171
193
  getVm(name: any): any;
172
194
  assembleColumns(): void;
173
195
  isValidCustomColumn(columnName: any): any;
174
196
  computeCollectKey(): string;
175
197
  getAllSelection(): any;
176
- attemptRestoreScoll(options: any): any;
198
+ attemptRestoreScroll(options: any): any;
199
+ updateRowStatus(row: any): void;
200
+ getCellStatus(row: any, column: any): any;
177
201
  };
178
202
  export default Methods;
@@ -1,34 +1,24 @@
1
- declare const getRowUniqueId: () => string;
2
- declare const setTableRowKey: ($table: any) => any;
3
- declare const getTableRowKey: ($table: any) => any;
4
- declare const getTableCellKey: ({ $table, column, row }: {
5
- $table: any;
6
- column: any;
7
- row: any;
8
- }) => string;
9
- declare const setTreeScrollYCache: (_vm: any) => void;
10
- declare const sliceFullData: (_vm: any) => any;
11
- declare const getTotalRows: (_vm: any) => any;
12
- declare const getTreeChildrenKey: ({ scrollYLoad, treeConfig }: {
13
- scrollYLoad: any;
14
- treeConfig: any;
15
- }) => any;
16
- declare const getTreeShowKey: ({ scrollYLoad, treeConfig }: {
17
- scrollYLoad: any;
18
- treeConfig: any;
19
- }) => string | undefined;
20
- declare const sliceVisibleColumn: (tableVm: any) => {
1
+ declare const sliceVisibleColumn: (args: any) => {
21
2
  tableColumn: any;
22
3
  lastStartIndex: any;
23
4
  visibleColumnChanged: any;
24
5
  sliced: boolean;
6
+ addedColumn: never[];
25
7
  };
26
- declare const clearOnTableUnmount: ($table: any) => void;
27
- declare const setSliceColumnTree: (_vm: any) => any;
28
8
  /** 判断是否是虚拟行 */
29
9
  declare const isVirtualRow: (row: any) => any;
30
10
  /** 普通表分组场景,在全量数据筛选排序之后,进行分组处理生成虚拟行 */
31
11
  declare const buildRowGroupFullData: (fullData: any, _vm: any) => void;
32
12
  /** 普通表分组场景,分组行点击处理 */
33
13
  declare const handleRowGroupFold: (row: any, _vm: any) => void;
34
- export { clearOnTableUnmount, getRowUniqueId, getTableCellKey, getTableRowKey, getTotalRows, getTreeChildrenKey, getTreeShowKey, setTreeScrollYCache, setTableRowKey, sliceFullData, sliceVisibleColumn, setSliceColumnTree, buildRowGroupFullData, handleRowGroupFold, isVirtualRow };
14
+ declare const getFixedStyle: ({ fixedDetails }: {
15
+ fixedDetails: any;
16
+ }, { overflowX }: {
17
+ overflowX: any;
18
+ }) => any;
19
+ declare const getFixedClass: ({ fixedDetails }: {
20
+ fixedDetails: any;
21
+ }, { overflowX }: {
22
+ overflowX: any;
23
+ }) => any;
24
+ export { sliceVisibleColumn, buildRowGroupFullData, handleRowGroupFold, isVirtualRow, getFixedStyle, getFixedClass };
@@ -40,7 +40,10 @@ declare const _default: hooks.DefineComponent<{
40
40
  contextMenu: ObjectConstructor;
41
41
  customs: ArrayConstructor;
42
42
  data: (ObjectConstructor | ArrayConstructor)[];
43
- dropConfig: ObjectConstructor;
43
+ dropConfig: {
44
+ type: ObjectConstructor;
45
+ default: () => {};
46
+ };
44
47
  editConfig: (BooleanConstructor | ObjectConstructor)[];
45
48
  editRules: ObjectConstructor;
46
49
  expandConfig: ObjectConstructor;
@@ -84,12 +87,18 @@ declare const _default: hooks.DefineComponent<{
84
87
  isAsyncColumn: BooleanConstructor;
85
88
  isCenterEmpty: BooleanConstructor;
86
89
  isDragHeaderSorting: BooleanConstructor;
87
- keyboardConfig: ObjectConstructor;
90
+ keyboardConfig: {
91
+ type: ObjectConstructor;
92
+ default: () => {};
93
+ };
88
94
  loading: BooleanConstructor;
89
95
  loadingComponent: ObjectConstructor;
90
96
  maxHeight: (StringConstructor | NumberConstructor)[];
91
97
  minHeight: (StringConstructor | NumberConstructor)[];
92
- mouseConfig: ObjectConstructor;
98
+ mouseConfig: {
99
+ type: ObjectConstructor;
100
+ default: () => {};
101
+ };
93
102
  optimization: ObjectConstructor;
94
103
  params: ObjectConstructor;
95
104
  radioConfig: ObjectConstructor;
@@ -182,14 +191,14 @@ declare const _default: hooks.DefineComponent<{
182
191
  prefetch: (BooleanConstructor | ArrayConstructor)[];
183
192
  intersectionOption: ObjectConstructor;
184
193
  equals: FunctionConstructor;
185
- operationColumnResizable: {
186
- type: BooleanConstructor;
187
- default: () => boolean;
188
- };
189
194
  autoClearMouseChecked: {
190
195
  type: BooleanConstructor;
191
196
  default: boolean;
192
197
  };
198
+ operationColumnResizable: {
199
+ type: BooleanConstructor;
200
+ default: () => boolean;
201
+ };
193
202
  autoClearKeyboardCopy: {
194
203
  type: BooleanConstructor;
195
204
  default: boolean;
@@ -198,6 +207,13 @@ declare const _default: hooks.DefineComponent<{
198
207
  type: (StringConstructor | ArrayConstructor)[];
199
208
  default: string;
200
209
  };
210
+ tiny_mode: StringConstructor;
211
+ tiny_mode_root: BooleanConstructor;
212
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
213
+ tiny_renderless: FunctionConstructor;
214
+ tiny_theme: StringConstructor;
215
+ tiny_mcp_config: ObjectConstructor;
216
+ tiny_chart_theme: ObjectConstructor;
201
217
  }, {
202
218
  slots: Readonly<{
203
219
  [name: string]: hooks.Slot<any> | undefined;
@@ -209,7 +225,149 @@ declare const _default: hooks.DefineComponent<{
209
225
  tableFullColumn: hooks.Ref<never[]>;
210
226
  visibleColumn: hooks.Ref<never[]>;
211
227
  tableColumn: hooks.Ref<never[]>;
212
- }, object, {
228
+ tableNode: hooks.Ref<never[]>;
229
+ tableData: hooks.Ref<never[]>;
230
+ footerData: hooks.Ref<never[]>;
231
+ bodyProps: hooks.ComputedRef<{
232
+ collectColumn: never[];
233
+ tableColumn: never[];
234
+ tableNode: never[];
235
+ tableData: never[];
236
+ footerData: never[];
237
+ }>;
238
+ mfTableProps: hooks.ComputedRef<{
239
+ tableData: never[];
240
+ cardConfig: Record<string, any> | undefined;
241
+ listConfig: Record<string, any> | undefined;
242
+ ganttConfig: Record<string, any> | undefined;
243
+ customConfig: Record<string, any> | undefined;
244
+ }>;
245
+ vSize: hooks.ComputedRef<any>;
246
+ optimizeOpts: hooks.ComputedRef<object>;
247
+ rowHeight: hooks.ComputedRef<any>;
248
+ headerRowHeight: hooks.ComputedRef<any>;
249
+ tableWrapper: hooks.Ref<any>;
250
+ scrollXLoad: hooks.Ref<boolean>;
251
+ scrollYLoad: hooks.Ref<boolean>;
252
+ headerHeight: hooks.Ref<number>;
253
+ footerHeight: hooks.Ref<number>;
254
+ isColumnWidthAssigned: hooks.Ref<boolean>;
255
+ bodyWrapperHeight: hooks.Ref<any>;
256
+ bodyWrapperMinHeight: hooks.Ref<any>;
257
+ bodyWrapperMaxHeight: hooks.Ref<any>;
258
+ bodyTableWidth: hooks.Ref<any>;
259
+ scrollLoadScrollHeight: hooks.Ref<any>;
260
+ columnStore: hooks.Ref<{
261
+ autoList: never[];
262
+ centerList: never[];
263
+ leftList: never[];
264
+ rightList: never[];
265
+ pxList: never[];
266
+ pxMinList: never[];
267
+ resizeList: never[];
268
+ scaleList: never[];
269
+ scaleMinList: never[];
270
+ }>;
271
+ tiledLength: hooks.Ref<number>;
272
+ }, {
273
+ asyncRenderMap: {};
274
+ ctxMenuStore: {
275
+ list: never[];
276
+ selectChild: null;
277
+ selected: null;
278
+ showChild: boolean;
279
+ style: null;
280
+ visible: boolean;
281
+ };
282
+ currentRow: null;
283
+ editStore: {
284
+ editorAutoRefreshKey: number;
285
+ actived: {
286
+ column: null;
287
+ row: null;
288
+ };
289
+ checked: {
290
+ columns: never[];
291
+ rows: never[];
292
+ tColumns: never[];
293
+ tRows: never[];
294
+ };
295
+ copyed: {
296
+ columns: never[];
297
+ cut: boolean;
298
+ rows: never[];
299
+ };
300
+ indexs: {
301
+ columns: never[];
302
+ };
303
+ insertList: never[];
304
+ removeList: never[];
305
+ selected: {
306
+ column: null;
307
+ row: null;
308
+ };
309
+ titles: {
310
+ columns: never[];
311
+ };
312
+ };
313
+ expandeds: never[];
314
+ filterStore: {
315
+ column: null;
316
+ condition: {
317
+ input: string;
318
+ relation: string;
319
+ };
320
+ id: string;
321
+ multi: boolean;
322
+ options: never[];
323
+ visible: boolean;
324
+ };
325
+ headerCheckDisabled: boolean;
326
+ isAllSelected: boolean;
327
+ isIndeterminate: boolean;
328
+ overflowX: boolean;
329
+ overflowY: boolean;
330
+ scrollLoadStore: {
331
+ bodyHeight: number;
332
+ scrollHeight: number;
333
+ };
334
+ scrollbarHeight: number;
335
+ scrollbarWidth: number;
336
+ selectRow: null;
337
+ selectToolbarStore: {
338
+ layout: {
339
+ height: number;
340
+ left: number;
341
+ top: number;
342
+ width: number;
343
+ zIndex: number;
344
+ };
345
+ visible: boolean;
346
+ };
347
+ selection: never[];
348
+ tooltipContent: string;
349
+ tooltipContentPre: boolean;
350
+ treeExpandeds: never[];
351
+ treeIndeterminates: never[];
352
+ validStore: {
353
+ column: null;
354
+ content: string;
355
+ isArrow: boolean;
356
+ row: null;
357
+ rule: null;
358
+ visible: boolean;
359
+ };
360
+ validTipContent: string;
361
+ validatedMap: {};
362
+ parentHeight: number;
363
+ horizonScroll: {
364
+ fixed: boolean;
365
+ threshold: number;
366
+ max: number;
367
+ isLeft: boolean;
368
+ isRight: boolean;
369
+ };
370
+ }, {
213
371
  bodyCtxMenu(): any;
214
372
  ctxMenuList(): never[];
215
373
  ctxMenuOpts(): object;
@@ -219,21 +377,19 @@ declare const _default: hooks.DefineComponent<{
219
377
  isCtxMenu(): any;
220
378
  isGroup(): boolean;
221
379
  isResizable(): boolean;
222
- optimizeOpts(): object;
223
380
  sortOpts(): object;
224
381
  tooltipContentOpts(): object;
225
- vSize(): any;
226
382
  vaildTipOpts(): object;
227
383
  validOpts(): any;
228
- computerTableBodyHeight(): string;
229
384
  isThemeTiny(): boolean;
230
385
  isThemeSaas(): boolean;
231
386
  isViewDefault(): boolean;
232
387
  isShapeTable(): boolean;
233
388
  columnNames(): string[];
234
389
  }, {
235
- handleDataChange(): void;
236
390
  viewCls(module: any): any;
391
+ addIntersectionObserver(): void;
392
+ removeIntersectionObserver(): void;
237
393
  getParentElem(): any;
238
394
  updateParentHeight(): void;
239
395
  getParentHeight(): any;
@@ -245,22 +401,32 @@ declare const _default: hooks.DefineComponent<{
245
401
  loadTableData(datas: any, notRefresh: any): any;
246
402
  reloadData(datas: any): any;
247
403
  loadData(datas: any): Promise<unknown>;
404
+ getOriginRow(row: any): any;
405
+ setOriginRow(row: any, record: any): void;
248
406
  reloadRow(row: any, record: any, field: any): any;
249
407
  reloadColumn(columns: any): any;
250
408
  loadColumn(columns: any): Promise<any>;
251
- updateCache(source: any): void;
252
- cacheColumnMap(): void;
253
- getRowNode(tr: any): any;
254
- getColumnNode(cell: any): any;
409
+ updateCache(backup?: boolean, deepCopy?: boolean): void;
410
+ cacheColumnMap(options: any): void;
411
+ getRowNode(tr: any): {
412
+ item: any;
413
+ index: any;
414
+ items: any;
415
+ } | null;
416
+ getColumnNode(cell: any): {
417
+ index: any;
418
+ item: any;
419
+ items: any;
420
+ } | null;
255
421
  getRowIndex(row: any): any;
256
422
  getColumnIndex(column: any): any;
257
- hasIndexColumn(column: any): any;
423
+ hasIndexColumn(column: any): boolean;
258
424
  defineField(row: any, copy: any): any;
259
425
  isTemporaryRow(row: any): any;
260
426
  createData(records: any, copy: any): Promise<unknown>;
261
427
  createRow(records: any): Promise<unknown>;
262
428
  clearData(rows: any, field: any): any;
263
- hasRowInsert(row: any): number;
429
+ hasRowInsert(row: any): any;
264
430
  compareRow(row: any, originalRow: any, field: any): any;
265
431
  hasRowChange(row: any, field: any): any;
266
432
  getColumns(columnIndex: any): any;
@@ -275,6 +441,10 @@ declare const _default: hooks.DefineComponent<{
275
441
  getData(rowIndex: any): any;
276
442
  getSelectRecords(notCopy: any): any;
277
443
  updateAfterFullData(): any;
444
+ handleAfterFullData(): void;
445
+ handleExternalFilter(value: any, filter: any): Promise<unknown>;
446
+ updateSelectionStatus(): void;
447
+ getRowCount(): any;
278
448
  getRowById(rowid: any): any;
279
449
  getTableData(): {
280
450
  visibleData: any;
@@ -285,19 +455,18 @@ declare const _default: hooks.DefineComponent<{
285
455
  handleDefault(): void;
286
456
  mergeCustomColumn(customColumns: any, sort: any, colWidth: any): void;
287
457
  resetAll(): void;
288
- hideColumn(tableColumn: any): any;
289
- showColumn(tableColumn: any): any;
458
+ showColumn(column: any): any;
459
+ hideColumn(column: any): any;
460
+ handleVisibleColumn(column: any, visible: any): any;
290
461
  resetCustoms(): any;
291
- handleVisibleColumn(tableColumn: any, visible: any): any;
292
462
  reloadCustoms(customColumns: any, sort: any, colWidth: any): any;
293
463
  watchColumn(value: any): void;
294
464
  refreshColumn(): any;
295
465
  analyColumnWidth(): void;
296
466
  recalculate(): any;
297
- autoCellWidth(headerEl: any, bodyEl: any, footerEl: any): void;
298
- syncHeaderHeight(): void;
467
+ autoCellWidth(): void;
299
468
  resetResizable(): any;
300
- updateStyle(): any;
469
+ updateStyle(): void;
301
470
  preventEvent(event: any, type: any, args: any, next: any, end: any): void;
302
471
  blurOutside({ row, args, column }: {
303
472
  row: any;
@@ -363,8 +532,6 @@ declare const _default: hooks.DefineComponent<{
363
532
  getRowHeight(): any;
364
533
  computeScrollLoad(): any;
365
534
  updateScrollXData(): void;
366
- updateScrollXSpace(): void;
367
- debounceRaf(handlerKey: any, callback: any): void;
368
535
  updateScrollYData(): void;
369
536
  updateScrollYSpace(): void;
370
537
  updateScrollLoadBar(event: any): void;
@@ -395,15 +562,16 @@ declare const _default: hooks.DefineComponent<{
395
562
  targetElem?: undefined;
396
563
  };
397
564
  handleVisibilityChange(visible: any, entry: any): void;
398
- updateTableBodyHeight(): void;
399
565
  toggleColumnOrder(column: any): "asc" | "desc" | null;
400
- watchDataForVue3(): void;
566
+ handleDataChange(): void;
401
567
  getVm(name: any): any;
402
568
  assembleColumns(): void;
403
569
  isValidCustomColumn(columnName: any): any;
404
570
  computeCollectKey(): string;
405
571
  getAllSelection(): any;
406
- attemptRestoreScoll(options: any): any;
572
+ attemptRestoreScroll(options: any): any;
573
+ updateRowStatus(row: any): void;
574
+ getCellStatus(row: any, column: any): any;
407
575
  }, hooks.ComponentOptionsMixin, hooks.ComponentOptionsMixin, {}, string, hooks.PublicProps, Readonly<hooks.ExtractPropTypes<{
408
576
  align: {
409
577
  type: StringConstructor;
@@ -421,7 +589,10 @@ declare const _default: hooks.DefineComponent<{
421
589
  contextMenu: ObjectConstructor;
422
590
  customs: ArrayConstructor;
423
591
  data: (ObjectConstructor | ArrayConstructor)[];
424
- dropConfig: ObjectConstructor;
592
+ dropConfig: {
593
+ type: ObjectConstructor;
594
+ default: () => {};
595
+ };
425
596
  editConfig: (BooleanConstructor | ObjectConstructor)[];
426
597
  editRules: ObjectConstructor;
427
598
  expandConfig: ObjectConstructor;
@@ -465,12 +636,18 @@ declare const _default: hooks.DefineComponent<{
465
636
  isAsyncColumn: BooleanConstructor;
466
637
  isCenterEmpty: BooleanConstructor;
467
638
  isDragHeaderSorting: BooleanConstructor;
468
- keyboardConfig: ObjectConstructor;
639
+ keyboardConfig: {
640
+ type: ObjectConstructor;
641
+ default: () => {};
642
+ };
469
643
  loading: BooleanConstructor;
470
644
  loadingComponent: ObjectConstructor;
471
645
  maxHeight: (StringConstructor | NumberConstructor)[];
472
646
  minHeight: (StringConstructor | NumberConstructor)[];
473
- mouseConfig: ObjectConstructor;
647
+ mouseConfig: {
648
+ type: ObjectConstructor;
649
+ default: () => {};
650
+ };
474
651
  optimization: ObjectConstructor;
475
652
  params: ObjectConstructor;
476
653
  radioConfig: ObjectConstructor;
@@ -563,14 +740,14 @@ declare const _default: hooks.DefineComponent<{
563
740
  prefetch: (BooleanConstructor | ArrayConstructor)[];
564
741
  intersectionOption: ObjectConstructor;
565
742
  equals: FunctionConstructor;
566
- operationColumnResizable: {
567
- type: BooleanConstructor;
568
- default: () => boolean;
569
- };
570
743
  autoClearMouseChecked: {
571
744
  type: BooleanConstructor;
572
745
  default: boolean;
573
746
  };
747
+ operationColumnResizable: {
748
+ type: BooleanConstructor;
749
+ default: () => boolean;
750
+ };
574
751
  autoClearKeyboardCopy: {
575
752
  type: BooleanConstructor;
576
753
  default: boolean;
@@ -579,9 +756,17 @@ declare const _default: hooks.DefineComponent<{
579
756
  type: (StringConstructor | ArrayConstructor)[];
580
757
  default: string;
581
758
  };
759
+ tiny_mode: StringConstructor;
760
+ tiny_mode_root: BooleanConstructor;
761
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
762
+ tiny_renderless: FunctionConstructor;
763
+ tiny_theme: StringConstructor;
764
+ tiny_mcp_config: ObjectConstructor;
765
+ tiny_chart_theme: ObjectConstructor;
582
766
  }>>, {
583
767
  size: string;
584
768
  loading: boolean;
769
+ tiny_mode_root: boolean;
585
770
  border: boolean;
586
771
  showHeader: boolean;
587
772
  showFooter: boolean;
@@ -589,35 +774,38 @@ declare const _default: hooks.DefineComponent<{
589
774
  align: string;
590
775
  tooltipConfig: Record<string, any>;
591
776
  viewType: string;
592
- highlightCurrentColumn: boolean;
593
- columnKey: boolean;
594
- isDragHeaderSorting: boolean;
777
+ dropConfig: Record<string, any>;
595
778
  resizable: boolean;
596
- headerSuffixIconAbsolute: boolean;
597
- operationColumnResizable: boolean;
598
- showHeaderOverflow: string | boolean;
599
779
  headerAlign: string;
600
780
  footerAlign: string;
601
781
  showOverflow: string | boolean;
782
+ showHeaderOverflow: string | boolean;
783
+ sortable: boolean;
784
+ remoteSort: boolean;
785
+ mouseConfig: Record<string, any>;
786
+ highlightCurrentColumn: boolean;
602
787
  highlightCurrentRow: boolean;
603
788
  rowId: string;
604
- rowKey: boolean;
605
- isCenterEmpty: boolean;
789
+ headerSuffixIconAbsolute: boolean;
790
+ operationColumnResizable: boolean;
791
+ keyboardConfig: Record<string, any>;
606
792
  remoteFilter: boolean;
607
- sortable: boolean;
608
- remoteSort: boolean;
609
793
  fit: boolean;
610
794
  isAsyncColumn: boolean;
795
+ rowKey: boolean;
611
796
  mfShow: string;
797
+ syncResize: boolean;
798
+ autoResize: boolean;
799
+ columnKey: boolean;
612
800
  highlightCell: boolean;
613
- stripe: boolean;
614
- highlightHoverRow: boolean;
615
801
  highlightHoverColumn: boolean;
802
+ highlightHoverRow: boolean;
803
+ isCenterEmpty: boolean;
804
+ isDragHeaderSorting: boolean;
805
+ stripe: boolean;
616
806
  stripeSaas: boolean;
617
807
  borderSaas: boolean;
618
808
  borderVertical: boolean;
619
- syncResize: boolean;
620
- autoResize: boolean;
621
809
  autoClearMouseChecked: boolean;
622
810
  autoClearKeyboardCopy: boolean;
623
811
  customColumnNames: string | unknown[];
@@ -1,34 +1,8 @@
1
- /**
2
- * MIT License
3
- *
4
- * Copyright (c) 2019 Xu Liangzhan
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- *
24
- */
25
- export declare const calcTableWidth: ({ bodyWidth, columnStore, fit, minCellWidth, remainWidth }: {
26
- bodyWidth: any;
27
- columnStore: any;
28
- fit: any;
29
- minCellWidth: any;
30
- remainWidth: any;
31
- }) => number;
1
+ export declare const calcTableWidth: ($table: any) => {
2
+ totalWidth: number;
3
+ offsetWidth: any;
4
+ offsetHeight: any;
5
+ };
32
6
  export declare const calcFixedStickyPosition: ({ headerEl, bodyEl, columnStore, scrollbarWidth, columnChart, isGroup }: {
33
7
  headerEl: any;
34
8
  bodyEl: any;
@@ -37,3 +11,4 @@ export declare const calcFixedStickyPosition: ({ headerEl, bodyEl, columnStore,
37
11
  columnChart: any;
38
12
  isGroup: any;
39
13
  }) => void;
14
+ export declare function calcFixedDetails(_vm: any): void;
@@ -1,5 +1 @@
1
- export declare function handleLayout(params: any): {
2
- tableColumn: any;
3
- maxHeight: any;
4
- minHeight: any;
5
- };
1
+ export declare function handleLayout(_vm: any): void;
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  row: any;
4
4
  }): any;
5
5
  toggleTreeExpansion(row: any): any;
6
- handleDefaultTreeExpand(): void;
6
+ handleDefaultTreeExpand(): any;
7
7
  setAllTreeExpansion(expanded: any): any;
8
8
  setTreeExpansion(rows: any, expanded: any): any;
9
9
  hasTreeExpand(row: any): any;