ep-craft 0.1.32 → 0.1.33

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 (89) hide show
  1. package/dist/components/checkbox/index.js +6 -5
  2. package/dist/components/table/index.d.ts +56 -3
  3. package/dist/components/table/index.js +20 -4
  4. package/dist/components/table/src/composables/use-scrollbar.d.ts +6 -0
  5. package/dist/components/table/src/composables/use-scrollbar.js +24 -0
  6. package/dist/components/table/src/config.d.ts +87 -0
  7. package/dist/components/table/src/config.js +210 -0
  8. package/dist/components/table/src/filter-panel.vue.d.ts +837 -0
  9. package/dist/components/table/src/filter-panel.vue.js +130 -0
  10. package/dist/components/table/src/filter-panel2.vue.js +155 -0
  11. package/dist/components/table/src/h-helper.d.ts +13 -0
  12. package/dist/components/table/src/h-helper.js +30 -0
  13. package/dist/components/table/src/layout-observer.d.ts +8 -0
  14. package/dist/components/table/src/layout-observer.js +49 -0
  15. package/dist/components/table/src/store/current.d.ts +15 -0
  16. package/dist/components/table/src/store/current.js +45 -0
  17. package/dist/components/table/src/store/expand.d.ts +14 -0
  18. package/dist/components/table/src/store/expand.js +55 -0
  19. package/dist/components/table/src/store/helper.d.ts +548 -0
  20. package/dist/components/table/src/store/helper.js +61 -0
  21. package/dist/components/table/src/store/index.d.ts +1107 -0
  22. package/dist/components/table/src/store/index.js +123 -0
  23. package/dist/components/table/src/store/tree.d.ts +27 -0
  24. package/dist/components/table/src/store/tree.js +153 -0
  25. package/dist/components/table/src/store/watcher.d.ts +88 -0
  26. package/dist/components/table/src/store/watcher.js +483 -0
  27. package/dist/components/table/src/table/defaults.d.ts +560 -0
  28. package/dist/components/table/src/table/defaults.js +236 -0
  29. package/dist/components/table/src/table/key-render-helper.d.ts +2 -0
  30. package/dist/components/table/src/table/key-render-helper.js +18 -0
  31. package/dist/components/table/src/table/style-helper.d.ts +51 -0
  32. package/dist/components/table/src/table/style-helper.js +169 -0
  33. package/dist/components/table/src/table/utils-helper.d.ts +16 -0
  34. package/dist/components/table/src/table/utils-helper.js +36 -0
  35. package/dist/components/table/src/table-body/defaults.d.ts +39 -0
  36. package/dist/components/table/src/table-body/defaults.js +25 -0
  37. package/dist/components/table/src/table-body/events-helper.d.ts +19 -0
  38. package/dist/components/table/src/table-body/events-helper.js +126 -0
  39. package/dist/components/table/src/table-body/index.d.ts +84 -0
  40. package/dist/components/table/src/table-body/index.js +77 -0
  41. package/dist/components/table/src/table-body/render-helper.d.ts +18 -0
  42. package/dist/components/table/src/table-body/render-helper.js +188 -0
  43. package/dist/components/table/src/table-body/styles-helper.d.ts +15 -0
  44. package/dist/components/table/src/table-body/styles-helper.js +98 -0
  45. package/dist/components/table/src/table-body/td-wrapper.vue.d.ts +33 -0
  46. package/dist/components/table/src/table-body/td-wrapper.vue.js +26 -0
  47. package/dist/components/table/src/table-body/td-wrapper2.vue.js +4 -0
  48. package/dist/components/table/src/table-column/defaults.d.ts +348 -0
  49. package/dist/components/table/src/table-column/defaults.js +152 -0
  50. package/dist/components/table/src/table-column/index.d.ts +2 -0
  51. package/dist/components/table/src/table-column/index.vue.d.ts +32 -0
  52. package/dist/components/table/src/table-column/index.vue.js +161 -0
  53. package/dist/components/table/src/table-column/index2.vue.js +4 -0
  54. package/dist/components/table/src/table-column/render-helper.d.ts +17 -0
  55. package/dist/components/table/src/table-column/render-helper.js +116 -0
  56. package/dist/components/table/src/table-column/watcher-helper.d.ts +8 -0
  57. package/dist/components/table/src/table-column/watcher-helper.js +85 -0
  58. package/dist/components/table/src/table-footer/index.d.ts +79 -0
  59. package/dist/components/table/src/table-footer/index.js +110 -0
  60. package/dist/components/table/src/table-footer/mapState-helper.d.ts +9 -0
  61. package/dist/components/table/src/table-footer/mapState-helper.js +16 -0
  62. package/dist/components/table/src/table-footer/style-helper.d.ts +9 -0
  63. package/dist/components/table/src/table-footer/style-helper.js +42 -0
  64. package/dist/components/table/src/table-header/event-helper.d.ts +14 -0
  65. package/dist/components/table/src/table-header/event-helper.js +113 -0
  66. package/dist/components/table/src/table-header/index.d.ts +361 -0
  67. package/dist/components/table/src/table-header/index.js +255 -0
  68. package/dist/components/table/src/table-header/style.helper.d.ts +10 -0
  69. package/dist/components/table/src/table-header/style.helper.js +73 -0
  70. package/dist/components/table/src/table-header/utils-helper.d.ts +10 -0
  71. package/dist/components/table/src/table-header/utils-helper.js +45 -0
  72. package/dist/components/table/src/table-layout.d.ts +37 -0
  73. package/dist/components/table/src/table-layout.js +144 -0
  74. package/dist/components/table/src/table.vue.d.ts +734 -0
  75. package/dist/components/table/src/table.vue.js +443 -0
  76. package/dist/components/table/src/table2.vue.js +4 -0
  77. package/dist/components/table/src/tableColumn.d.ts +2 -0
  78. package/dist/components/table/src/tokens.d.ts +3 -0
  79. package/dist/components/table/src/tokens.js +4 -0
  80. package/dist/components/table/src/util.d.ts +55 -0
  81. package/dist/components/table/src/util.js +310 -0
  82. package/dist/components/table-column/index.d.ts +40 -3
  83. package/dist/components/table-column/index.js +6 -3
  84. package/dist/directives/mousewheel/index.js +28 -0
  85. package/dist/ep-craft.js +186 -182
  86. package/dist/index.d.ts +24 -0
  87. package/dist/vendored-components.d.ts +1 -1
  88. package/dist/vendored-components.js +12 -1
  89. package/package.json +1 -1
