cosey 0.7.0 → 0.7.2

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 (59) hide show
  1. package/components/editor/components/select.vue.d.ts +2 -2
  2. package/components/editor/editor.d.ts +2 -2
  3. package/components/editor/editor.style.js +2 -2
  4. package/components/editor/index.d.ts +6 -6
  5. package/components/field/components/remote-select/remote-select.d.ts +1 -1
  6. package/components/field/field.api.d.ts +1 -1
  7. package/components/form/form-item.api.d.ts +1 -1
  8. package/components/form/index.d.ts +1 -1
  9. package/components/form-drawer/form-drawer.vue.d.ts +6 -6
  10. package/components/form-drawer/index.d.ts +17 -17
  11. package/components/form-group/style/index.js +3 -3
  12. package/components/form-list/form-list.api.d.ts +1 -1
  13. package/components/form-list/index.d.ts +4 -4
  14. package/components/form-query/form-query.d.ts +2 -2
  15. package/components/form-query/index.d.ts +6 -6
  16. package/components/image-card/image-card.d.ts +2 -2
  17. package/components/image-card/index.d.ts +6 -6
  18. package/components/index.js +1 -1
  19. package/components/input-number-range/index.d.ts +5 -5
  20. package/components/input-number-range/input-number-range.vue.d.ts +2 -2
  21. package/components/remote-select/index.d.ts +45 -45
  22. package/components/remote-select/remote-select.api.d.ts +1 -1
  23. package/components/remote-select/remote-select.d.ts +16 -16
  24. package/components/ribbon/ribbon.style.js +32 -32
  25. package/components/snug-menu/index.d.ts +5 -5
  26. package/components/snug-menu/snug-menu-item.vue.js +9 -3
  27. package/components/snug-menu/snug-menu.vue.d.ts +2 -2
  28. package/components/table/index.d.ts +40 -40
  29. package/components/table/index.js +1 -1
  30. package/components/table/table-column/renderer.d.ts +1 -1
  31. package/components/table/table-column/table-column.api.d.ts +131 -0
  32. package/components/table/table-column/table-column.api.js +33 -0
  33. package/components/table/table-column/table-column.d.ts +100 -127
  34. package/components/table/table-column/table-column.js +103 -30
  35. package/components/table/table-column-editor/item.vue.d.ts +1 -1
  36. package/components/table/table-column-editor/list.vue.d.ts +1 -1
  37. package/components/table/table-column-editor/table-column-editor.d.ts +1 -1
  38. package/components/table/table-column-editor/table-column-editor.vue.d.ts +1 -1
  39. package/components/table/table-export/item.vue.d.ts +1 -1
  40. package/components/table/table-export/list.vue.d.ts +1 -1
  41. package/components/table/table-export/table-export.d.ts +1 -1
  42. package/components/table/table-export/table-export.vue.d.ts +6 -6
  43. package/components/table/table-query/table-query.vue.d.ts +2 -2
  44. package/components/table/table.d.ts +8 -8
  45. package/components/table/table.vue.d.ts +23 -23
  46. package/components/table/table.vue.js +2 -2
  47. package/components/table-action/item.d.ts +3 -3
  48. package/components/transition-group/index.d.ts +3 -3
  49. package/components/transition-group/transition-group.d.ts +1 -1
  50. package/components/upload/index.d.ts +6 -6
  51. package/components/upload/upload.d.ts +2 -2
  52. package/layout/layout-menu/layout-menu.vue.js +7 -1
  53. package/layout/layout-menu/style/index.js +4 -0
  54. package/layout/layout-user-menu/style/index.js +1 -1
  55. package/package.json +1 -1
  56. package/utils/excel/index.d.ts +1 -1
  57. package/utils/excel/type.d.ts +1 -1
  58. package/components/table/table-column/table-column.vue.d.ts +0 -104
  59. package/components/table/table-column/table-column.vue.js +0 -106
