fast-element-plus 2.0.18 → 2.0.20

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 (130) hide show
  1. package/CHANGELOG.md +52 -19
  2. package/CONTRIBUTING.md +3 -4
  3. package/README.md +80 -27
  4. package/README.zh.md +66 -27
  5. package/dist/component.d.ts +123 -123
  6. package/dist/components/avatar/src/avatar.d.ts +26 -26
  7. package/dist/components/avatar/src/avatar.mjs +10 -10
  8. package/dist/components/avatar/src/avatar.mjs.map +1 -1
  9. package/dist/components/button/src/button.d.ts +32 -27
  10. package/dist/components/button/src/button.mjs +57 -36
  11. package/dist/components/button/src/button.mjs.map +1 -1
  12. package/dist/components/carNumber/src/carNumber.d.ts +8 -8
  13. package/dist/components/carNumber/src/carNumber.mjs +5 -5
  14. package/dist/components/carNumber/src/carNumber.mjs.map +1 -1
  15. package/dist/components/contextMenu/src/contextMenu.d.ts +7 -7
  16. package/dist/components/contextMenu/src/contextMenu.mjs +7 -7
  17. package/dist/components/contextMenu/src/contextMenu.mjs.map +1 -1
  18. package/dist/components/contextMenu/src/contextMenu.type.d.ts +7 -7
  19. package/dist/components/dialog/src/dialog.d.ts +76 -76
  20. package/dist/components/dialog/src/dialog.mjs +34 -34
  21. package/dist/components/dialog/src/dialog.mjs.map +1 -1
  22. package/dist/components/drawer/src/drawer.d.ts +59 -59
  23. package/dist/components/drawer/src/drawer.mjs +27 -27
  24. package/dist/components/drawer/src/drawer.mjs.map +1 -1
  25. package/dist/components/form/src/form.d.ts +30 -30
  26. package/dist/components/form/src/form.mjs +16 -16
  27. package/dist/components/form/src/form.mjs.map +1 -1
  28. package/dist/components/form/src/formItem.d.ts +30 -30
  29. package/dist/components/form/src/formItem.mjs +13 -13
  30. package/dist/components/form/src/formItem.mjs.map +1 -1
  31. package/dist/components/formItemTip/src/formItemTip.d.ts +9 -9
  32. package/dist/components/formItemTip/src/formItemTip.mjs +3 -3
  33. package/dist/components/formItemTip/src/formItemTip.mjs.map +1 -1
  34. package/dist/components/icon/src/icon.d.ts +10 -10
  35. package/dist/components/icon/src/icon.mjs +4 -4
  36. package/dist/components/icon/src/icon.mjs.map +1 -1
  37. package/dist/components/iconSelector/src/iconSelector.d.ts +6 -6
  38. package/dist/components/iconSelector/src/iconSelector.mjs +4 -4
  39. package/dist/components/iconSelector/src/iconSelector.mjs.map +1 -1
  40. package/dist/components/image/src/image.d.ts +36 -36
  41. package/dist/components/image/src/image.mjs +11 -11
  42. package/dist/components/image/src/image.mjs.map +1 -1
  43. package/dist/components/inputDialogPage/src/inputDialogPage.d.ts +37 -37
  44. package/dist/components/inputDialogPage/src/inputDialogPage.mjs +16 -16
  45. package/dist/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
  46. package/dist/components/layoutGrid/src/layoutGrid.d.ts +12 -12
  47. package/dist/components/layoutGrid/src/layoutGrid.mjs +6 -6
  48. package/dist/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
  49. package/dist/components/layoutGrid/src/layoutGridItem.d.ts +19 -19
  50. package/dist/components/layoutGrid/src/layoutGridItem.mjs +9 -9
  51. package/dist/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  52. package/dist/components/select/src/select.d.ts +89 -89
  53. package/dist/components/select/src/select.mjs +30 -30
  54. package/dist/components/select/src/select.mjs.map +1 -1
  55. package/dist/components/select/src/selectOption.d.ts +13 -13
  56. package/dist/components/select/src/selectOption.mjs +6 -6
  57. package/dist/components/select/src/selectOption.mjs.map +1 -1
  58. package/dist/components/selectPage/src/selectPage.d.ts +76 -76
  59. package/dist/components/selectPage/src/selectPage.mjs +50 -36
  60. package/dist/components/selectPage/src/selectPage.mjs.map +1 -1
  61. package/dist/components/selectV2/index.mjs +2 -1
  62. package/dist/components/selectV2/index.mjs.map +1 -1
  63. package/dist/components/selectV2/src/selectV2.d.ts +161 -852
  64. package/dist/components/selectV2/src/selectV2.mjs +32 -340
  65. package/dist/components/selectV2/src/selectV2.mjs.map +1 -1
  66. package/dist/components/table/index.mjs +3 -2
  67. package/dist/components/table/index.mjs.map +1 -1
  68. package/dist/components/table/src/page.type.d.ts +1 -1
  69. package/dist/components/table/src/table.d.ts +211 -744
  70. package/dist/components/table/src/table.mjs +111 -307
  71. package/dist/components/table/src/table.mjs.map +1 -1
  72. package/dist/components/table/src/table.state.d.ts +3 -3
  73. package/dist/components/table/src/table.type.d.ts +1 -9
  74. package/dist/components/table/src/table.type.mjs.map +1 -1
  75. package/dist/components/table/src/tableColumn.d.ts +102 -399
  76. package/dist/components/table/src/tableColumn.mjs +28 -185
  77. package/dist/components/table/src/tableColumn.mjs.map +1 -1
  78. package/dist/components/table/src/tableColumnSettingDialog.d.ts +4 -4
  79. package/dist/components/table/src/tableColumnSettingDialog.mjs +3 -3
  80. package/dist/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
  81. package/dist/components/table/src/tablePagination.d.ts +4 -4
  82. package/dist/components/table/src/tablePagination.mjs +3 -3
  83. package/dist/components/table/src/tablePagination.mjs.map +1 -1
  84. package/dist/components/table/src/tableSearchForm.d.ts +12 -12
  85. package/dist/components/table/src/tableSearchForm.mjs +6 -6
  86. package/dist/components/table/src/tableSearchForm.mjs.map +1 -1
  87. package/dist/components/table/src/tableSearchFormItem.d.ts +4 -4
  88. package/dist/components/table/src/tableSearchFormItem.mjs +2 -2
  89. package/dist/components/table/src/tableSearchFormItem.mjs.map +1 -1
  90. package/dist/components/table/src/useTable.d.ts +1 -0
  91. package/dist/components/table/src/useTable.mjs +109 -65
  92. package/dist/components/table/src/useTable.mjs.map +1 -1
  93. package/dist/components/table/utils/table.d.ts +4 -4
  94. package/dist/components/table/utils/table.mjs +4 -4
  95. package/dist/components/table/utils/table.mjs.map +1 -1
  96. package/dist/components/tree/src/tree.d.ts +87 -87
  97. package/dist/components/tree/src/tree.mjs +48 -48
  98. package/dist/components/tree/src/tree.mjs.map +1 -1
  99. package/dist/components/treeSelect/src/treeSelect.d.ts +139 -133
  100. package/dist/components/treeSelect/src/treeSelect.mjs +57 -57
  101. package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -1
  102. package/dist/components/upload/src/upload.d.ts +36 -36
  103. package/dist/components/upload/src/upload.mjs +19 -19
  104. package/dist/components/upload/src/upload.mjs.map +1 -1
  105. package/dist/components/uploadImage/src/uploadImage.d.ts +47 -47
  106. package/dist/components/uploadImage/src/uploadImage.mjs +24 -28
  107. package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -1
  108. package/dist/components/uploadImages/src/uploadImages.d.ts +41 -41
  109. package/dist/components/uploadImages/src/uploadImages.mjs +21 -21
  110. package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -1
  111. package/dist/directives/click-debounce/index.mjs +19 -11
  112. package/dist/directives/click-debounce/index.mjs.map +1 -1
  113. package/dist/directives/click-throttle/index.d.ts +4 -2
  114. package/dist/directives/click-throttle/index.mjs +21 -11
  115. package/dist/directives/click-throttle/index.mjs.map +1 -1
  116. package/dist/index.css +1 -1
  117. package/dist/index.css.map +1 -1
  118. package/dist/index.global.min.js +3 -3
  119. package/dist/index.global.min.js.map +1 -1
  120. package/dist/index.mjs +3 -3
  121. package/dist/internal/props.d.ts +685 -0
  122. package/dist/internal/props.mjs +683 -0
  123. package/dist/internal/props.mjs.map +1 -0
  124. package/dist/utils/loading-tasks.d.ts +5 -0
  125. package/dist/utils/loading-tasks.mjs +32 -0
  126. package/dist/utils/loading-tasks.mjs.map +1 -0
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.mjs +1 -1
  129. package/dist/version.mjs.map +1 -1
  130. package/package.json +5 -10
