@94ai/nf-table 6.1.7 → 6.1.11

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,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: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: 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,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
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;
13
17
  dragCached?: boolean | undefined;
14
18
  emptyImageSize?: number | undefined;
15
19
  emptyText?: string | undefined;
@@ -86,6 +90,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
86
90
  tableEvents: () => {};
87
91
  pageEvents: () => {};
88
92
  actionBarOptList: () => never[];
93
+ initSearchApi: undefined;
94
+ pageChangeSearchApi: undefined;
95
+ pageKeys: () => string[];
96
+ setEasyConf: boolean;
89
97
  calHeight: boolean;
90
98
  columnEdit: boolean;
91
99
  columnPosition: string;
@@ -176,6 +184,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
176
184
  render?: Function | undefined;
177
185
  slot?: any;
178
186
  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;
179
195
  singleHeadMutiColSlot?: any;
180
196
  attr?: {
181
197
  type?: "index" | "selection" | "expand" | undefined;
@@ -209,6 +225,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
209
225
  'filtered-value'?: string[] | undefined;
210
226
  } | undefined;
211
227
  }[]>;
228
+ isLoading: import("vue-demi").ComputedRef<boolean>;
212
229
  calcTableHeight: () => void;
213
230
  syncLocalShowColumnToCookies: () => void;
214
231
  syncCookiesToLocalShowColumn: () => Promise<void>;
@@ -219,6 +236,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
219
236
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
220
237
  fieldsChange: (event: string[]) => void;
221
238
  "update:showColumn": (event: string[] | undefined) => void;
239
+ searchApi: (event: {
240
+ data: Record<string, any>;
241
+ callback: Function;
242
+ }) => void;
222
243
  }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
223
244
  data?: Record<string, any>[] | undefined;
224
245
  columns?: NfTableColumnAttributes[] | any;
@@ -229,6 +250,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
229
250
  pageAttrs?: ElPaginationAttributes | undefined;
230
251
  pageEvents?: Partial<Record<ElPaginationEventKey, Function>> | undefined;
231
252
  actionBarOptList?: NfTableActionBtnAttributes[] | undefined;
253
+ initSearchApi?: boolean | undefined;
254
+ pageChangeSearchApi?: boolean | undefined;
255
+ pageKeys?: string[] | undefined;
256
+ setEasyConf?: boolean | undefined;
232
257
  dragCached?: boolean | undefined;
233
258
  emptyImageSize?: number | undefined;
234
259
  emptyText?: string | undefined;
@@ -305,6 +330,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
305
330
  tableEvents: () => {};
306
331
  pageEvents: () => {};
307
332
  actionBarOptList: () => never[];
333
+ initSearchApi: undefined;
334
+ pageChangeSearchApi: undefined;
335
+ pageKeys: () => string[];
336
+ setEasyConf: boolean;
308
337
  calHeight: boolean;
309
338
  columnEdit: boolean;
310
339
  columnPosition: string;
@@ -375,6 +404,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
375
404
  pageAttrs: ElPaginationAttributes;
376
405
  pageEvents: Partial<Record<ElPaginationEventKey, Function>>;
377
406
  actionBarOptList: NfTableActionBtnAttributes[];
407
+ initSearchApi: boolean;
408
+ pageChangeSearchApi: boolean;
409
+ pageKeys: string[];
410
+ setEasyConf: boolean;
378
411
  dragCached: boolean;
379
412
  emptyImageSize: number;
380
413
  emptyText: string;
@@ -422,135 +455,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
422
455
  lock: boolean;
423
456
  spinner: string;
424
457
  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;
554
458
  }>;
555
459
  export default _default;
556
460
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -570,8 +474,3 @@ declare type __VLS_WithDefaults<P, D> = {
570
474
  declare type __VLS_Prettify<T> = {
571
475
  [K in keyof T]: T[K];
572
476
  } & {};
573
- declare type __VLS_WithTemplateSlots<T, S> = T & {
574
- new (): {
575
- $scopedSlots: S;
576
- };
577
- };
package/lib/types.d.ts CHANGED
@@ -186,6 +186,14 @@ 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;
189
197
  singleHeadMutiColSlot?: any;
190
198
  attr?: ElTableColumnAttributes;
191
199
  }