@94ai/nf-table 6.1.1 → 6.1.7
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.d.ts +132 -131
- package/lib/nf-table.cjs.js +66 -241
- package/lib/nf-table.esm-bundler.js +61 -236
- package/lib/nf-table.vue.d.ts +135 -34
- package/lib/types.d.ts +0 -8
- package/package/nf-table.vue +116 -265
- package/package/types.ts +0 -16
- package/package.json +8 -10
package/lib/nf-table.vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NfTableColumnAttributes, ElTableAttributes, ElTableEventKey, ElPaginationEventKey, ElPaginationAttributes, NfSearchFormAttributes, NfSearchFormEventKey, NfTableActionBtnAttributes } from './types';
|
|
2
2
|
import { ITabItem } from '@94ai/nf-drawer/lib/types';
|
|
3
|
-
declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
data?: Record<string, any>[] | undefined;
|
|
5
5
|
columns?: NfTableColumnAttributes[] | any;
|
|
6
6
|
searchFormAttrs?: NfSearchFormAttributes | undefined;
|
|
@@ -10,10 +10,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
10
10
|
pageAttrs?: ElPaginationAttributes | undefined;
|
|
11
11
|
pageEvents?: Partial<Record<ElPaginationEventKey, Function>> | undefined;
|
|
12
12
|
actionBarOptList?: NfTableActionBtnAttributes[] | undefined;
|
|
13
|
-
initSearchApi?: boolean | undefined;
|
|
14
|
-
pageChangeSearchApi?: boolean | undefined;
|
|
15
|
-
pageKeys?: string[] | undefined;
|
|
16
|
-
setEasyConf?: boolean | undefined;
|
|
17
13
|
dragCached?: boolean | undefined;
|
|
18
14
|
emptyImageSize?: number | undefined;
|
|
19
15
|
emptyText?: string | undefined;
|
|
@@ -90,10 +86,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
90
86
|
tableEvents: () => {};
|
|
91
87
|
pageEvents: () => {};
|
|
92
88
|
actionBarOptList: () => never[];
|
|
93
|
-
initSearchApi: undefined;
|
|
94
|
-
pageChangeSearchApi: undefined;
|
|
95
|
-
pageKeys: () => string[];
|
|
96
|
-
setEasyConf: boolean;
|
|
97
89
|
calHeight: boolean;
|
|
98
90
|
columnEdit: boolean;
|
|
99
91
|
columnPosition: string;
|
|
@@ -184,14 +176,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
184
176
|
render?: Function | undefined;
|
|
185
177
|
slot?: any;
|
|
186
178
|
headerSlot?: any;
|
|
187
|
-
labelTooltip?: string | undefined;
|
|
188
|
-
unit?: string | undefined;
|
|
189
|
-
options: {
|
|
190
|
-
label: string;
|
|
191
|
-
value: string | number;
|
|
192
|
-
tagType?: any;
|
|
193
|
-
}[];
|
|
194
|
-
getOptions?: Function | undefined;
|
|
195
179
|
singleHeadMutiColSlot?: any;
|
|
196
180
|
attr?: {
|
|
197
181
|
type?: "index" | "selection" | "expand" | undefined;
|
|
@@ -225,7 +209,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
225
209
|
'filtered-value'?: string[] | undefined;
|
|
226
210
|
} | undefined;
|
|
227
211
|
}[]>;
|
|
228
|
-
isLoading: import("vue-demi").ComputedRef<boolean>;
|
|
229
212
|
calcTableHeight: () => void;
|
|
230
213
|
syncLocalShowColumnToCookies: () => void;
|
|
231
214
|
syncCookiesToLocalShowColumn: () => Promise<void>;
|
|
@@ -236,10 +219,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
236
219
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
237
220
|
fieldsChange: (event: string[]) => void;
|
|
238
221
|
"update:showColumn": (event: string[] | undefined) => void;
|
|
239
|
-
searchApi: (event: {
|
|
240
|
-
data: Record<string, any>;
|
|
241
|
-
callback: Function;
|
|
242
|
-
}) => void;
|
|
243
222
|
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
244
223
|
data?: Record<string, any>[] | undefined;
|
|
245
224
|
columns?: NfTableColumnAttributes[] | any;
|
|
@@ -250,10 +229,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
250
229
|
pageAttrs?: ElPaginationAttributes | undefined;
|
|
251
230
|
pageEvents?: Partial<Record<ElPaginationEventKey, Function>> | undefined;
|
|
252
231
|
actionBarOptList?: NfTableActionBtnAttributes[] | undefined;
|
|
253
|
-
initSearchApi?: boolean | undefined;
|
|
254
|
-
pageChangeSearchApi?: boolean | undefined;
|
|
255
|
-
pageKeys?: string[] | undefined;
|
|
256
|
-
setEasyConf?: boolean | undefined;
|
|
257
232
|
dragCached?: boolean | undefined;
|
|
258
233
|
emptyImageSize?: number | undefined;
|
|
259
234
|
emptyText?: string | undefined;
|
|
@@ -330,10 +305,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
330
305
|
tableEvents: () => {};
|
|
331
306
|
pageEvents: () => {};
|
|
332
307
|
actionBarOptList: () => never[];
|
|
333
|
-
initSearchApi: undefined;
|
|
334
|
-
pageChangeSearchApi: undefined;
|
|
335
|
-
pageKeys: () => string[];
|
|
336
|
-
setEasyConf: boolean;
|
|
337
308
|
calHeight: boolean;
|
|
338
309
|
columnEdit: boolean;
|
|
339
310
|
columnPosition: string;
|
|
@@ -404,10 +375,6 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
404
375
|
pageAttrs: ElPaginationAttributes;
|
|
405
376
|
pageEvents: Partial<Record<ElPaginationEventKey, Function>>;
|
|
406
377
|
actionBarOptList: NfTableActionBtnAttributes[];
|
|
407
|
-
initSearchApi: boolean;
|
|
408
|
-
pageChangeSearchApi: boolean;
|
|
409
|
-
pageKeys: string[];
|
|
410
|
-
setEasyConf: boolean;
|
|
411
378
|
dragCached: boolean;
|
|
412
379
|
emptyImageSize: number;
|
|
413
380
|
emptyText: string;
|
|
@@ -455,6 +422,135 @@ declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__
|
|
|
455
422
|
lock: boolean;
|
|
456
423
|
spinner: string;
|
|
457
424
|
alwaysShowPage: boolean;
|
|
425
|
+
}>, Partial<Record<any, (_: {
|
|
426
|
+
slot: any;
|
|
427
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
428
|
+
slot: any;
|
|
429
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
430
|
+
slot: any;
|
|
431
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
432
|
+
slot: any;
|
|
433
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
434
|
+
slot: any;
|
|
435
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
436
|
+
slot: any;
|
|
437
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
438
|
+
slot: any;
|
|
439
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
440
|
+
slot: any;
|
|
441
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
442
|
+
slot: any;
|
|
443
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
444
|
+
slot: any;
|
|
445
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
446
|
+
slot: any;
|
|
447
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
448
|
+
slot: any;
|
|
449
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
450
|
+
row: any;
|
|
451
|
+
index: any;
|
|
452
|
+
}) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
|
|
453
|
+
$index: any;
|
|
454
|
+
column: any;
|
|
455
|
+
}) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {
|
|
456
|
+
$index: any;
|
|
457
|
+
column: any;
|
|
458
|
+
}) => any>> & Partial<Record<any, (_: {
|
|
459
|
+
row: any;
|
|
460
|
+
index: any;
|
|
461
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
462
|
+
slot: string;
|
|
463
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
464
|
+
slot: string;
|
|
465
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
466
|
+
slot: string;
|
|
467
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
468
|
+
slot: string;
|
|
469
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
470
|
+
slot: string;
|
|
471
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
472
|
+
slot: string;
|
|
473
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
474
|
+
slot: string;
|
|
475
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
476
|
+
slot: string;
|
|
477
|
+
}) => any>> & {
|
|
478
|
+
searchBox?(_: {
|
|
479
|
+
ref: string;
|
|
480
|
+
}): any;
|
|
481
|
+
btnBox?(_: {
|
|
482
|
+
slot: string;
|
|
483
|
+
}): any;
|
|
484
|
+
searchFormColumnEditDialogTitle?(_: {
|
|
485
|
+
slot: string;
|
|
486
|
+
}): any;
|
|
487
|
+
searchFormColumnEditDialogFooter?(_: {
|
|
488
|
+
slot: string;
|
|
489
|
+
}): any;
|
|
490
|
+
columnEdit?(_: {}): any;
|
|
491
|
+
operationIconColumnCheck?(_: {
|
|
492
|
+
column: {
|
|
493
|
+
_index?: number | undefined;
|
|
494
|
+
__index?: number | undefined;
|
|
495
|
+
initHidden?: boolean | undefined;
|
|
496
|
+
destory?: boolean | undefined;
|
|
497
|
+
type?: "index" | "selection" | "expand" | undefined;
|
|
498
|
+
label?: string | undefined;
|
|
499
|
+
addLabel?: string | undefined;
|
|
500
|
+
prop?: string | undefined;
|
|
501
|
+
render?: Function | undefined;
|
|
502
|
+
slot?: any;
|
|
503
|
+
headerSlot?: any;
|
|
504
|
+
singleHeadMutiColSlot?: any;
|
|
505
|
+
attr?: {
|
|
506
|
+
type?: "index" | "selection" | "expand" | undefined;
|
|
507
|
+
label?: string | undefined;
|
|
508
|
+
prop?: string | undefined;
|
|
509
|
+
index?: number | ((index: number) => number) | undefined;
|
|
510
|
+
'column-key'?: string | undefined;
|
|
511
|
+
width?: string | undefined;
|
|
512
|
+
'min-width'?: string | undefined;
|
|
513
|
+
fixed?: boolean | "left" | "right" | undefined;
|
|
514
|
+
'render-header'?: Function | undefined;
|
|
515
|
+
sortable?: boolean | "custom" | undefined;
|
|
516
|
+
'sort-method'?: Function | undefined;
|
|
517
|
+
'sort-by'?: string | Function | string[] | undefined;
|
|
518
|
+
'sort-orders'?: ["descending" | "ascending" | null, "descending" | "ascending" | null, "descending" | "ascending" | null] | undefined;
|
|
519
|
+
resizable?: boolean | undefined;
|
|
520
|
+
formatter?: Function | undefined;
|
|
521
|
+
'show-overflow-tooltip'?: boolean | undefined;
|
|
522
|
+
align?: "left" | "right" | "center" | undefined;
|
|
523
|
+
'class-name'?: string | undefined;
|
|
524
|
+
'label-class-name'?: string | undefined;
|
|
525
|
+
selectable?: Function | undefined;
|
|
526
|
+
'reserve-selection'?: boolean | undefined;
|
|
527
|
+
filters?: {
|
|
528
|
+
text?: string | number | undefined;
|
|
529
|
+
value?: string | number | undefined;
|
|
530
|
+
}[] | undefined;
|
|
531
|
+
'filter-placement'?: "bottom" | "left" | "right" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | undefined;
|
|
532
|
+
'filter-multiple'?: boolean | undefined;
|
|
533
|
+
'filter-method'?: Function | undefined;
|
|
534
|
+
'filtered-value'?: string[] | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
};
|
|
537
|
+
}): any;
|
|
538
|
+
append?(_: {
|
|
539
|
+
slot: string;
|
|
540
|
+
}): any;
|
|
541
|
+
empty?(_: {
|
|
542
|
+
slot: string;
|
|
543
|
+
}): any;
|
|
544
|
+
actionBar?(_: {
|
|
545
|
+
ref: string;
|
|
546
|
+
}): any;
|
|
547
|
+
pagination?(_: {}): any;
|
|
548
|
+
title?(_: {
|
|
549
|
+
slot: string;
|
|
550
|
+
}): any;
|
|
551
|
+
footer?(_: {
|
|
552
|
+
slot: string;
|
|
553
|
+
}): any;
|
|
458
554
|
}>;
|
|
459
555
|
export default _default;
|
|
460
556
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -474,3 +570,8 @@ declare type __VLS_WithDefaults<P, D> = {
|
|
|
474
570
|
declare type __VLS_Prettify<T> = {
|
|
475
571
|
[K in keyof T]: T[K];
|
|
476
572
|
} & {};
|
|
573
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
574
|
+
new (): {
|
|
575
|
+
$scopedSlots: S;
|
|
576
|
+
};
|
|
577
|
+
};
|
package/lib/types.d.ts
CHANGED
|
@@ -186,14 +186,6 @@ export interface NfTableColumnAttributes {
|
|
|
186
186
|
render?: Function;
|
|
187
187
|
slot?: any;
|
|
188
188
|
headerSlot?: any;
|
|
189
|
-
labelTooltip?: string;
|
|
190
|
-
unit?: string;
|
|
191
|
-
options: {
|
|
192
|
-
label: string;
|
|
193
|
-
value: string | number;
|
|
194
|
-
tagType?: any;
|
|
195
|
-
}[];
|
|
196
|
-
getOptions?: Function;
|
|
197
189
|
singleHeadMutiColSlot?: any;
|
|
198
190
|
attr?: ElTableColumnAttributes;
|
|
199
191
|
}
|