@@ -1,276 +1,131 @@
1
1
  import type { TableColumnCtx } from "element-plus";
2
- import type { PropType, VNode } from "vue";
2
+ import type { VNode } from "vue";
3
3
  import type { DefaultRow } from "./table.state";
4
4
  import type { FaTableColumnCtx, FaTableColumnDateFormat, FaTableColumnType, FaTableDefaultSlotsResult, FaTableEnumColumnType } from "./table.type";
5
- /** FaTableColumn 的运行时 Props 定义。 */
6
- export declare const tableColumnProps: {
7
- /**
8
- * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
9
- */
10
- type: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- /**
15
- * @description column label
16
- */
17
- label: StringConstructor;
18
- /**
19
- * @description class name of cells in the column
20
- */
21
- className: StringConstructor;
22
- /**
23
- * @description class name of the label of this column
24
- */
25
- labelClassName: StringConstructor;
26
- /**
27
- * @description
28
- */
29
- property: StringConstructor;
30
- /**
31
- * @description field name. You can also use its alias: `property`
32
- */
33
- prop: StringConstructor;
34
- /**
35
- * @description column width
36
- */
37
- width: {
38
- type: (NumberConstructor | StringConstructor)[];
39
- default: string;
40
- };
41
- /**
42
- * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
43
- */
44
- minWidth: {
45
- type: (NumberConstructor | StringConstructor)[];
46
- default: string;
47
- };
48
- /**
49
- * @description render function for table header of this column
50
- */
51
- renderHeader: PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
52
- /**
53
- * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
54
- */
55
- sortable: {
56
- type: (StringConstructor | BooleanConstructor)[];
57
- default: boolean;
58
- };
59
- /**
60
- * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
61
- */
62
- sortMethod: PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
63
- /**
64
- * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal
65
- */
66
- sortBy: PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
67
- /**
68
- * @description whether column width can be resized, works when `border` of `el-table` is `true`
69
- */
70
- resizable: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- /**
75
- * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
76
- */
77
- columnKey: StringConstructor;
78
- /**
79
- * @description alignment, the value should be 'left' \/ 'center' \/ 'right'
80
- */
81
- align: StringConstructor;
82
- /**
83
- * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right'
84
- */
85
- headerAlign: StringConstructor;
86
- /**
87
- * @description whether to hide extra content and show them in a tooltip when hovering on the cell
88
- */
89
- showOverflowTooltip: {
90
- type: PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
91
- default: undefined;
92
- };
93
- /** @description function that formats cell tooltip content, works when show-overflow-tooltip is enabled */
94
- tooltipFormatter: PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
95
- /**
96
- * @description whether column is fixed at left / right. Will be fixed at left if `true`
97
- */
98
- fixed: (StringConstructor | BooleanConstructor)[];
99
- /**
100
- * @description function that formats cell content
101
- */
102
- formatter: PropType<TableColumnCtx<DefaultRow>["formatter"]>;
103
- /**
104
- * @description function that determines if a certain row can be selected, works when `type` is 'selection'
105
- */
106
- selectable: PropType<TableColumnCtx<DefaultRow>["selectable"]>;
107
- /**
108
- * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
109
- */
110
- reserveSelection: BooleanConstructor;
111
- /**
112
- * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`
113
- */
114
- filterMethod: PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
115
- /**
116
- * @description filter value for selected data, might be useful when table header is rendered with `render-header`
117
- */
118
- filteredValue: PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
119
- /**
120
- * @description an array of data filtering options. For each element in this array, `text` and `value` are required
121
- */
122
- filters: PropType<TableColumnCtx<DefaultRow>["filters"]>;
123
- /**
124
- * @description placement for the filter dropdown
125
- */
126
- filterPlacement: StringConstructor;
127
- /**
128
- * @description whether data filtering supports multiple options
129
- */
130
- filterMultiple: {
131
- type: BooleanConstructor;
132
- default: boolean;
133
- };
134
- /**
135
- * @description className for the filter dropdown
136
- */
137
- filterClassName: StringConstructor;
138
- /**
139
- * @description customize indices for each row, works on columns with `type=index`
140
- */
141
- index: PropType<TableColumnCtx<DefaultRow>["index"]>;
142
- /**
143
- * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array
144
- */
145
- sortOrders: {
146
- type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
147
- default: () => (string | null)[];
148
- validator: (val: unknown) => val is ("ascending" | "descending" | null)[];
149
- };
150
- };
5
+ export { tableColumnProps } from "../../../internal/props";
151
6
  /** FaTableColumn 插槽返回的行列上下文。 */