@@ -1,5 +1,5 @@
1
1
  export * from './table';
2
- export * from './table-column/table-column';
2
+ export * from './table-column/table-column.api';
3
3
  export * from './table-query/table-query';
4
4
  export * from './useTable';
5
5
  declare const _Table: {
@@ -12,11 +12,11 @@ declare const _Table: {
12
12
  default: boolean;
13
13
  };
14
14
  columns: {
15
- type: import("vue").PropType<import("..").MayBeTableColumnProps[]>;
15
+ type: import("vue").PropType<import(".").MayBeTableColumnProps[]>;
16
16
  default: () => never[];
17
17
  };
18
18
  actionColumn: {
19
- type: import("vue").PropType<import("..").MayBeTableColumnProps>;
19
+ type: import("vue").PropType<import(".").MayBeTableColumnProps>;
20
20
  };
21
21
  pagination: {
22
22
  type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
@@ -28,7 +28,7 @@ declare const _Table: {
28
28
  formProps: {
29
29
  type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
30
30
  schemes: {
31
- type: import("vue").PropType<import("..").TableQueryScheme[]>;
31
+ type: import("vue").PropType<import(".").TableQueryScheme[]>;
32
32
  default: () => never[];
33
33
  };
34
34
  grid: {
@@ -217,19 +217,21 @@ declare const _Table: {
217
217
  };
218
218
  emptyText: StringConstructor;
219
219
  sumText: StringConstructor;
220
+ fit: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ lazy: BooleanConstructor;
225
+ showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
226
+ tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
220
227
  cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
221
228
  rowStyle: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowStyle"]>;
222
229
  scrollbarAlwaysOn: BooleanConstructor;
223
230
  defaultExpandAll: BooleanConstructor;
224
- lazy: BooleanConstructor;
225
231
  indent: {
226
232
  type: NumberConstructor;
227
233
  default: number;
228
234
  };
229
- fit: {
230
- type: BooleanConstructor;
231
- default: boolean;
232
- };
233
235
  stripe: BooleanConstructor;
234
236
  rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
235
237
  showHeader: {
@@ -264,8 +266,6 @@ declare const _Table: {
264
266
  };
265
267
  };
266
268
  flexible: BooleanConstructor;
267
- showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
268
- tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
269
269
  appendFilterPanelTo: StringConstructor;
270
270
  scrollbarTabindex: {
271
271
  type: (NumberConstructor | StringConstructor)[];
@@ -319,16 +319,16 @@ declare const _Table: {
319
319
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
320
320
  tableLayout: "auto" | "fixed";
321
321
  border: boolean;
322
- columns: import("..").MayBeTableColumnProps[];
322
+ columns: import(".").MayBeTableColumnProps[];
323
323
  data: any[];
324
324
  immediate: boolean;
325
325
  className: string;
326
326
  pagination: boolean | import("element-plus").PaginationProps;
327
+ fit: boolean;
328
+ lazy: boolean;
327
329
  scrollbarAlwaysOn: boolean;
328
330
  defaultExpandAll: boolean;
329
- lazy: boolean;
330
331
  indent: number;
331
- fit: boolean;
332
332
  stripe: boolean;
333
333
  showHeader: boolean;
334
334
  showSummary: boolean;
@@ -358,11 +358,11 @@ declare const _Table: {
358
358
  default: boolean;
359
359
  };
360
360
  columns: {
361
- type: import("vue").PropType<import("..").MayBeTableColumnProps[]>;
361
+ type: import("vue").PropType<import(".").MayBeTableColumnProps[]>;
362
362
  default: () => never[];
363
363
  };
364
364
  actionColumn: {
365
- type: import("vue").PropType<import("..").MayBeTableColumnProps>;
365
+ type: import("vue").PropType<import(".").MayBeTableColumnProps>;
366
366
  };
367
367
  pagination: {
368
368
  type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
@@ -374,7 +374,7 @@ declare const _Table: {
374
374
  formProps: {
375
375
  type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
376
376
  schemes: {
377
- type: import("vue").PropType<import("..").TableQueryScheme[]>;
377
+ type: import("vue").PropType<import(".").TableQueryScheme[]>;
378
378
  default: () => never[];
379
379
  };
380
380
  grid: {
@@ -563,19 +563,21 @@ declare const _Table: {
563
563
  };
564
564
  emptyText: StringConstructor;
565
565
  sumText: StringConstructor;
566
+ fit: {
567
+ type: BooleanConstructor;
568
+ default: boolean;
569
+ };
570
+ lazy: BooleanConstructor;
571
+ showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
572
+ tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
566
573
  cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
567
574
  rowStyle: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowStyle"]>;
568
575
  scrollbarAlwaysOn: BooleanConstructor;
569
576
  defaultExpandAll: BooleanConstructor;
570
- lazy: BooleanConstructor;
571
577
  indent: {
572
578
  type: NumberConstructor;
573
579
  default: number;
574
580
  };
575
- fit: {
576
- type: BooleanConstructor;
577
- default: boolean;
578
- };
579
581
  stripe: BooleanConstructor;
580
582
  rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
581
583
  showHeader: {
@@ -610,8 +612,6 @@ declare const _Table: {
610
612
  };
611
613
  };
612
614
  flexible: BooleanConstructor;
613
- showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
614
- tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
615
615
  appendFilterPanelTo: StringConstructor;
616
616
  scrollbarTabindex: {
617
617
  type: (NumberConstructor | StringConstructor)[];
@@ -665,16 +665,16 @@ declare const _Table: {
665
665
  }, {}, {}, {}, {
666
666
  tableLayout: "auto" | "fixed";
667
667
  border: boolean;
668
- columns: import("..").MayBeTableColumnProps[];
668
+ columns: import(".").MayBeTableColumnProps[];
669
669
  data: any[];
670
670
  immediate: boolean;
671
671
  className: string;
672
672
  pagination: boolean | import("element-plus").PaginationProps;
673
+ fit: boolean;
674
+ lazy: boolean;
673
675
  scrollbarAlwaysOn: boolean;
674
676
  defaultExpandAll: boolean;
675
- lazy: boolean;
676
677
  indent: number;
677
- fit: boolean;
678
678
  stripe: boolean;
679
679
  showHeader: boolean;
680
680
  showSummary: boolean;
@@ -701,11 +701,11 @@ declare const _Table: {
701
701
  default: boolean;
702
702
  };
703
703
  columns: {
704
- type: import("vue").PropType<import("..").MayBeTableColumnProps[]>;
704
+ type: import("vue").PropType<import(".").MayBeTableColumnProps[]>;
705
705
  default: () => never[];
706
706
  };
707
707
  actionColumn: {
708
- type: import("vue").PropType<import("..").MayBeTableColumnProps>;
708
+ type: import("vue").PropType<import(".").MayBeTableColumnProps>;
709
709
  };
710
710
  pagination: {
711
711
  type: import("vue").PropType<boolean | import("element-plus").PaginationProps>;
@@ -715,7 +715,7 @@ declare const _Table: {
715
715
  type: import("vue").PropType<(expose: import("./table").TableExpose) => void>;
716
716
  };
717
717
  formProps: {
718
- type: import("vue").PropType<import("..").TableQueryProps>;
718
+ type: import("vue").PropType<import(".").TableQueryProps>;
719
719
  };
720
720
  transformParams: {
721
721
  type: import("vue").PropType<(params: Record<string, any>) => any>;
@@ -764,19 +764,21 @@ declare const _Table: {
764
764
  };
765
765
  emptyText: StringConstructor;
766
766
  sumText: StringConstructor;
767
+ fit: {
768
+ type: BooleanConstructor;
769
+ default: boolean;
770
+ };
771
+ lazy: BooleanConstructor;
772
+ showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
773
+ tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
767
774
  cellClassName: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["cellClassName"]>;
768
775
  rowStyle: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowStyle"]>;
769
776
  scrollbarAlwaysOn: BooleanConstructor;
770
777
  defaultExpandAll: BooleanConstructor;
771
- lazy: BooleanConstructor;
772
778
  indent: {
773
779
  type: NumberConstructor;
774
780
  default: number;
775
781
  };
776
- fit: {
777
- type: BooleanConstructor;
778
- default: boolean;
779
- };
780
782
  stripe: BooleanConstructor;
781
783
  rowKey: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["rowKey"]>;
782
784
  showHeader: {
@@ -811,8 +813,6 @@ declare const _Table: {
811
813
  };
812
814
  };
813
815
  flexible: BooleanConstructor;
814
- showOverflowTooltip: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["showOverflowTooltip"]>;
815
- tooltipFormatter: import("vue").PropType<import("element-plus/es/components/index.mjs").TableProps<any>["tooltipFormatter"]>;
816
816
  appendFilterPanelTo: StringConstructor;
817
817
  scrollbarTabindex: {
818
818
  type: (NumberConstructor | StringConstructor)[];
@@ -866,16 +866,16 @@ declare const _Table: {
866
866
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
867
867
  tableLayout: "auto" | "fixed";
868
868
  border: boolean;
869
- columns: import("..").MayBeTableColumnProps[];
869
+ columns: import(".").MayBeTableColumnProps[];
870
870
  data: any[];
871
871
  immediate: boolean;
872
872
  className: string;
873
873
  pagination: boolean | import("element-plus").PaginationProps;
874
+ fit: boolean;
875
+ lazy: boolean;
874
876
  scrollbarAlwaysOn: boolean;
875
877
  defaultExpandAll: boolean;
876
- lazy: boolean;
877
878
  indent: number;
878
- fit: boolean;
879
879
  stripe: boolean;
880
880
  showHeader: boolean;
881
881
  showSummary: boolean;
@@ -1,7 +1,7 @@
1
1
  import { withInstall } from '../utils.js';
2
2
  import stdin_default$1 from './table.vue.js';
3
3
  export { defaultTableConfig, elSlotsName, omittedTableProps, tableEmitEvents, tableEmitOnEvents, tableEmitOnProps, tableExposeKeys, tableProps } from './table.js';
4
- export { tableColumnProps } from './table-column/table-column.js';
4
+ export { tableColumnProps } from './table-column/table-column.api.js';
5
5
  export { createScheme, omittedTableQueryProps, tableQueryExposeKeys, tableQueryProps } from './table-query/table-query.js';
6
6
  export { useTable } from './useTable.js';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { type LinkProps, type SwitchProps, type TableColumnCtx } from 'element-plus';
2
- import { type TableColumnProps } from './table-column';
2
+ import { type TableColumnProps } from './table-column.api';
3
3
  import { type LongTextProps } from '../../long-text';
4
4
  import { type MediaCardProps } from '../../media-card';
5
5
  import { type MediaCardGroupProps } from '../../media-card-group';
@@ -0,0 +1,131 @@
1
+ import { type VNode, type ExtractPropTypes, type PropType } from 'vue';
2
+ import { type TableColumnCtx } from 'element-plus';
3
+ import elTableColumnProps from 'element-plus/es/components/table/src/table-column/defaults.mjs';
4
+ import { type RendererType } from './renderer';
5
+ export type TableColumnPropsSlots = string | ((props: {
6
+ row: any;
7
+ column: any;
8
+ $index: number;
9
+ }) => any) | {
10
+ default?: string | ((props: {
11
+ row: any;
12
+ column: any;
13
+ $index: number;
14
+ }) => any);
15
+ header?: string | ((props: {
16
+ column: any;
17
+ $index: number;
18
+ }) => any);
19
+ filterIcon?: string | ((props: {
20
+ filterOpened: boolean;
21
+ }) => any);
22
+ };
23
+ export type TableColumnProps<T = any> = Partial<Omit<ExtractPropTypes<typeof elTableColumnProps>, 'align' | 'tooltipFormatter'>> & {
24
+ slots?: TableColumnPropsSlots;
25
+ renderer?: RendererType;
26
+ hidden?: boolean;
27
+ align?: 'left' | 'center' | 'right';
28
+ columns?: TableColumnProps<T>[];
29
+ internalSlot?: {
30
+ [prop: string]: any;
31
+ };
32
+ tooltip?: string;
33
+ format?: (cellValue: any, row: any, column: TableColumnCtx<any>, index: number) => VNode | string;
34
+ };
35
+ export type MayBeTableColumnProps = TableColumnProps | null | undefined | boolean;
36
+ export declare const tableColumnProps: {
37
+ slots: {
38
+ type: PropType<TableColumnProps["slots"]>;
39
+ };
40
+ renderer: {
41
+ type: PropType<TableColumnProps["renderer"]>;
42
+ default: string;
43
+ };
44
+ hidden: {
45
+ type: BooleanConstructor;
46
+ };
47
+ align: {
48
+ type: PropType<TableColumnProps["align"]>;
49
+ default: string;
50
+ };
51
+ columns: {
52
+ type: PropType<TableColumnProps[]>;
53
+ };
54
+ internalSlot: {
55
+ type: PropType<TableColumnProps["internalSlot"]>;
56
+ };
57
+ tooltip: {
58
+ type: StringConstructor;
59
+ };
60
+ format: {
61
+ type: FunctionConstructor;
62
+ };
63
+ type: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ label: StringConstructor;
68
+ className: StringConstructor;
69
+ labelClassName: StringConstructor;
70
+ property: StringConstructor;
71
+ prop: StringConstructor;
72
+ width: {
73
+ type: (NumberConstructor | StringConstructor)[];
74
+ default: string;
75
+ };
76
+ minWidth: {
77
+ type: (NumberConstructor | StringConstructor)[];
78
+ default: string;
79
+ };
80
+ renderHeader: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["renderHeader"]>;
81
+ sortable: {
82
+ type: (BooleanConstructor | StringConstructor)[];
83
+ default: boolean;
84
+ };
85
+ sortMethod: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortMethod"]>;
86
+ sortBy: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortBy"]>;
87
+ resizable: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ columnKey: StringConstructor;
92
+ headerAlign: StringConstructor;
93
+ showOverflowTooltip: {
94
+ type: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["showOverflowTooltip"]>;
95
+ default: undefined;
96
+ };
97
+ tooltipFormatter: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["tooltipFormatter"]>;
98
+ fixed: (BooleanConstructor | StringConstructor)[];
99
+ formatter: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["formatter"]>;
100
+ selectable: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["selectable"]>;
101
+ reserveSelection: BooleanConstructor;
102
+ filterMethod: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filterMethod"]>;
103
+ filteredValue: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filteredValue"]>;
104
+ filters: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filters"]>;
105
+ filterPlacement: StringConstructor;
106
+ filterMultiple: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ filterClassName: StringConstructor;
111
+ index: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["index"]>;
112
+ sortOrders: {
113
+ type: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortOrders"]>;
114
+ default: () => (string | null)[];
115
+ validator: (val: import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortOrders"]) => boolean;
116
+ };
117
+ };
118
+ export interface TableColumnSlots {
119
+ default?: (props: {
120
+ row: any;
121
+ column: any;
122
+ $index: number;
123
+ }) => any;
124
+ header?: (props: {
125
+ column: any;
126
+ $index: number;
127
+ }) => any;
128
+ 'filter-icon'?: (props: {
129
+ filterOpened: boolean;
130
+ }) => any;
131
+ }
@@ -0,0 +1,33 @@
1
+ import elTableColumnProps from 'element-plus/es/components/table/src/table-column/defaults.mjs';
2
+
3
+ const tableColumnProps = {
4
+ ...elTableColumnProps,
5
+ slots: {
6
+ type: [String, Object, Function]
7
+ },
8
+ renderer: {
9
+ type: [String, Object],
10
+ default: "text"
11
+ },
12
+ hidden: {
13
+ type: Boolean
14
+ },
15
+ align: {
16
+ type: String,
17
+ default: "left"
18
+ },
19
+ columns: {
20
+ type: Array
21
+ },
22
+ internalSlot: {
23
+ type: Object
24
+ },
25
+ tooltip: {
26
+ type: String
27
+ },
28
+ format: {
29
+ type: Function
30
+ }
31
+ };
32
+
33
+ export { tableColumnProps };
@@ -1,131 +1,104 @@
1
- import { type VNode, type ExtractPropTypes, type PropType } from 'vue';
2
- import { type TableColumnCtx } from 'element-plus';
3
- import elTableColumnProps from 'element-plus/es/components/table/src/table-column/defaults.mjs';
4
- import { type RendererType } from './renderer';
5
- export type TableColumnPropsSlots = string | ((props: {
6
- row: any;
7
- column: any;
8
- $index: number;
9
- }) => any) | {
10
- default?: string | ((props: {
11
- row: any;
12
- column: any;
1
+ import { type TableColumnProps } from './table-column.api';
2
+ declare const TableColumn: import("vue").DefineComponent<{
3
+ label?: string | undefined;
4
+ minWidth?: string | number | undefined;
5
+ width?: string | number | undefined;
6
+ fixed?: string | boolean | undefined;
7
+ type?: string | undefined;
8
+ filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
9
+ index?: number | ((index: number) => number) | undefined;
10
+ formatter?: ((row: any, column: import("element-plus/es/components/index.mjs").TableColumnCtx<any>, cellValue: any, index: number) => import("vue").VNode | string) | undefined;
11
+ className?: string | undefined;
12
+ labelClassName?: string | undefined;
13
+ property?: string | undefined;
14
+ prop?: string | undefined;
15
+ renderHeader?: ((data: {
16
+ column: import("element-plus/es/components/index.mjs").TableColumnCtx<any>;
13
17
  $index: number;
14
- }) => any);
15
- header?: string | ((props: {
16
- column: any;
17
- $index: number;
18
- }) => any);
19
- filterIcon?: string | ((props: {
20
- filterOpened: boolean;
21
- }) => any);
22
- };
23
- export type TableColumnProps<T = any> = Partial<Omit<ExtractPropTypes<typeof elTableColumnProps>, 'align' | 'tooltipFormatter'>> & {
24
- slots?: TableColumnPropsSlots;
25
- renderer?: RendererType;
26
- hidden?: boolean;
27
- align?: 'left' | 'center' | 'right';
28
- columns?: TableColumnProps<T>[];
18
+ store: import("element-plus/es/components/table/src/store/index.mjs").Store<any>;
19
+ _self: any;
20
+ }) => import("vue").VNode) | undefined;
21
+ sortable?: string | boolean | undefined;
22
+ sortMethod?: ((a: any, b: any) => number) | undefined;
23
+ sortBy?: string | string[] | ((row: any, index: number, array?: any[] | undefined) => string) | undefined;
24
+ resizable?: boolean | undefined;
25
+ columnKey?: string | undefined;
26
+ headerAlign?: string | undefined;
27
+ showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "showAfter" | "showArrow" | "effect" | "popperOptions" | "hideAfter">> | undefined;
28
+ selectable?: ((row: any, index: number) => boolean) | undefined;
29
+ reserveSelection?: boolean | undefined;
30
+ filterMethod?: import("element-plus/es/components/table/src/table-column/defaults.mjs").FilterMethods<any> | undefined;
31
+ filteredValue?: string[] | undefined;
32
+ filterPlacement?: string | undefined;
33
+ filterMultiple?: boolean | undefined;
34
+ filterClassName?: string | undefined;
35
+ sortOrders?: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[] | undefined;
36
+ slots?: import("./table-column.api").TableColumnPropsSlots | undefined;
37
+ renderer?: import("./renderer").RendererType | undefined;
38
+ hidden?: boolean | undefined;
39
+ align?: "left" | "center" | "right" | undefined;
40
+ columns?: TableColumnProps<any>[] | undefined;
29
41
  internalSlot?: {
30
42
  [prop: string]: any;
31
- };
32
- tooltip?: string;
33
- format?: (cellValue: any, row: any, column: TableColumnCtx<any>, index: number) => VNode | string;
34
- };
35
- export type MayBeTableColumnProps = TableColumnProps | null | undefined | boolean;
36
- export declare const tableColumnProps: {
37
- slots: {
38
- type: PropType<TableColumnProps["slots"]>;
39
- };
40
- renderer: {
41
- type: PropType<TableColumnProps["renderer"]>;
42
- default: string;
43
- };
44
- hidden: {
45
- type: BooleanConstructor;
46
- };
47
- align: {
48
- type: PropType<TableColumnProps["align"]>;
49
- default: string;
50
- };
51
- columns: {
52
- type: PropType<TableColumnProps[]>;
53
- };
54
- internalSlot: {
55
- type: PropType<TableColumnProps["internalSlot"]>;
56
- };
57
- tooltip: {
58
- type: StringConstructor;
59
- };
60
- format: {
61
- type: FunctionConstructor;
62
- };
63
- type: {
64
- type: StringConstructor;
65
- default: string;
66
- };
67
- label: StringConstructor;
68
- className: StringConstructor;
69
- labelClassName: StringConstructor;
70
- property: StringConstructor;
71
- prop: StringConstructor;
72
- width: {
73
- type: (NumberConstructor | StringConstructor)[];
74
- default: string;
75
- };
76
- minWidth: {
77
- type: (NumberConstructor | StringConstructor)[];
78
- default: string;
79
- };
80
- renderHeader: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["renderHeader"]>;
81
- sortable: {
82
- type: (BooleanConstructor | StringConstructor)[];
83
- default: boolean;
84
- };
85
- sortMethod: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortMethod"]>;
86
- sortBy: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortBy"]>;
87
- resizable: {
88
- type: BooleanConstructor;
89
- default: boolean;
90
- };
91
- columnKey: StringConstructor;
92
- headerAlign: StringConstructor;
93
- showOverflowTooltip: {
94
- type: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["showOverflowTooltip"]>;
95
- default: undefined;
96
- };
97
- tooltipFormatter: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["tooltipFormatter"]>;
98
- fixed: (BooleanConstructor | StringConstructor)[];
99
- formatter: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["formatter"]>;
100
- selectable: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["selectable"]>;
101
- reserveSelection: BooleanConstructor;
102
- filterMethod: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filterMethod"]>;
103
- filteredValue: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filteredValue"]>;
104
- filters: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["filters"]>;
105
- filterPlacement: StringConstructor;
106
- filterMultiple: {
107
- type: BooleanConstructor;
108
- default: boolean;
109
- };
110
- filterClassName: StringConstructor;
111
- index: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["index"]>;
112
- sortOrders: {
113
- type: PropType<import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortOrders"]>;
114
- default: () => (string | null)[];
115
- validator: (val: import("element-plus/es/components/index.mjs").TableColumnCtx<any>["sortOrders"]) => boolean;
116
- };
117
- };
118
- export interface TableColumnSlots {
119
- default?: (props: {
120
- row: any;
121
- column: any;
122
- $index: number;
123
- }) => any;
124
- header?: (props: {
125
- column: any;
43
+ } | undefined;
44
+ tooltip?: string | undefined;
45
+ format?: ((cellValue: any, row: any, column: import("element-plus").TableColumnCtx<any>, index: number) => import("vue").VNode | string) | undefined;
46
+ }, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
47
+ label?: string | undefined;
48
+ minWidth?: string | number | undefined;
49
+ width?: string | number | undefined;
50
+ fixed?: string | boolean | undefined;
51
+ type?: string | undefined;
52
+ filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
53
+ index?: number | ((index: number) => number) | undefined;
54
+ formatter?: ((row: any, column: import("element-plus/es/components/index.mjs").TableColumnCtx<any>, cellValue: any, index: number) => import("vue").VNode | string) | undefined;
55
+ className?: string | undefined;
56
+ labelClassName?: string | undefined;
57
+ property?: string | undefined;
58
+ prop?: string | undefined;
59
+ renderHeader?: ((data: {
60
+ column: import("element-plus/es/components/index.mjs").TableColumnCtx<any>;
126
61
  $index: number;
127
- }) => any;
128
- 'filter-icon'?: (props: {
129
- filterOpened: boolean;
130
- }) => any;
131
- }
62
+ store: import("element-plus/es/components/table/src/store/index.mjs").Store<any>;
63
+ _self: any;
64
+ }) => import("vue").VNode) | undefined;
65
+ sortable?: string | boolean | undefined;
66
+ sortMethod?: ((a: any, b: any) => number) | undefined;
67
+ sortBy?: string | string[] | ((row: any, index: number, array?: any[] | undefined) => string) | undefined;
68
+ resizable?: boolean | undefined;
69
+ columnKey?: string | undefined;
70
+ headerAlign?: string | undefined;
71
+ showOverflowTooltip?: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "showAfter" | "showArrow" | "effect" | "popperOptions" | "hideAfter">> | undefined;
72
+ selectable?: ((row: any, index: number) => boolean) | undefined;
73
+ reserveSelection?: boolean | undefined;
74
+ filterMethod?: import("element-plus/es/components/table/src/table-column/defaults.mjs").FilterMethods<any> | undefined;
75
+ filteredValue?: string[] | undefined;
76
+ filterPlacement?: string | undefined;
77
+ filterMultiple?: boolean | undefined;
78
+ filterClassName?: string | undefined;
79
+ sortOrders?: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[] | undefined;
80
+ slots?: import("./table-column.api").TableColumnPropsSlots | undefined;
81
+ renderer?: import("./renderer").RendererType | undefined;
82
+ hidden?: boolean | undefined;
83
+ align?: "left" | "center" | "right" | undefined;
84
+ columns?: TableColumnProps<any>[] | undefined;
85
+ internalSlot?: {
86
+ [prop: string]: any;
87
+ } | undefined;
88
+ tooltip?: string | undefined;
89
+ format?: ((cellValue: any, row: any, column: import("element-plus").TableColumnCtx<any>, index: number) => import("vue").VNode | string) | undefined;
90
+ }> & Readonly<{}>, {
91
+ minWidth: string | number;
92
+ width: string | number;
93
+ hidden: boolean;
94
+ type: string;
95
+ align: "left" | "right" | "center" | undefined;
96
+ sortable: string | boolean;
97
+ resizable: boolean;
98
+ showOverflowTooltip: boolean | Partial<Pick<import("element-plus/es/components/index.mjs").ElTooltipProps, "offset" | "transition" | "enterable" | "appendTo" | "placement" | "popperClass" | "showAfter" | "showArrow" | "effect" | "popperOptions" | "hideAfter">> | undefined;
99
+ reserveSelection: boolean;
100
+ filterMultiple: boolean;
101
+ sortOrders: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[];
102
+ renderer: import("./renderer").RendererType | undefined;
103
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
104
+ export default TableColumn;