@@ -0,0 +1,560 @@
1
+ import type { CSSProperties, ComponentInternalInstance, PropType, Ref, StyleValue, VNode } from 'vue';
2
+ import type { ComponentSize } from '@element-plus/constants';
3
+ import type { Nullable } from '@element-plus/utils';
4
+ import type { Store } from '../store';
5
+ import type { TableColumnCtx } from '../table-column/defaults';
6
+ import type TableLayout from '../table-layout';
7
+ import type { TableOverflowTooltipFormatter, TableOverflowTooltipOptions } from '../util';
8
+ type DefaultRow = Record<PropertyKey, any>;
9
+ interface TableRefs {
10
+ tableWrapper: HTMLElement;
11
+ headerWrapper: HTMLElement;
12
+ footerWrapper: HTMLElement;
13
+ fixedBodyWrapper: HTMLElement;
14
+ rightFixedBodyWrapper: HTMLElement;
15
+ bodyWrapper: HTMLElement;
16
+ appendWrapper: HTMLElement;
17
+ [key: string]: any;
18
+ }
19
+ interface TableState {
20
+ isGroup: Ref<boolean>;
21
+ resizeState: Ref<{
22
+ width: any;
23
+ height: any;
24
+ }>;
25
+ doLayout: () => void;
26
+ debouncedUpdateLayout: () => void;
27
+ }
28
+ interface TreeProps {
29
+ hasChildren?: string;
30
+ children?: string;
31
+ checkStrictly?: boolean;
32
+ }
33
+ type HoverState<T extends DefaultRow> = Nullable<{
34
+ cell: HTMLElement;
35
+ column: TableColumnCtx<T>;
36
+ row: T;
37
+ }>;
38
+ type RIS<T extends DefaultRow> = {
39
+ row: T;
40
+ $index: number;
41
+ store: Store<T>;
42
+ expanded: boolean;
43
+ };
44
+ type RenderExpanded<T extends DefaultRow> = ({ row, $index, store, expanded, }: RIS<T>) => VNode[] | undefined;
45
+ type SummaryMethod<T extends DefaultRow> = (data: {
46
+ columns: TableColumnCtx<T>[];
47
+ data: T[];
48
+ }) => (string | VNode)[];
49
+ interface Table<T extends DefaultRow = any> extends Omit<ComponentInternalInstance, 'emit'> {
50
+ $ready: boolean;
51
+ hoverState?: HoverState<T> | null;
52
+ renderExpanded: RenderExpanded<T>;
53
+ store: Store<T>;
54
+ layout: TableLayout<T>;
55
+ refs: TableRefs;
56
+ tableId: string;
57
+ state: TableState;
58
+ emit: TableEmits<T>;
59
+ }
60
+ type ColumnCls<T> = string | ((data: {
61
+ row: T;
62
+ rowIndex: number;
63
+ }) => string);
64
+ type ColumnStyle<T> = CSSProperties | ((data: {
65
+ row: T;
66
+ rowIndex: number;
67
+ }) => CSSProperties);
68
+ type CellCls<T extends DefaultRow> = string | ((data: {
69
+ row: T;
70
+ rowIndex: number;
71
+ column: TableColumnCtx<T>;
72
+ columnIndex: number;
73
+ }) => string);
74
+ type CellStyle<T extends DefaultRow> = CSSProperties | ((data: {
75
+ row: T;
76
+ rowIndex: number;
77
+ column: TableColumnCtx<T>;
78
+ columnIndex: number;
79
+ }) => CSSProperties);
80
+ type Layout = 'fixed' | 'auto';
81
+ interface TableProps<T extends DefaultRow = DefaultRow> {
82
+ /**
83
+ * @description table data
84
+ */
85
+ data?: T[];
86
+ /**
87
+ * @description size of Table
88
+ */
89
+ size?: ComponentSize;
90
+ width?: string | number;
91
+ /**
92
+ * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
93
+ */
94
+ height?: string | number;
95
+ /**
96
+ * @description table's max-height. The legal value is a number or the height in px
97
+ */
98
+ maxHeight?: string | number;
99
+ /**
100
+ * @description whether width of column automatically fits its container
101
+ */
102
+ fit?: boolean;
103
+ /**
104
+ * @description whether Table is striped
105
+ */
106
+ stripe?: boolean;
107
+ /**
108
+ * @description whether Table has vertical border
109
+ */
110
+ border?: boolean;
111
+ /**
112
+ * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
113
+ */
114
+ rowKey?: string | ((row: T) => string);
115
+ context?: Table<T>;
116
+ /**
117
+ * @description whether Table header is visible
118
+ */
119
+ showHeader?: boolean;
120
+ /**
121
+ * @description whether to display a summary row
122
+ */
123
+ showSummary?: boolean;
124
+ /**
125
+ * @description displayed text for the first column of summary row
126
+ */
127
+ sumText?: string;
128
+ /**
129
+ * @description custom summary method
130
+ */
131
+ summaryMethod?: SummaryMethod<T>;
132
+ /**
133
+ * @description function that returns custom class names for a row, or a string assigning class names for every row
134
+ */
135
+ rowClassName?: ColumnCls<T>;
136
+ /**
137
+ * @description function that returns custom style for a row, or an object assigning custom style for every row
138
+ */
139
+ rowStyle?: ColumnStyle<T>;
140
+ /**
141
+ * @description function that returns custom class names for a cell, or a string assigning class names for every cell
142
+ */
143
+ cellClassName?: CellCls<T>;
144
+ /**
145
+ * @description function that returns custom style for a cell, or an object assigning custom style for every cell
146
+ */
147
+ cellStyle?: CellStyle<T>;
148
+ /**
149
+ * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
150
+ */
151
+ headerRowClassName?: ColumnCls<T>;
152
+ /**
153
+ * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
154
+ */
155
+ headerRowStyle?: ColumnStyle<T>;
156
+ /**
157
+ * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
158
+ */
159
+ headerCellClassName?: CellCls<T>;
160
+ /**
161
+ * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
162
+ */
163
+ headerCellStyle?: CellStyle<T>;
164
+ /**
165
+ * @description whether current row is highlighted
166
+ */
167
+ highlightCurrentRow?: boolean;
168
+ /**
169
+ * @description key of current row, a set only prop
170
+ */
171
+ currentRowKey?: string | number;
172
+ /**
173
+ * @description displayed text when data is empty. You can customize this area with `#empty`
174
+ */
175
+ emptyText?: string;
176
+ /**
177
+ * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
178
+ */
179
+ expandRowKeys?: Array<string>;
180
+ /**
181
+ * @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
182
+ */
183
+ defaultExpandAll?: boolean;
184
+ /**
185
+ * @description enable expandable rows, works when the table has a column type="expand"
186
+ */
187
+ rowExpandable?: (row: T, index: number) => boolean;
188
+ /**
189
+ * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
190
+ */
191
+ defaultSort?: Sort;
192
+ /**
193
+ * @description the `effect` of the overflow tooltip
194
+ */
195
+ tooltipEffect?: string;
196
+ /**
197
+ * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
198
+ */
199
+ tooltipOptions?: TableOverflowTooltipOptions;
200
+ /**
201
+ * @description method that returns rowspan and colspan
202
+ */
203
+ spanMethod?: (data: {
204
+ row: T;
205
+ rowIndex: number;
206
+ column: TableColumnCtx<T>;
207
+ columnIndex: number;
208
+ }) => number[] | {
209
+ rowspan: number;
210
+ colspan: number;
211
+ } | undefined;
212
+ /**
213
+ * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
214
+ */
215
+ selectOnIndeterminate?: boolean;
216
+ /**
217
+ * @description horizontal indentation of tree data
218
+ */
219
+ indent?: number;
220
+ /**
221
+ * @description configuration for rendering nested data
222
+ */
223
+ treeProps?: TreeProps;
224
+ /**
225
+ * @description whether to lazy loading data
226
+ */
227
+ lazy?: boolean;
228
+ /**
229
+ * @description method for loading child row data, only works when `lazy` is true
230
+ */
231
+ load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void;
232
+ className?: string;
233
+ style?: StyleValue;
234
+ /**
235
+ * @description sets the algorithm used to lay out table cells, rows, and columns
236
+ */
237
+ tableLayout?: Layout;
238
+ /**
239
+ * @description always show scrollbar
240
+ */
241
+ scrollbarAlwaysOn?: boolean;
242
+ /**
243
+ * @description ensure main axis minimum-size doesn't follow the content
244
+ */
245
+ flexible?: boolean;
246
+ /**
247
+ * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
248
+ */
249
+ showOverflowTooltip?: boolean | TableOverflowTooltipOptions;
250
+ /**
251
+ * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
252
+ */
253
+ tooltipFormatter?: TableOverflowTooltipFormatter<T>;
254
+ appendFilterPanelTo?: string;
255
+ scrollbarTabindex?: number | string;
256
+ /**
257
+ * @description whether to allow drag the last column
258
+ */
259
+ allowDragLastColumn?: boolean;
260
+ /**
261
+ * @description whether to preserve expanded row content in DOM when collapsed
262
+ */
263
+ preserveExpandedContent?: boolean;
264
+ /**
265
+ * @description whether to use native scrollbars
266
+ */
267
+ nativeScrollbar?: boolean;
268
+ }
269
+ type TableTooltipData<T extends DefaultRow> = Parameters<TableOverflowTooltipFormatter<T>>[0];
270
+ type TableSortOrder = 'ascending' | 'descending';
271
+ interface Sort {
272
+ prop: string;
273
+ order: TableSortOrder;
274
+ init?: any;
275
+ silent?: any;
276
+ }
277
+ interface Filter<T extends DefaultRow> {
278
+ column: TableColumnCtx<T>;
279
+ values: string[];
280
+ silent: any;
281
+ }
282
+ interface TreeNode {
283
+ expanded?: boolean;
284
+ loading?: boolean;
285
+ noLazyChildren?: boolean;
286
+ indent?: number;
287
+ level?: number;
288
+ display?: boolean;
289
+ }
290
+ interface RenderRowData<T extends DefaultRow> {
291
+ store: Store<T>;
292
+ _self: Table<T>;
293
+ column: TableColumnCtx<T>;
294
+ row: T;
295
+ $index: number;
296
+ cellIndex: number;
297
+ treeNode?: TreeNode;
298
+ expanded: boolean;
299
+ }
300
+ interface TableConfigContext {
301
+ showOverflowTooltip?: boolean | TableOverflowTooltipOptions;
302
+ tooltipEffect?: string;
303
+ tooltipOptions?: TableOverflowTooltipOptions;
304
+ tooltipFormatter?: TableOverflowTooltipFormatter<any>;
305
+ }
306
+ interface TableEmits<T extends DefaultRow = DefaultRow> {
307
+ (e: 'select', selection: T[], row: T): void;
308
+ (e: 'select-all', selection: T[]): void;
309
+ (e: 'selection-change', newSelection: T[]): void;
310
+ (e: 'cell-mouse-enter' | 'cell-mouse-leave' | 'cell-dblclick', row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent): void;
311
+ (e: 'cell-contextmenu' | 'cell-click', row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: PointerEvent): void;
312
+ (e: 'row-dblclick', row: T, column: TableColumnCtx<T> | null, event: MouseEvent): void;
313
+ (e: 'row-click' | 'row-contextmenu', row: T, column: TableColumnCtx<T> | null, event: PointerEvent): void;
314
+ (e: 'header-click' | 'header-contextmenu', column: TableColumnCtx<T>, event: PointerEvent): void;
315
+ (e: 'sort-change', data: {
316
+ column: TableColumnCtx<T>;
317
+ prop: string | null;
318
+ order: TableSortOrder | null;
319
+ }): void;
320
+ (e: 'filter-change', newFilters: Record<string, string[]>): void;
321
+ (e: 'current-change', currentRow: T | null, oldCurrentRow: T | null): void;
322
+ (e: 'header-dragend', newWidth: number, oldWidth: number, column: TableColumnCtx<T>, event: MouseEvent): void;
323
+ (e: 'expand-change', row: T, expandedRows: T[]): void;
324
+ (e: 'expand-change', row: T, expanded: boolean): void;
325
+ (e: 'scroll', data: {
326
+ scrollLeft: number;
327
+ scrollTop: number;
328
+ }): void;
329
+ }
330
+ /**
331
+ * @deprecated Removed after 3.0.0, Use `TableProps` instead.
332
+ */
333
+ export declare const tableProps: {
334
+ /**
335
+ * @description table data
336
+ */
337
+ data: {
338
+ type: PropType<any[]>;
339
+ default: () => never[];
340
+ };
341
+ /**
342
+ * @description size of Table
343
+ */
344
+ size: {
345
+ readonly type: PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
346
+ readonly required: false;
347
+ readonly validator: ((val: unknown) => boolean) | undefined;
348
+ __epPropKey: true;
349
+ };
350
+ width: (NumberConstructor | StringConstructor)[];
351
+ /**
352
+ * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
353
+ */
354
+ height: (NumberConstructor | StringConstructor)[];
355
+ /**
356
+ * @description table's max-height. The legal value is a number or the height in px
357
+ */
358
+ maxHeight: (NumberConstructor | StringConstructor)[];
359
+ /**
360
+ * @description whether width of column automatically fits its container
361
+ */
362
+ fit: {
363
+ type: BooleanConstructor;
364
+ default: boolean;
365
+ };
366
+ /**
367
+ * @description whether Table is striped
368
+ */
369
+ stripe: BooleanConstructor;
370
+ /**
371
+ * @description whether Table has vertical border
372
+ */
373
+ border: BooleanConstructor;
374
+ /**
375
+ * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
376
+ */
377
+ rowKey: PropType<TableProps<any>["rowKey"]>;
378
+ /**
379
+ * @description whether Table header is visible
380
+ */
381
+ showHeader: {
382
+ type: BooleanConstructor;
383
+ default: boolean;
384
+ };
385
+ /**
386
+ * @description whether to display a summary row
387
+ */
388
+ showSummary: BooleanConstructor;
389
+ /**
390
+ * @description displayed text for the first column of summary row
391
+ */
392
+ sumText: StringConstructor;
393
+ /**
394
+ * @description custom summary method
395
+ */
396
+ summaryMethod: PropType<TableProps<any>["summaryMethod"]>;
397
+ /**
398
+ * @description function that returns custom class names for a row, or a string assigning class names for every row
399
+ */
400
+ rowClassName: PropType<TableProps<any>["rowClassName"]>;
401
+ /**
402
+ * @description function that returns custom style for a row, or an object assigning custom style for every row
403
+ */
404
+ rowStyle: PropType<TableProps<any>["rowStyle"]>;
405
+ /**
406
+ * @description function that returns custom class names for a cell, or a string assigning class names for every cell
407
+ */
408
+ cellClassName: PropType<TableProps<any>["cellClassName"]>;
409
+ /**
410
+ * @description function that returns custom style for a cell, or an object assigning custom style for every cell
411
+ */
412
+ cellStyle: PropType<TableProps<any>["cellStyle"]>;
413
+ /**
414
+ * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
415
+ */
416
+ headerRowClassName: PropType<TableProps<any>["headerRowClassName"]>;
417
+ /**
418
+ * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
419
+ */
420
+ headerRowStyle: PropType<TableProps<any>["headerRowStyle"]>;
421
+ /**
422
+ * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
423
+ */
424
+ headerCellClassName: PropType<TableProps<any>["headerCellClassName"]>;
425
+ /**
426
+ * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
427
+ */
428
+ headerCellStyle: PropType<TableProps<any>["headerCellStyle"]>;
429
+ /**
430
+ * @description whether current row is highlighted
431
+ */
432
+ highlightCurrentRow: BooleanConstructor;
433
+ /**
434
+ * @description key of current row, a set only prop
435
+ */
436
+ currentRowKey: (NumberConstructor | StringConstructor)[];
437
+ /**
438
+ * @description displayed text when data is empty. You can customize this area with `#empty`
439
+ */
440
+ emptyText: StringConstructor;
441
+ /**
442
+ * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
443
+ */
444
+ expandRowKeys: PropType<TableProps<any>["expandRowKeys"]>;
445
+ /**
446
+ * @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
447
+ */
448
+ defaultExpandAll: BooleanConstructor;
449
+ /**
450
+ * @description enable expandable rows, works when the table has a column type="expand"
451
+ */
452
+ rowExpandable: {
453
+ type: PropType<TableProps<any>["rowExpandable"]>;
454
+ };
455
+ /**
456
+ * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
457
+ */
458
+ defaultSort: PropType<TableProps<any>["defaultSort"]>;
459
+ /**
460
+ * @description the `effect` of the overflow tooltip
461
+ */
462
+ tooltipEffect: StringConstructor;
463
+ /**
464
+ * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
465
+ */
466
+ tooltipOptions: PropType<TableProps<any>["tooltipOptions"]>;
467
+ /**
468
+ * @description method that returns rowspan and colspan
469
+ */
470
+ spanMethod: PropType<TableProps<any>["spanMethod"]>;
471
+ /**
472
+ * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
473
+ */
474
+ selectOnIndeterminate: {
475
+ type: BooleanConstructor;
476
+ default: boolean;
477
+ };
478
+ /**
479
+ * @description horizontal indentation of tree data
480
+ */
481
+ indent: {
482
+ type: NumberConstructor;
483
+ default: number;
484
+ };
485
+ /**
486
+ * @description configuration for rendering nested data
487
+ */
488
+ treeProps: {
489
+ type: PropType<TableProps<any>["treeProps"]>;
490
+ default: () => {
491
+ hasChildren: string;
492
+ children: string;
493
+ checkStrictly: boolean;
494
+ };
495
+ };
496
+ /**
497
+ * @description whether to lazy loading data
498
+ */
499
+ lazy: BooleanConstructor;
500
+ /**
501
+ * @description method for loading child row data, only works when `lazy` is true
502
+ */
503
+ load: PropType<TableProps<any>["load"]>;
504
+ style: {
505
+ type: PropType<TableProps<any>["style"]>;
506
+ default: () => {};
507
+ };
508
+ className: {
509
+ type: StringConstructor;
510
+ default: string;
511
+ };
512
+ /**
513
+ * @description sets the algorithm used to lay out table cells, rows, and columns
514
+ */
515
+ tableLayout: {
516
+ type: PropType<Layout>;
517
+ default: string;
518
+ };
519
+ /**
520
+ * @description always show scrollbar
521
+ */
522
+ scrollbarAlwaysOn: BooleanConstructor;
523
+ /**
524
+ * @description ensure main axis minimum-size doesn't follow the content
525
+ */
526
+ flexible: BooleanConstructor;
527
+ /**
528
+ * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
529
+ */
530
+ showOverflowTooltip: {
531
+ type: PropType<TableProps<any>["showOverflowTooltip"]>;
532
+ default: undefined;
533
+ };
534
+ /**
535
+ * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
536
+ */
537
+ tooltipFormatter: PropType<TableProps<any>["tooltipFormatter"]>;
538
+ appendFilterPanelTo: StringConstructor;
539
+ scrollbarTabindex: {
540
+ type: (NumberConstructor | StringConstructor)[];
541
+ default: undefined;
542
+ };
543
+ /**
544
+ * @description whether to allow drag the last column
545
+ */
546
+ allowDragLastColumn: {
547
+ type: BooleanConstructor;
548
+ default: boolean;
549
+ };
550
+ /**
551
+ * @description whether to preserve expanded row content in DOM when collapsed
552
+ */
553
+ preserveExpandedContent: BooleanConstructor;
554
+ /**
555
+ * @description whether to use native scrollbars
556
+ */
557
+ nativeScrollbar: BooleanConstructor;
558
+ };
559
+ export type { SummaryMethod, Table, TableProps, TableRefs, ColumnCls, ColumnStyle, CellCls, CellStyle, DefaultRow, TreeNode, RenderRowData, Sort, Filter, TableColumnCtx, TreeProps, TableTooltipData, TableSortOrder, RenderExpanded, TableConfigContext, TableEmits, };
560
+ export default tableProps;