152
7
  export interface FaTableColumnSlotsResult {
153
- /** @description slots为表格内容的时候才会返回 */
8
+ /** slots为表格内容的时候才会返回 */
154
9
  row?: DefaultRow;
155
- /** @description slot为表头内容的时候返回 'TableColumnCtx<DefaultRow>' 否则返回 'FaTableColumnCtx' */
10
+ /** slot为表头内容的时候返回 'TableColumnCtx<DefaultRow>' 否则返回 'FaTableColumnCtx' */
156
11
  column?: TableColumnCtx<DefaultRow> | FaTableColumnCtx;
157
12
  $index?: number;
158
13
  }
159
14
  type FaTableColumnDefaultSlots = Record<string, FaTableDefaultSlotsResult & FaTableColumnSlotsResult>;
160
15
  /** FaTableColumn 的固定插槽和动态命名插槽。 */
161
16
  export type FaTableColumnSlots = Record<string, unknown> & {
162
- /** @description 默认内容插槽 */
17
+ /** 默认内容插槽 */
163
18
  default: FaTableDefaultSlotsResult & {
164
19
  row: DefaultRow;
165
20
  column: FaTableColumnCtx;
166
21
  $index: number;
167
22
  };
168
- /** @description 自定义表头的内容 */
23
+ /** 自定义表头的内容 */
169
24
  header: FaTableDefaultSlotsResult & {
170
25
  column: FaTableColumnCtx;
171
26
  $index: number;
172
27
  };
173
- /** @description 自定义 filter 图标 */
28
+ /** 自定义 filter 图标 */
174
29
  filterIcon: FaTableDefaultSlotsResult & {
175
30
  filterOpened: boolean;
176
31
  };
177
- /** @description 展开列的自定义内容 */
32
+ /** 展开列的自定义内容 */
178
33
  expand: FaTableDefaultSlotsResult & {
179
34
  expanded: boolean;
180
35
  };
181
36
  } & FaTableColumnDefaultSlots;
