@opentinyvue/vue-grid 3.24.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.
- package/lib/index.js +4702 -5495
- package/package.json +17 -17
- package/src/body/src/body.d.ts +26 -12
- package/src/body/src/usePool.d.ts +6 -0
- package/src/cell/index.d.ts +4 -1
- package/src/cell/src/cell.d.ts +4 -1
- package/src/column/src/column.d.ts +12 -6
- package/src/composable/index.d.ts +5 -0
- package/src/composable/useCellEvent.d.ts +16 -0
- package/src/composable/useCellSpan.d.ts +5 -0
- package/src/composable/useCellStatus.d.ts +3 -0
- package/src/composable/useData.d.ts +7 -0
- package/src/composable/useDrag/index.d.ts +2 -2
- package/src/composable/useHeader.d.ts +10 -0
- package/src/composable/useRowGroup.d.ts +3 -2
- package/src/config.d.ts +35 -0
- package/src/edit/src/methods.d.ts +1 -1
- package/src/grid/grid.d.ts +4 -2
- package/src/mobile-first/index.vue.d.ts +2 -17
- package/src/table/src/methods.d.ts +41 -17
- package/src/table/src/strategy.d.ts +13 -23
- package/src/table/src/table.d.ts +238 -50
- package/src/table/src/utils/autoCellWidth.d.ts +6 -31
- package/src/table/src/utils/updateStyle.d.ts +1 -5
- package/src/tree/src/methods.d.ts +1 -1
- package/src/footer/index.d.ts +0 -26
- package/src/footer/src/footer.d.ts +0 -63
- package/src/header/index.d.ts +0 -26
- package/src/header/src/header.d.ts +0 -51
- package/src/table/src/utils/handleFixedColumn.d.ts +0 -6
package/src/table/src/table.d.ts
CHANGED
|
@@ -40,7 +40,10 @@ declare const _default: hooks.DefineComponent<{
|
|
|
40
40
|
contextMenu: ObjectConstructor;
|
|
41
41
|
customs: ArrayConstructor;
|
|
42
42
|
data: (ObjectConstructor | ArrayConstructor)[];
|
|
43
|
-
dropConfig:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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(
|
|
252
|
-
cacheColumnMap(): void;
|
|
253
|
-
getRowNode(tr: any):
|
|
254
|
-
|
|
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):
|
|
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):
|
|
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
|
-
|
|
289
|
-
|
|
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(
|
|
298
|
-
syncHeaderHeight(): void;
|
|
467
|
+
autoCellWidth(): void;
|
|
299
468
|
resetResizable(): any;
|
|
300
|
-
updateStyle():
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
605
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
row: any;
|
|
4
4
|
}): any;
|
|
5
5
|
toggleTreeExpansion(row: any): any;
|
|
6
|
-
handleDefaultTreeExpand():
|
|
6
|
+
handleDefaultTreeExpand(): any;
|
|
7
7
|
setAllTreeExpansion(expanded: any): any;
|
|
8
8
|
setTreeExpansion(rows: any, expanded: any): any;
|
|
9
9
|
hasTreeExpand(row: any): any;
|
package/src/footer/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
import Footer from './src/footer';
|
|
26
|
-
export default Footer;
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
26
|
-
fixedColumn: ArrayConstructor;
|
|
27
|
-
fixedType: StringConstructor;
|
|
28
|
-
footerData: ArrayConstructor;
|
|
29
|
-
size: StringConstructor;
|
|
30
|
-
tableColumn: ArrayConstructor;
|
|
31
|
-
visibleColumn: ArrayConstructor;
|
|
32
|
-
}, unknown, unknown, {}, {
|
|
33
|
-
scrollEvent(event: any): void;
|
|
34
|
-
buildParamFunc(opt: any): {
|
|
35
|
-
attrs: {
|
|
36
|
-
'data-colid': any;
|
|
37
|
-
};
|
|
38
|
-
columnIndex: any;
|
|
39
|
-
fixedHiddenColumn: any;
|
|
40
|
-
footAlign: any;
|
|
41
|
-
footerClassName: any;
|
|
42
|
-
hasEllipsis: boolean;
|
|
43
|
-
isShowEllipsis: boolean;
|
|
44
|
-
isShowTitle: boolean;
|
|
45
|
-
showTooltip: boolean;
|
|
46
|
-
params: {
|
|
47
|
-
$table: any;
|
|
48
|
-
$rowIndex: any;
|
|
49
|
-
column: any;
|
|
50
|
-
columnIndex: any;
|
|
51
|
-
$columnIndex: any;
|
|
52
|
-
};
|
|
53
|
-
tfOns: {};
|
|
54
|
-
};
|
|
55
|
-
}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
56
|
-
fixedColumn: ArrayConstructor;
|
|
57
|
-
fixedType: StringConstructor;
|
|
58
|
-
footerData: ArrayConstructor;
|
|
59
|
-
size: StringConstructor;
|
|
60
|
-
tableColumn: ArrayConstructor;
|
|
61
|
-
visibleColumn: ArrayConstructor;
|
|
62
|
-
}>>, {}, {}>;
|
|
63
|
-
export default _default;
|
package/src/header/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
import Header from './src/header';
|
|
26
|
-
export default Header;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
26
|
-
collectColumn: ArrayConstructor;
|
|
27
|
-
fixedColumn: ArrayConstructor;
|
|
28
|
-
size: StringConstructor;
|
|
29
|
-
isGroup: BooleanConstructor;
|
|
30
|
-
tableColumn: ArrayConstructor;
|
|
31
|
-
tableData: ArrayConstructor;
|
|
32
|
-
visibleColumn: ArrayConstructor;
|
|
33
|
-
resizableConfig: ObjectConstructor;
|
|
34
|
-
}, unknown, {
|
|
35
|
-
headerColumn: never[];
|
|
36
|
-
}, {}, {
|
|
37
|
-
uploadColumn(): void;
|
|
38
|
-
resizeMousedown(event: any, params: any): void;
|
|
39
|
-
}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
40
|
-
collectColumn: ArrayConstructor;
|
|
41
|
-
fixedColumn: ArrayConstructor;
|
|
42
|
-
size: StringConstructor;
|
|
43
|
-
isGroup: BooleanConstructor;
|
|
44
|
-
tableColumn: ArrayConstructor;
|
|
45
|
-
tableData: ArrayConstructor;
|
|
46
|
-
visibleColumn: ArrayConstructor;
|
|
47
|
-
resizableConfig: ObjectConstructor;
|
|
48
|
-
}>>, {
|
|
49
|
-
isGroup: boolean;
|
|
50
|
-
}, {}>;
|
|
51
|
-
export default _default;
|