@94ai/nf-table 3.2.4 → 3.2.21

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.
@@ -1,9 +1,14 @@
1
1
  import { NfTableColumnAttributes, ElTableAttributes, ElTableEventKey, ElPaginationEventKey, ElPaginationAttributes, NfSearchFormAttributes, NfSearchFormEventKey, NfTableActionBtnAttributes } from './types';
2
+ import { ITabItem } from '@94ai/nf-drawer/lib/types';
2
3
  declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<{
3
4
  data: {
4
5
  type: import("vue-demi").PropType<Record<string, any>[]>;
5
6
  default: () => never[];
6
7
  };
8
+ storageKey: {
9
+ type: import("vue-demi").PropType<string>;
10
+ default: string;
11
+ };
7
12
  showColumn: {
8
13
  type: import("vue-demi").PropType<string[]>;
9
14
  default: undefined;
@@ -24,6 +29,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
24
29
  type: import("vue-demi").PropType<string>;
25
30
  default: undefined;
26
31
  };
32
+ selectEmptyWarningTips: {
33
+ type: import("vue-demi").PropType<string>;
34
+ default: string;
35
+ };
36
+ operationPropKey: {
37
+ type: import("vue-demi").PropType<string>;
38
+ default: string;
39
+ };
27
40
  columns: {
28
41
  type: import("vue-demi").PropType<NfTableColumnAttributes[]>;
29
42
  default: () => never[];
@@ -64,25 +77,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
64
77
  type: import("vue-demi").PropType<boolean>;
65
78
  default: boolean;
66
79
  };
67
- loading: {
68
- type: import("vue-demi").PropType<boolean>;
69
- default: boolean;
70
- };
71
- target: {
72
- type: import("vue-demi").PropType<HTMLElement>;
73
- default: undefined;
80
+ columnPosition: {
81
+ type: import("vue-demi").PropType<"embed" | "free">;
82
+ default: string;
74
83
  };
75
- lock: {
76
- type: import("vue-demi").PropType<boolean>;
77
- default: boolean;
84
+ checkMode: {
85
+ type: import("vue-demi").PropType<"dialog" | "drawer">;
86
+ default: string;
78
87
  };
79
- spinner: {
80
- type: import("vue-demi").PropType<string>;
81
- default: undefined;
88
+ priority: {
89
+ type: import("vue-demi").PropType<"value" | "cached">;
90
+ default: string;
82
91
  };
83
- background: {
92
+ searchFormStorageKey: {
84
93
  type: import("vue-demi").PropType<string>;
85
- default: undefined;
94
+ default: string;
86
95
  };
87
96
  columnDisplayBtnClass: {
88
97
  type: import("vue-demi").PropType<string>;
@@ -124,14 +133,136 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
124
133
  type: import("vue-demi").PropType<string>;
125
134
  default: string;
126
135
  };
127
- alwaysShowPage: {
136
+ columnCheckTitle: {
137
+ type: import("vue-demi").PropType<string>;
138
+ default: string;
139
+ };
140
+ columnCheckCancelButtonText: {
141
+ type: import("vue-demi").PropType<string>;
142
+ default: string;
143
+ };
144
+ columnCheckConfirmButtonText: {
145
+ type: import("vue-demi").PropType<string>;
146
+ default: string;
147
+ };
148
+ columnCheckWidth: {
149
+ type: import("vue-demi").PropType<string>;
150
+ default: string;
151
+ };
152
+ columnCheckConfirmText: {
153
+ type: import("vue-demi").PropType<string>;
154
+ default: string;
155
+ };
156
+ columnCheckCancelText: {
157
+ type: import("vue-demi").PropType<string>;
158
+ default: string;
159
+ };
160
+ columnCheckModalAppendToBody: {
128
161
  type: import("vue-demi").PropType<boolean>;
129
162
  default: boolean;
130
163
  };
131
- operationPropKey: {
164
+ columnCheckModal: {
165
+ type: import("vue-demi").PropType<boolean>;
166
+ default: boolean;
167
+ };
168
+ columnCheckFullscreen: {
169
+ type: import("vue-demi").PropType<boolean>;
170
+ default: boolean;
171
+ };
172
+ columnCheckTop: {
132
173
  type: import("vue-demi").PropType<string>;
133
174
  default: string;
134
175
  };
176
+ columnCheckAppendToBody: {
177
+ type: import("vue-demi").PropType<boolean>;
178
+ default: boolean;
179
+ };
180
+ columnCheckLockScroll: {
181
+ type: import("vue-demi").PropType<boolean>;
182
+ default: boolean;
183
+ };
184
+ columnCheckCustomClass: {
185
+ type: import("vue-demi").PropType<string>;
186
+ default: string;
187
+ };
188
+ columnCheckCloseOnlickModal: {
189
+ type: import("vue-demi").PropType<boolean>;
190
+ default: boolean;
191
+ };
192
+ columnCheckCloseOnPressEscape: {
193
+ type: import("vue-demi").PropType<boolean>;
194
+ default: boolean;
195
+ };
196
+ columnCheckShowClose: {
197
+ type: import("vue-demi").PropType<boolean>;
198
+ default: boolean;
199
+ };
200
+ columnCheckBeforeClose: {
201
+ type: import("vue-demi").PropType<Function>;
202
+ default: undefined;
203
+ };
204
+ columnCheckCenter: {
205
+ type: import("vue-demi").PropType<boolean>;
206
+ default: boolean;
207
+ };
208
+ columnCheckDestroyOnClose: {
209
+ type: import("vue-demi").PropType<boolean>;
210
+ default: boolean;
211
+ };
212
+ columnCheckSearchPlaceholder: {
213
+ type: import("vue-demi").PropType<string>;
214
+ default: string;
215
+ };
216
+ columnCheckFixedLeftDesc: {
217
+ type: import("vue-demi").PropType<string>;
218
+ default: string;
219
+ };
220
+ columnCheckClearDesc: {
221
+ type: import("vue-demi").PropType<string>;
222
+ default: string;
223
+ };
224
+ columnCheckNoFixedDesc: {
225
+ type: import("vue-demi").PropType<string>;
226
+ default: string;
227
+ };
228
+ columnCheckGetCheckedLengthDesc: {
229
+ type: import("vue-demi").PropType<Function>;
230
+ default: (length: any) => string;
231
+ };
232
+ columnCheckGetAllCheckDesc: {
233
+ type: import("vue-demi").PropType<Function>;
234
+ default: (length: any) => string;
235
+ };
236
+ columnCheckTabs: {
237
+ type: import("vue-demi").PropType<ITabItem[]>;
238
+ };
239
+ columnCheckCurrentTab: {
240
+ type: import("vue-demi").PropType<string>;
241
+ };
242
+ loading: {
243
+ type: import("vue-demi").PropType<boolean>;
244
+ default: boolean;
245
+ };
246
+ target: {
247
+ type: import("vue-demi").PropType<HTMLElement>;
248
+ default: undefined;
249
+ };
250
+ lock: {
251
+ type: import("vue-demi").PropType<boolean>;
252
+ default: boolean;
253
+ };
254
+ spinner: {
255
+ type: import("vue-demi").PropType<string>;
256
+ default: undefined;
257
+ };
258
+ background: {
259
+ type: import("vue-demi").PropType<string>;
260
+ default: undefined;
261
+ };
262
+ alwaysShowPage: {
263
+ type: import("vue-demi").PropType<boolean>;
264
+ default: boolean;
265
+ };
135
266
  }, {
136
267
  clearFilter: () => void;
137
268
  sort: (prop: any, order: any) => void;
@@ -142,26 +273,82 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
142
273
  toggleAllSelection: () => void;
143
274
  toggleRowSelection: (row: Record<string, any>, selected: boolean) => void;
144
275
  clearSelection: () => void;
276
+ resetNfSearchFormModel: () => void;
277
+ onNfSearchFormValidate: (callback: any) => void;
278
+ onNfSearchFormSearch: () => void;
279
+ onNfSearchFormExport: () => void;
280
+ nfTableRef: import("vue-demi").Ref<any>;
145
281
  elTableRef: import("vue-demi").Ref<any>;
146
282
  nfTableActionContainerRef: import("vue-demi").Ref<any>;
147
- nfTablePaginationRef: import("vue-demi").Ref<any>;
148
283
  nfTableActionBarRef: import("vue-demi").Ref<any>;
149
- nfTableRef: import("vue-demi").Ref<any>;
284
+ nfTablePaginationRef: import("vue-demi").Ref<any>;
150
285
  nfSearchFormRef: import("vue-demi").Ref<any>;
151
- searchBoxRef: import("vue-demi").Ref<any>;
152
286
  loadingInstance: import("vue-demi").Ref<any>;
153
- resetNfSearchFormModel: () => void;
154
- onNfSearchFormValidate: (callback: any) => void;
155
- onNfSearchFormSearch: () => void;
156
- onNfSearchFormExport: () => void;
157
287
  nfColumCheckDialogVisible: import("vue-demi").Ref<boolean>;
288
+ columnCheckNfDrawer: import("vue-demi").Ref<any>;
289
+ columnCheckDialog: import("vue-demi").Ref<any>;
290
+ columnCheckDrawer: import("vue-demi").Ref<any>;
291
+ syncShowItemToInitHidden: () => void;
292
+ showData: import("vue-demi").ComputedRef<Record<string, any>[]>;
293
+ localShowColumn: import("vue-demi").Ref<string[]>;
294
+ tableColumns: import("vue-demi").Ref<{
295
+ _index?: number | undefined;
296
+ __index?: number | undefined;
297
+ initHidden?: boolean | undefined;
298
+ type?: "index" | "selection" | "expand" | undefined;
299
+ label?: string | undefined;
300
+ prop?: string | undefined;
301
+ render?: Function | undefined;
302
+ slot?: any;
303
+ headerSlot?: any;
304
+ singleHeadMutiColSlot?: any;
305
+ attr?: {
306
+ type?: "index" | "selection" | "expand" | undefined;
307
+ label?: string | undefined;
308
+ prop?: string | undefined;
309
+ index?: number | ((index: number) => number) | undefined;
310
+ 'column-key'?: string | undefined;
311
+ width?: string | undefined;
312
+ 'min-width'?: string | undefined;
313
+ fixed?: boolean | "left" | "right" | undefined;
314
+ 'render-header'?: Function | undefined;
315
+ sortable?: boolean | "custom" | undefined;
316
+ 'sort-method'?: Function | undefined;
317
+ 'sort-by'?: string | Function | string[] | undefined;
318
+ 'sort-orders'?: ["descending" | "ascending" | null, "descending" | "ascending" | null, "descending" | "ascending" | null] | undefined;
319
+ resizable?: boolean | undefined;
320
+ formatter?: Function | undefined;
321
+ 'show-overflow-tooltip'?: boolean | undefined;
322
+ align?: "center" | "left" | "right" | undefined;
323
+ 'class-name'?: string | undefined;
324
+ 'label-class-name'?: string | undefined;
325
+ selectable?: Function | undefined;
326
+ 'reserve-selection'?: boolean | undefined;
327
+ filters?: {
328
+ text?: string | number | undefined;
329
+ value?: string | number | undefined;
330
+ }[] | undefined;
331
+ 'filter-placement'?: "top" | "left" | "right" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | undefined;
332
+ 'filter-multiple'?: boolean | undefined;
333
+ 'filter-method'?: Function | undefined;
334
+ 'filtered-value'?: string[] | undefined;
335
+ } | undefined;
336
+ }[]>;
337
+ syncLocalShowColumnToCookies: () => void;
338
+ syncCookiesToLocalShowColumn: () => void;
339
+ syncCookiesToTableColumn: () => void;
158
340
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
159
341
  fieldsChange: (event: string[]) => void;
342
+ "update:showColumn": (event: string[] | undefined) => void;
160
343
  }, string, Readonly<import("vue-demi").ExtractPropTypes<{
161
344
  data: {
162
345
  type: import("vue-demi").PropType<Record<string, any>[]>;
163
346
  default: () => never[];
164
347
  };
348
+ storageKey: {
349
+ type: import("vue-demi").PropType<string>;
350
+ default: string;
351
+ };
165
352
  showColumn: {
166
353
  type: import("vue-demi").PropType<string[]>;
167
354
  default: undefined;
@@ -182,6 +369,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
182
369
  type: import("vue-demi").PropType<string>;
183
370
  default: undefined;
184
371
  };
372
+ selectEmptyWarningTips: {
373
+ type: import("vue-demi").PropType<string>;
374
+ default: string;
375
+ };
376
+ operationPropKey: {
377
+ type: import("vue-demi").PropType<string>;
378
+ default: string;
379
+ };
185
380
  columns: {
186
381
  type: import("vue-demi").PropType<NfTableColumnAttributes[]>;
187
382
  default: () => never[];
@@ -222,25 +417,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
222
417
  type: import("vue-demi").PropType<boolean>;
223
418
  default: boolean;
224
419
  };
225
- loading: {
226
- type: import("vue-demi").PropType<boolean>;
227
- default: boolean;
228
- };
229
- target: {
230
- type: import("vue-demi").PropType<HTMLElement>;
231
- default: undefined;
420
+ columnPosition: {
421
+ type: import("vue-demi").PropType<"embed" | "free">;
422
+ default: string;
232
423
  };
233
- lock: {
234
- type: import("vue-demi").PropType<boolean>;
235
- default: boolean;
424
+ checkMode: {
425
+ type: import("vue-demi").PropType<"dialog" | "drawer">;
426
+ default: string;
236
427
  };
237
- spinner: {
238
- type: import("vue-demi").PropType<string>;
239
- default: undefined;
428
+ priority: {
429
+ type: import("vue-demi").PropType<"value" | "cached">;
430
+ default: string;
240
431
  };
241
- background: {
432
+ searchFormStorageKey: {
242
433
  type: import("vue-demi").PropType<string>;
243
- default: undefined;
434
+ default: string;
244
435
  };
245
436
  columnDisplayBtnClass: {
246
437
  type: import("vue-demi").PropType<string>;
@@ -282,21 +473,146 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
282
473
  type: import("vue-demi").PropType<string>;
283
474
  default: string;
284
475
  };
285
- alwaysShowPage: {
476
+ columnCheckTitle: {
477
+ type: import("vue-demi").PropType<string>;
478
+ default: string;
479
+ };
480
+ columnCheckCancelButtonText: {
481
+ type: import("vue-demi").PropType<string>;
482
+ default: string;
483
+ };
484
+ columnCheckConfirmButtonText: {
485
+ type: import("vue-demi").PropType<string>;
486
+ default: string;
487
+ };
488
+ columnCheckWidth: {
489
+ type: import("vue-demi").PropType<string>;
490
+ default: string;
491
+ };
492
+ columnCheckConfirmText: {
493
+ type: import("vue-demi").PropType<string>;
494
+ default: string;
495
+ };
496
+ columnCheckCancelText: {
497
+ type: import("vue-demi").PropType<string>;
498
+ default: string;
499
+ };
500
+ columnCheckModalAppendToBody: {
286
501
  type: import("vue-demi").PropType<boolean>;
287
502
  default: boolean;
288
503
  };
289
- operationPropKey: {
504
+ columnCheckModal: {
505
+ type: import("vue-demi").PropType<boolean>;
506
+ default: boolean;
507
+ };
508
+ columnCheckFullscreen: {
509
+ type: import("vue-demi").PropType<boolean>;
510
+ default: boolean;
511
+ };
512
+ columnCheckTop: {
513
+ type: import("vue-demi").PropType<string>;
514
+ default: string;
515
+ };
516
+ columnCheckAppendToBody: {
517
+ type: import("vue-demi").PropType<boolean>;
518
+ default: boolean;
519
+ };
520
+ columnCheckLockScroll: {
521
+ type: import("vue-demi").PropType<boolean>;
522
+ default: boolean;
523
+ };
524
+ columnCheckCustomClass: {
525
+ type: import("vue-demi").PropType<string>;
526
+ default: string;
527
+ };
528
+ columnCheckCloseOnlickModal: {
529
+ type: import("vue-demi").PropType<boolean>;
530
+ default: boolean;
531
+ };
532
+ columnCheckCloseOnPressEscape: {
533
+ type: import("vue-demi").PropType<boolean>;
534
+ default: boolean;
535
+ };
536
+ columnCheckShowClose: {
537
+ type: import("vue-demi").PropType<boolean>;
538
+ default: boolean;
539
+ };
540
+ columnCheckBeforeClose: {
541
+ type: import("vue-demi").PropType<Function>;
542
+ default: undefined;
543
+ };
544
+ columnCheckCenter: {
545
+ type: import("vue-demi").PropType<boolean>;
546
+ default: boolean;
547
+ };
548
+ columnCheckDestroyOnClose: {
549
+ type: import("vue-demi").PropType<boolean>;
550
+ default: boolean;
551
+ };
552
+ columnCheckSearchPlaceholder: {
553
+ type: import("vue-demi").PropType<string>;
554
+ default: string;
555
+ };
556
+ columnCheckFixedLeftDesc: {
557
+ type: import("vue-demi").PropType<string>;
558
+ default: string;
559
+ };
560
+ columnCheckClearDesc: {
290
561
  type: import("vue-demi").PropType<string>;
291
562
  default: string;
292
563
  };
564
+ columnCheckNoFixedDesc: {
565
+ type: import("vue-demi").PropType<string>;
566
+ default: string;
567
+ };
568
+ columnCheckGetCheckedLengthDesc: {
569
+ type: import("vue-demi").PropType<Function>;
570
+ default: (length: any) => string;
571
+ };
572
+ columnCheckGetAllCheckDesc: {
573
+ type: import("vue-demi").PropType<Function>;
574
+ default: (length: any) => string;
575
+ };
576
+ columnCheckTabs: {
577
+ type: import("vue-demi").PropType<ITabItem[]>;
578
+ };
579
+ columnCheckCurrentTab: {
580
+ type: import("vue-demi").PropType<string>;
581
+ };
582
+ loading: {
583
+ type: import("vue-demi").PropType<boolean>;
584
+ default: boolean;
585
+ };
586
+ target: {
587
+ type: import("vue-demi").PropType<HTMLElement>;
588
+ default: undefined;
589
+ };
590
+ lock: {
591
+ type: import("vue-demi").PropType<boolean>;
592
+ default: boolean;
593
+ };
594
+ spinner: {
595
+ type: import("vue-demi").PropType<string>;
596
+ default: undefined;
597
+ };
598
+ background: {
599
+ type: import("vue-demi").PropType<string>;
600
+ default: undefined;
601
+ };
602
+ alwaysShowPage: {
603
+ type: import("vue-demi").PropType<boolean>;
604
+ default: boolean;
605
+ };
293
606
  }>>, {
294
607
  data: Record<string, any>[];
608
+ storageKey: string;
295
609
  showColumn: string[];
296
610
  fullscreen: boolean;
297
611
  customClass: string;
298
612
  body: boolean;
299
613
  text: string;
614
+ selectEmptyWarningTips: string;
615
+ operationPropKey: string;
300
616
  columns: NfTableColumnAttributes[];
301
617
  searchFormAttrs: NfSearchFormAttributes;
302
618
  searchFormEvents: Partial<Record<NfSearchFormEventKey, Function>>;
@@ -307,11 +623,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
307
623
  actionBarOptList: NfTableActionBtnAttributes[];
308
624
  calHeight: boolean;
309
625
  columnEdit: boolean;
310
- loading: boolean;
311
- target: HTMLElement;
312
- lock: boolean;
313
- spinner: string;
314
- background: string;
626
+ columnPosition: 'free' | 'embed';
627
+ checkMode: 'dialog' | 'drawer';
628
+ priority: 'cached' | 'value';
629
+ searchFormStorageKey: string;
315
630
  columnDisplayBtnClass: string;
316
631
  columnDisplayBtnIcon: string;
317
632
  columnDisplayBtnType: string;
@@ -322,8 +637,37 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
322
637
  columnDisplayBtnLoading: boolean;
323
638
  columnDisplayBtnDisabled: boolean;
324
639
  columnDisplayBtnText: string;
640
+ columnCheckTitle: string;
641
+ columnCheckCancelButtonText: string;
642
+ columnCheckConfirmButtonText: string;
643
+ columnCheckWidth: string;
644
+ columnCheckConfirmText: string;
645
+ columnCheckCancelText: string;
646
+ columnCheckModalAppendToBody: boolean;
647
+ columnCheckModal: boolean;
648
+ columnCheckFullscreen: boolean;
649
+ columnCheckTop: string;
650
+ columnCheckAppendToBody: boolean;
651
+ columnCheckLockScroll: boolean;
652
+ columnCheckCustomClass: string;
653
+ columnCheckCloseOnlickModal: boolean;
654
+ columnCheckCloseOnPressEscape: boolean;
655
+ columnCheckShowClose: boolean;
656
+ columnCheckBeforeClose: Function;
657
+ columnCheckCenter: boolean;
658
+ columnCheckDestroyOnClose: boolean;
659
+ columnCheckSearchPlaceholder: string;
660
+ columnCheckFixedLeftDesc: string;
661
+ columnCheckClearDesc: string;
662
+ columnCheckNoFixedDesc: string;
663
+ columnCheckGetCheckedLengthDesc: Function;
664
+ columnCheckGetAllCheckDesc: Function;
665
+ loading: boolean;
666
+ target: HTMLElement;
667
+ lock: boolean;
668
+ spinner: string;
669
+ background: string;
325
670
  alwaysShowPage: boolean;
326
- operationPropKey: string;
327
671
  }>, Partial<Record<any, (_: {
328
672
  slot: any;
329
673
  }) => any>> & Partial<Record<any, (_: {
@@ -370,6 +714,51 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
370
714
  slot: string;
371
715
  }): any;
372
716
  columnEdit?(_: {}): any;
717
+ operationIconColumnCheck?(_: {
718
+ column: {
719
+ _index?: number | undefined;
720
+ __index?: number | undefined;
721
+ initHidden?: boolean | undefined;
722
+ type?: "index" | "selection" | "expand" | undefined;
723
+ label?: string | undefined;
724
+ prop?: string | undefined;
725
+ render?: Function | undefined;
726
+ slot?: any;
727
+ headerSlot?: any;
728
+ singleHeadMutiColSlot?: any;
729
+ attr?: {
730
+ type?: "index" | "selection" | "expand" | undefined;
731
+ label?: string | undefined;
732
+ prop?: string | undefined;
733
+ index?: number | ((index: number) => number) | undefined;
734
+ 'column-key'?: string | undefined;
735
+ width?: string | undefined;
736
+ 'min-width'?: string | undefined;
737
+ fixed?: boolean | "left" | "right" | undefined;
738
+ 'render-header'?: Function | undefined;
739
+ sortable?: boolean | "custom" | undefined;
740
+ 'sort-method'?: Function | undefined;
741
+ 'sort-by'?: string | Function | string[] | undefined;
742
+ 'sort-orders'?: ["descending" | "ascending" | null, "descending" | "ascending" | null, "descending" | "ascending" | null] | undefined;
743
+ resizable?: boolean | undefined;
744
+ formatter?: Function | undefined;
745
+ 'show-overflow-tooltip'?: boolean | undefined;
746
+ align?: "center" | "left" | "right" | undefined;
747
+ 'class-name'?: string | undefined;
748
+ 'label-class-name'?: string | undefined;
749
+ selectable?: Function | undefined;
750
+ 'reserve-selection'?: boolean | undefined;
751
+ filters?: {
752
+ text?: string | number | undefined;
753
+ value?: string | number | undefined;
754
+ }[] | undefined;
755
+ 'filter-placement'?: "top" | "left" | "right" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | undefined;
756
+ 'filter-multiple'?: boolean | undefined;
757
+ 'filter-method'?: Function | undefined;
758
+ 'filtered-value'?: string[] | undefined;
759
+ } | undefined;
760
+ };
761
+ }): any;
373
762
  append?(_: {
374
763
  slot: string;
375
764
  }): any;
@@ -380,10 +769,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
380
769
  ref: string;
381
770
  }): any;
382
771
  pagination?(_: {}): any;
383
- dialogTitle?(_: {
772
+ title?(_: {
384
773
  slot: string;
385
774
  }): any;
386
- dialogFooter?(_: {
775
+ footer?(_: {
387
776
  slot: string;
388
777
  }): any;
389
778
  }>;
package/lib/types.d.ts CHANGED
@@ -175,6 +175,9 @@ export interface ElPaginationAttributes {
175
175
  'hide-on-single-page'?: boolean;
176
176
  }
177
177
  export interface NfTableColumnAttributes {
178
+ _index?: number;
179
+ __index?: number;
180
+ initHidden?: boolean;
178
181
  type?: 'selection' | 'index' | 'expand';
179
182
  label?: string;
180
183
  prop?: string;
package/lib/utils.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function deepClone(source: any): Record<string, any> | Record<string, any>[];
package/package/index.ts CHANGED
@@ -1,8 +1,21 @@
1
1
  import NfTable from './nf-table.vue'
2
2
  import { Vue2, PluginObject } from 'vue-demi'
3
+ // @ts-ignore
4
+ import VueCookies from 'vue-cookies'
5
+ import NfMessage from '@94ai/nf-message'
3
6
 
4
7
  NfTable.install = (app: typeof Vue2) => {
8
+ // @ts-ignore
9
+ if (!app.$cookies) {
10
+ // @ts-ignore
11
+ app.use(VueCookies)
12
+ }
13
+ // @ts-ignore
14
+ if (!app.$openMessage) {
15
+ // @ts-ignore
16
+ app.use(NfMessage)
17
+ }
5
18
  app!.component('nf-table', NfTable)
6
19
  }
7
20
 
8
- export default NfTable as typeof NfTable & PluginObject<undefined>
21
+ export default NfTable as typeof NfTable & PluginObject<undefined>