182
37
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
183
38
  /**
184
- * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
39
+ * type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
185
40
  */
186
41
  type: {
187
- type: PropType<FaTableColumnType>;
42
+ type: import("vue").PropType<FaTableColumnType>;
188
43
  default: string;
189
44
  };
190
45
  /**
191
- * @description column width
46
+ * column width
192
47
  */
193
48
  width: {
194
49
  type: (NumberConstructor | StringConstructor)[];
195
50
  default: string;
196
51
  };
197
- /** @description alignment, the value should be 'left' \/ 'center' \/ 'right' */
52
+ /** alignment, the value should be 'left' \/ 'center' \/ 'right' */
198
53
  align: {
199
54
  type: StringConstructor;
200
55
  default: string;
201
56
  };
202
- /** @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right' */
57
+ /** alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right' */
203
58
  headerAlign: {
204
59
  type: StringConstructor;
205
60
  default: string;
206
61
  };
207
- /** @description 是否显示在表格当中 */
62
+ /** 是否显示在表格当中 */
208
63
  show: BooleanConstructor;
209
- /** @description 小页面的宽度,如果为空,则继承默认宽度 */
64
+ /** 小页面的宽度,如果为空,则继承默认宽度 */
210
65
  smallWidth: {
211
66
  type: (NumberConstructor | StringConstructor)[];
212
67
  };
213
- /** @description 自适应宽度 */
68
+ /** 自适应宽度 */
214
69
  autoWidth: BooleanConstructor;
215
- /** @description 插槽名称 */
70
+ /** 插槽名称 */
216
71
  slot: StringConstructor;
217
- /** @description 表格头部插槽名称 */
72
+ /** 表格头部插槽名称 */
218
73
  headerSlot: StringConstructor;
219
- /** @description 自定义表头内容渲染(tsx语法) */
74
+ /** 自定义表头内容渲染(tsx语法) */
220
75
  headerRender: {
221
- type: PropType<({ column, $index }: {
76
+ type: import("vue").PropType<({ column, $index }: {
222
77
  column: TableColumnCtx<DefaultRow>;
223
78
  $index: number;
224
79
  } & FaTableDefaultSlotsResult) => VNode[]>;
225
80
  };
226
- /** @description 自定义单元格内容渲染(tsx语法) */
81
+ /** 自定义单元格内容渲染(tsx语法) */
227
82
  render: {
228
- type: PropType<({ row, column, $index }: {
83
+ type: import("vue").PropType<({ row, column, $index }: {
229
84
  row: DefaultRow;
230
85
  column: FaTableColumnCtx;
231
86
  $index: number;
232
87
  } & FaTableDefaultSlotsResult) => VNode[]>;
233
88
  };
234
- /** @description 多级表头 */
89
+ /** 多级表头 */
235
90
  _children: {
236
- type: PropType<FaTableColumnCtx[]>;
91
+ type: import("vue").PropType<FaTableColumnCtx[]>;
237
92
  };
238
- /** @description 隐藏图片 */
93
+ /** 隐藏图片 */
239
94
  hideImage: BooleanConstructor;
240
- /** @description 复制 */
95
+ /** 复制 */
241
96
  copy: BooleanConstructor;
242
- /** @description 是否为 Link Button */
97
+ /** 是否为 Link Button */
243
98
  link: BooleanConstructor;
244
- /** @description 合并行字段 */
99
+ /** 合并行字段 */
245
100
  spanProp: StringConstructor;
246
- /** @description Link 按钮的点击事件,优先级最高 */
101
+ /** Link 按钮的点击事件,优先级最高 */
247
102
  click: {
248
- type: PropType<({ row, $index }: {
103
+ type: import("vue").PropType<({ row, $index }: {
249
104
  row: DefaultRow;
250
105
  $index?: number;
251
106
  } & FaTableDefaultSlotsResult) => void>;
252
107
  };
253
- /** @description 点击Emits事件回调 */
108
+ /** 点击Emits事件回调 */
254
109
  clickEmit: StringConstructor;
255
- /** @description 图片列是否显示为原图,默认 false 显示缩略图 */
110
+ /** 图片列是否显示为原图,默认 false 显示缩略图 */
256
111
  originalImage: BooleanConstructor;
257
- /** @description 显示时间格式化字符串 */
112
+ /** 显示时间格式化字符串 */
258
113
  dateFix: BooleanConstructor;
259
- /** @description 显示在页面中的日期格式 */
114
+ /** 显示在页面中的日期格式 */
260
115
  dateFormat: {
261
- type: PropType<FaTableColumnDateFormat>;
116
+ type: import("vue").PropType<FaTableColumnDateFormat>;
262
117
  };
263
- /** @description 是否是标签展示 */
118
+ /** 是否是标签展示 */
264
119
  tag: BooleanConstructor;
265
- /** @description 枚举类型(渲染值的字典) */
120
+ /** 枚举类型(渲染值的字典) */
266
121
  enum: {
267
- type: PropType<FaTableEnumColumnType>;
122
+ type: import("vue").PropType<FaTableEnumColumnType>;
268
123
  };
269
- /** @description 数据删除字段,如果为 true 会显示遮罩层 */
124
+ /** 数据删除字段,如果为 true 会显示遮罩层 */
270
125
  dataDeleteField: StringConstructor;
271
- /** @description 时间信息字段 */
126
+ /** 时间信息字段 */
272
127
  timeInfoField: {
273
- type: PropType<{
128
+ type: import("vue").PropType<{
274
129
  userName?: string;
275
130
  time?: string;
276
131
  }>;
@@ -279,131 +134,55 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
279
134
  time: string;
280
135
  };
281
136
  };
282
- /**
283
- * @description column label
284
- */
285
137
  label: StringConstructor;
286
- /**
287
- * @description class name of cells in the column
288
- */
289
138
  className: StringConstructor;
290
- /**
291
- * @description class name of the label of this column
292
- */
293
139
  labelClassName: StringConstructor;
294
- /**
295
- * @description
296
- */
297
140
  property: StringConstructor;
298
- /**
299
- * @description field name. You can also use its alias: `property`
300
- */
301
141
  prop: StringConstructor;
302
- /**
303
- * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
304
- */
305
142
  minWidth: {
306
143
  type: (NumberConstructor | StringConstructor)[];
307
144
  default: string;
308
145
  };
309
- /**
310
- * @description render function for table header of this column
311
- */
312
- renderHeader: PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
313
- /**
314
- * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
315
- */
146
+ renderHeader: import("vue").PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
316
147
  sortable: {
317
148
  type: (StringConstructor | BooleanConstructor)[];
318
149
  default: boolean;
319
150
  };
320
- /**
321
- * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
322
- */
323
- sortMethod: PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
324
- /**
325
- * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal
326
- */
327
- sortBy: PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
328
- /**
329
- * @description whether column width can be resized, works when `border` of `el-table` is `true`
330
- */
151
+ sortMethod: import("vue").PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
152
+ sortBy: import("vue").PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
331
153
  resizable: {
332
154
  type: BooleanConstructor;
333
155
  default: boolean;
334
156
  };
335
- /**
336
- * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
337
- */
338
157
  columnKey: StringConstructor;
339
- /**
340
- * @description whether to hide extra content and show them in a tooltip when hovering on the cell
341
- */
342
158
  showOverflowTooltip: {
343
- type: PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
159
+ type: import("vue").PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
344
160
  default: undefined;
345
161
  };
346
- /** @description function that formats cell tooltip content, works when show-overflow-tooltip is enabled */
347
- tooltipFormatter: PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
348
- /**
349
- * @description whether column is fixed at left / right. Will be fixed at left if `true`
350
- */
162
+ tooltipFormatter: import("vue").PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
351
163
  fixed: (StringConstructor | BooleanConstructor)[];
352
- /**
353
- * @description function that formats cell content
354
- */
355
- formatter: PropType<TableColumnCtx<DefaultRow>["formatter"]>;
356
- /**
357
- * @description function that determines if a certain row can be selected, works when `type` is 'selection'
358
- */
359
- selectable: PropType<TableColumnCtx<DefaultRow>["selectable"]>;
360
- /**
361
- * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
362
- */
164
+ formatter: import("vue").PropType<TableColumnCtx<DefaultRow>["formatter"]>;
165
+ selectable: import("vue").PropType<TableColumnCtx<DefaultRow>["selectable"]>;
363
166
  reserveSelection: BooleanConstructor;
364
- /**
365
- * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`
366
- */
367
- filterMethod: PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
368
- /**
369
- * @description filter value for selected data, might be useful when table header is rendered with `render-header`
370
- */
371
- filteredValue: PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
372
- /**
373
- * @description an array of data filtering options. For each element in this array, `text` and `value` are required
374
- */
375
- filters: PropType<TableColumnCtx<DefaultRow>["filters"]>;
376
- /**
377
- * @description placement for the filter dropdown
378
- */
167
+ filterMethod: import("vue").PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
168
+ filteredValue: import("vue").PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
169
+ filters: import("vue").PropType<TableColumnCtx<DefaultRow>["filters"]>;
379
170
  filterPlacement: StringConstructor;
380
- /**
381
- * @description whether data filtering supports multiple options
382
- */
383
171
  filterMultiple: {
384
172
  type: BooleanConstructor;
385
173
  default: boolean;
386
174
  };
387
- /**
388
- * @description className for the filter dropdown
389
- */
390
175
  filterClassName: StringConstructor;
391
- /**
392
- * @description customize indices for each row, works on columns with `type=index`
393
- */
394
- index: PropType<TableColumnCtx<DefaultRow>["index"]>;
395
- /**
396
- * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array
397
- */
176
+ index: import("vue").PropType<TableColumnCtx<DefaultRow>["index"]>;
398
177
  sortOrders: {
399
- type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
178
+ type: import("vue").PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
400
179
  default: () => (string | null)[];
401
- validator: (val: unknown) => val is ("ascending" | "descending" | null)[];
180
+ validator: (val: unknown) => boolean;
402
181
  };
403
182
  }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
404
- /** @description 图片预览 */
183
+ /** 图片预览 */
405
184
  imagePreview: (url: string) => boolean;
406
- /** @description 自定义单元格点击事件 */
185
+ /** 自定义单元格点击事件 */
407
186
  customCellClick: (emitName: string, { row, column, $index }: {
408
187
  row: DefaultRow;
409
188
  column: FaTableColumnCtx;
@@ -411,96 +190,96 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
411
190
  }) => boolean;
412
191
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
413
192
  /**
414
- * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
193
+ * type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
415
194
  */
416
195
  type: {
417
- type: PropType<FaTableColumnType>;
196
+ type: import("vue").PropType<FaTableColumnType>;
418
197
  default: string;
419
198
  };
420
199
  /**
421
- * @description column width
200
+ * column width
422
201
  */
423
202
  width: {
424
203
  type: (NumberConstructor | StringConstructor)[];
425
204
  default: string;
426
205
  };
427
- /** @description alignment, the value should be 'left' \/ 'center' \/ 'right' */
206
+ /** alignment, the value should be 'left' \/ 'center' \/ 'right' */
428
207
  align: {
429
208
  type: StringConstructor;
430
209
  default: string;
431
210
  };
432
- /** @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right' */
211
+ /** alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right' */
433
212
  headerAlign: {
434
213
  type: StringConstructor;
435
214
  default: string;
436
215
  };
437
- /** @description 是否显示在表格当中 */
216
+ /** 是否显示在表格当中 */
438
217
  show: BooleanConstructor;
439
- /** @description 小页面的宽度,如果为空,则继承默认宽度 */
218
+ /** 小页面的宽度,如果为空,则继承默认宽度 */
440
219
  smallWidth: {
441
220
  type: (NumberConstructor | StringConstructor)[];
442
221
  };
443
- /** @description 自适应宽度 */
222
+ /** 自适应宽度 */
444
223
  autoWidth: BooleanConstructor;
445
- /** @description 插槽名称 */
224
+ /** 插槽名称 */
446
225
  slot: StringConstructor;
447
- /** @description 表格头部插槽名称 */
226
+ /** 表格头部插槽名称 */
448
227
  headerSlot: StringConstructor;
449
- /** @description 自定义表头内容渲染(tsx语法) */
228
+ /** 自定义表头内容渲染(tsx语法) */
450
229
  headerRender: {
451
- type: PropType<({ column, $index }: {
230
+ type: import("vue").PropType<({ column, $index }: {
452
231
  column: TableColumnCtx<DefaultRow>;
453
232
  $index: number;
454
233
  } & FaTableDefaultSlotsResult) => VNode[]>;
455
234
  };
456
- /** @description 自定义单元格内容渲染(tsx语法) */
235
+ /** 自定义单元格内容渲染(tsx语法) */
457
236
  render: {
458
- type: PropType<({ row, column, $index }: {
237
+ type: import("vue").PropType<({ row, column, $index }: {
459
238
  row: DefaultRow;
460
239
  column: FaTableColumnCtx;
461
240
  $index: number;
462
241
  } & FaTableDefaultSlotsResult) => VNode[]>;
463
242
  };
464
- /** @description 多级表头 */
243
+ /** 多级表头 */
465
244
  _children: {
466
- type: PropType<FaTableColumnCtx[]>;
245
+ type: import("vue").PropType<FaTableColumnCtx[]>;
467
246
  };
468
- /** @description 隐藏图片 */
247
+ /** 隐藏图片 */
469
248
  hideImage: BooleanConstructor;
470
- /** @description 复制 */
249
+ /** 复制 */
471
250
  copy: BooleanConstructor;
472
- /** @description 是否为 Link Button */
251
+ /** 是否为 Link Button */
473
252
  link: BooleanConstructor;
474
- /** @description 合并行字段 */
253
+ /** 合并行字段 */
475
254
  spanProp: StringConstructor;
476
- /** @description Link 按钮的点击事件,优先级最高 */
255
+ /** Link 按钮的点击事件,优先级最高 */
477
256
  click: {
478
- type: PropType<({ row, $index }: {
257
+ type: import("vue").PropType<({ row, $index }: {
479
258
  row: DefaultRow;
480
259
  $index?: number;
481
260
  } & FaTableDefaultSlotsResult) => void>;
482
261
  };
483
- /** @description 点击Emits事件回调 */
262
+ /** 点击Emits事件回调 */
484
263
  clickEmit: StringConstructor;
485
- /** @description 图片列是否显示为原图,默认 false 显示缩略图 */
264
+ /** 图片列是否显示为原图,默认 false 显示缩略图 */
486
265
  originalImage: BooleanConstructor;
487
- /** @description 显示时间格式化字符串 */
266
+ /** 显示时间格式化字符串 */
488
267
  dateFix: BooleanConstructor;
489
- /** @description 显示在页面中的日期格式 */
268
+ /** 显示在页面中的日期格式 */
490
269
  dateFormat: {
491
- type: PropType<FaTableColumnDateFormat>;
270
+ type: import("vue").PropType<FaTableColumnDateFormat>;
492
271
  };
493
- /** @description 是否是标签展示 */
272
+ /** 是否是标签展示 */
494
273
  tag: BooleanConstructor;
495
- /** @description 枚举类型(渲染值的字典) */
274
+ /** 枚举类型(渲染值的字典) */
496
275
  enum: {
497
- type: PropType<FaTableEnumColumnType>;
276
+ type: import("vue").PropType<FaTableEnumColumnType>;
498
277
  };
499
- /** @description 数据删除字段,如果为 true 会显示遮罩层 */
278
+ /** 数据删除字段,如果为 true 会显示遮罩层 */
500
279
  dataDeleteField: StringConstructor;
501
- /** @description 时间信息字段 */
280
+ /** 时间信息字段 */
502
281
  timeInfoField: {
503
- type: PropType<{
282
+ type: import("vue").PropType<{
504
283
  userName?: string;
505
284
  time?: string;
506
285
  }>;
@@ -509,126 +288,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
509
288
  time: string;
510
289
  };
511
290
  };
512
- /**
513
- * @description column label
514
- */
515
291
  label: StringConstructor;
516
- /**
517
- * @description class name of cells in the column
518
- */
519
292
  className: StringConstructor;
520
- /**
521
- * @description class name of the label of this column
522
- */
523
293
  labelClassName: StringConstructor;
524
- /**
525
- * @description
526
- */
527
294
  property: StringConstructor;
528
- /**
529
- * @description field name. You can also use its alias: `property`
530
- */
531
295
  prop: StringConstructor;
532
- /**
533
- * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
534
- */
535
296
  minWidth: {
536
297
  type: (NumberConstructor | StringConstructor)[];
537
298
  default: string;
538
299
  };
539
- /**
540
- * @description render function for table header of this column
541
- */
542
- renderHeader: PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
543
- /**
544
- * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
545
- */
300
+ renderHeader: import("vue").PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
546
301
  sortable: {
547
302
  type: (StringConstructor | BooleanConstructor)[];
548
303
  default: boolean;
549
304
  };
550
- /**
551
- * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
552
- */
553
- sortMethod: PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
554
- /**
555
- * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal
556
- */
557
- sortBy: PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
558
- /**
559
- * @description whether column width can be resized, works when `border` of `el-table` is `true`
560
- */
305
+ sortMethod: import("vue").PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
306
+ sortBy: import("vue").PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
561
307
  resizable: {
562
308
  type: BooleanConstructor;
563
309
  default: boolean;
564
310
  };
565
- /**
566
- * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
567
- */
568
311
  columnKey: StringConstructor;
569
- /**
570
- * @description whether to hide extra content and show them in a tooltip when hovering on the cell
571
- */
572
312
  showOverflowTooltip: {
573
- type: PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
313
+ type: import("vue").PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
574
314
  default: undefined;
575
315
  };
576
- /** @description function that formats cell tooltip content, works when show-overflow-tooltip is enabled */
577
- tooltipFormatter: PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
578
- /**
579
- * @description whether column is fixed at left / right. Will be fixed at left if `true`
580
- */
316
+ tooltipFormatter: import("vue").PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
581
317
  fixed: (StringConstructor | BooleanConstructor)[];
582
- /**
583
- * @description function that formats cell content
584
- */
585
- formatter: PropType<TableColumnCtx<DefaultRow>["formatter"]>;
586
- /**
587
- * @description function that determines if a certain row can be selected, works when `type` is 'selection'
588
- */
589
- selectable: PropType<TableColumnCtx<DefaultRow>["selectable"]>;
590
- /**
591
- * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
592
- */
318
+ formatter: import("vue").PropType<TableColumnCtx<DefaultRow>["formatter"]>;
319
+ selectable: import("vue").PropType<TableColumnCtx<DefaultRow>["selectable"]>;
593
320
  reserveSelection: BooleanConstructor;
594
- /**
595
- * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`
596
- */
597
- filterMethod: PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
598
- /**
599
- * @description filter value for selected data, might be useful when table header is rendered with `render-header`
600
- */
601
- filteredValue: PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
602
- /**
603
- * @description an array of data filtering options. For each element in this array, `text` and `value` are required
604
- */
605
- filters: PropType<TableColumnCtx<DefaultRow>["filters"]>;
606
- /**
607
- * @description placement for the filter dropdown
608
- */
321
+ filterMethod: import("vue").PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
322
+ filteredValue: import("vue").PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
323
+ filters: import("vue").PropType<TableColumnCtx<DefaultRow>["filters"]>;
609
324
  filterPlacement: StringConstructor;
610
- /**
611
- * @description whether data filtering supports multiple options
612
- */
613
325
  filterMultiple: {
614
326
  type: BooleanConstructor;
615
327
  default: boolean;
616
328
  };
617
- /**
618
- * @description className for the filter dropdown
619
- */
620
329
  filterClassName: StringConstructor;
621
- /**
622
- * @description customize indices for each row, works on columns with `type=index`
623
- */
624
- index: PropType<TableColumnCtx<DefaultRow>["index"]>;
625
- /**
626
- * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array
627
- */
330
+ index: import("vue").PropType<TableColumnCtx<DefaultRow>["index"]>;
628
331
  sortOrders: {
629
- type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
332
+ type: import("vue").PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
630
333
  default: () => (string | null)[];
631
- validator: (val: unknown) => val is ("ascending" | "descending" | null)[];
334
+ validator: (val: unknown) => boolean;
632
335
  };
633
336
  }>> & Readonly<{
634
337
  onCustomCellClick?: ((emitName: string, args_1: {