fast-element-plus 2.0.19 → 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 (128) hide show
  1. package/CHANGELOG.md +40 -20
  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 +110 -110
  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 +6 -6
  16. package/dist/components/contextMenu/src/contextMenu.mjs +5 -5
  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 +74 -74
  20. package/dist/components/dialog/src/dialog.mjs +31 -31
  21. package/dist/components/dialog/src/dialog.mjs.map +1 -1
  22. package/dist/components/drawer/src/drawer.d.ts +57 -57
  23. package/dist/components/drawer/src/drawer.mjs +24 -24
  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 +18 -18
  50. package/dist/components/layoutGrid/src/layoutGridItem.mjs +8 -8
  51. package/dist/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  52. package/dist/components/select/src/select.d.ts +88 -88
  53. package/dist/components/select/src/select.mjs +28 -28
  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 +78 -84
  59. package/dist/components/selectPage/src/selectPage.mjs +49 -35
  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 +160 -851
  64. package/dist/components/selectV2/src/selectV2.mjs +30 -338
  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 +86 -86
  97. package/dist/components/tree/src/tree.mjs +46 -46
  98. package/dist/components/tree/src/tree.mjs.map +1 -1
  99. package/dist/components/treeSelect/src/treeSelect.d.ts +144 -150
  100. package/dist/components/treeSelect/src/treeSelect.mjs +55 -55
  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 +17 -17
  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 +23 -23
  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.global.min.js +3 -3
  117. package/dist/index.global.min.js.map +1 -1
  118. package/dist/index.mjs +3 -3
  119. package/dist/internal/props.d.ts +685 -0
  120. package/dist/internal/props.mjs +683 -0
  121. package/dist/internal/props.mjs.map +1 -0
  122. package/dist/utils/loading-tasks.d.ts +5 -0
  123. package/dist/utils/loading-tasks.mjs +32 -0
  124. package/dist/utils/loading-tasks.mjs.map +1 -0
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.mjs +1 -1
  127. package/dist/version.mjs.map +1 -1
  128. package/package.json +5 -10
package/dist/index.mjs CHANGED
@@ -26,9 +26,9 @@ import { FaForm, FaFormItem } from "./components/form/index.mjs";
26
26
  import { FaIconSelector } from "./components/iconSelector/index.mjs";
27
27
  import { faImageEmits, faImageProps } from "./components/image/src/image.mjs";
28
28
  import { FaImage } from "./components/image/index.mjs";
29
+ import { SelectV2Props, tableColumnProps, tableProps } from "./internal/props.mjs";
29
30
  import { tableUtil } from "./components/table/utils/table.mjs";
30
- import { tableColumnProps } from "./components/table/src/tableColumn.mjs";
31
- import { faTableEmits, faTableProps, tableProps } from "./components/table/src/table.mjs";
31
+ import { faTableEmits, faTableProps } from "./components/table/src/table.mjs";
32
32
  import { FaTable, FaTableColumn } from "./components/table/index.mjs";
33
33
  import { faInputDialogPageEmits, faInputDialogPageProps } from "./components/inputDialogPage/src/inputDialogPage.mjs";
34
34
  import { FaInputDialogPage } from "./components/inputDialogPage/index.mjs";
@@ -36,7 +36,7 @@ import { faSelectProps } from "./components/select/src/select.mjs";
36
36
  import { FaSelect, FaSelectOption } from "./components/select/index.mjs";
37
37
  import { faSelectPageEmits, faSelectPageProps } from "./components/selectPage/src/selectPage.mjs";
38
38
  import { FaSelectPage } from "./components/selectPage/index.mjs";
39
- import { SelectV2Props, faSelectV2Props } from "./components/selectV2/src/selectV2.mjs";
39
+ import { faSelectV2Props } from "./components/selectV2/src/selectV2.mjs";
40
40
  import { FaSelectV2 } from "./components/selectV2/index.mjs";
41
41
  import { faTreeEmits, faTreeProps } from "./components/tree/src/tree.mjs";
42
42
  import { FaTree } from "./components/tree/index.mjs";
@@ -0,0 +1,685 @@
1
+ import type { SelectV2Props as ElementPlusSelectV2Props, Options, Placement, TableColumnCtx, TableProps } from "element-plus";
2
+ import type { CSSProperties, Component, PropType } from "vue";
3
+ import type { ElSelectorModelValue } from "../components/select/src/select.type";
4
+ import type { DefaultRow } from "../components/table/src/table.state";
5
+ type Layout = "fixed" | "auto";
6
+ /** FaTable 树形数据的字段配置。 */
7
+ export interface TreeProps {
8
+ hasChildren?: string;
9
+ children?: string;
10
+ checkStrictly?: boolean;
11
+ }
12
+ /** Element Plus Table 的透传 Props 定义。 */
13
+ export declare const tableProps: {
14
+ /**
15
+ * table data
16
+ */
17
+ data: {
18
+ type: PropType<DefaultRow[]>;
19
+ default: () => DefaultRow[];
20
+ };
21
+ /**
22
+ * size of Table
23
+ */
24
+ size: {
25
+ readonly type: PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
26
+ readonly required: false;
27
+ readonly validator: ((val: unknown) => boolean) | undefined;
28
+ __epPropKey: true;
29
+ };
30
+ width: (NumberConstructor | StringConstructor)[];
31
+ /**
32
+ * table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
33
+ */
34
+ height: (NumberConstructor | StringConstructor)[];
35
+ /**
36
+ * table's max-height. The legal value is a number or the height in px
37
+ */
38
+ maxHeight: (NumberConstructor | StringConstructor)[];
39
+ /**
40
+ * whether width of column automatically fits its container
41
+ */
42
+ fit: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * whether Table is striped
48
+ */
49
+ stripe: BooleanConstructor;
50
+ /**
51
+ * whether Table has vertical border
52
+ */
53
+ border: BooleanConstructor;
54
+ /**
55
+ * key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
56
+ */
57
+ rowKey: PropType<TableProps<DefaultRow>["rowKey"]>;
58
+ /**
59
+ * whether Table header is visible
60
+ */
61
+ showHeader: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * whether to display a summary row
67
+ */
68
+ showSummary: BooleanConstructor;
69
+ /**
70
+ * displayed text for the first column of summary row
71
+ */
72
+ sumText: StringConstructor;
73
+ /**
74
+ * custom summary method
75
+ */
76
+ summaryMethod: PropType<TableProps<DefaultRow>["summaryMethod"]>;
77
+ /**
78
+ * function that returns custom class names for a row, or a string assigning class names for every row
79
+ */
80
+ rowClassName: PropType<TableProps<DefaultRow>["rowClassName"]>;
81
+ /**
82
+ * function that returns custom style for a row, or an object assigning custom style for every row
83
+ */
84
+ rowStyle: PropType<TableProps<DefaultRow>["rowStyle"]>;
85
+ /**
86
+ * function that returns custom class names for a cell, or a string assigning class names for every cell
87
+ */
88
+ cellClassName: PropType<TableProps<DefaultRow>["cellClassName"]>;
89
+ /**
90
+ * function that returns custom style for a cell, or an object assigning custom style for every cell
91
+ */
92
+ cellStyle: PropType<TableProps<DefaultRow>["cellStyle"]>;
93
+ /**
94
+ * function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
95
+ */
96
+ headerRowClassName: PropType<TableProps<DefaultRow>["headerRowClassName"]>;
97
+ /**
98
+ * function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
99
+ */
100
+ headerRowStyle: PropType<TableProps<DefaultRow>["headerRowStyle"]>;
101
+ /**
102
+ * function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
103
+ */
104
+ headerCellClassName: PropType<TableProps<DefaultRow>["headerCellClassName"]>;
105
+ /**
106
+ * function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
107
+ */
108
+ headerCellStyle: PropType<TableProps<DefaultRow>["headerCellStyle"]>;
109
+ /**
110
+ * whether current row is highlighted
111
+ */
112
+ highlightCurrentRow: BooleanConstructor;
113
+ /**
114
+ * key of current row, a set only prop
115
+ */
116
+ currentRowKey: (NumberConstructor | StringConstructor)[];
117
+ /**
118
+ * displayed text when data is empty. You can customize this area with `#empty`
119
+ */
120
+ emptyText: StringConstructor;
121
+ /**
122
+ * set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
123
+ */
124
+ expandRowKeys: PropType<TableProps<DefaultRow>["expandRowKeys"]>;
125
+ /** controls whether a row can be expanded */
126
+ rowExpandable: PropType<TableProps<DefaultRow>["rowExpandable"]>;
127
+ /**
128
+ * whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
129
+ */
130
+ defaultExpandAll: BooleanConstructor;
131
+ /**
132
+ * set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
133
+ */
134
+ defaultSort: PropType<TableProps<DefaultRow>["defaultSort"]>;
135
+ /**
136
+ * the `effect` of the overflow tooltip
137
+ */
138
+ tooltipEffect: StringConstructor;
139
+ /**
140
+ * the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
141
+ */
142
+ tooltipOptions: PropType<TableProps<DefaultRow>["tooltipOptions"]>;
143
+ /**
144
+ * method that returns rowspan and colspan
145
+ */
146
+ spanMethod: PropType<TableProps<DefaultRow>["spanMethod"]>;
147
+ /**
148
+ * controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
149
+ */
150
+ selectOnIndeterminate: {
151
+ type: BooleanConstructor;
152
+ default: boolean;
153
+ };
154
+ /**
155
+ * horizontal indentation of tree data
156
+ */
157
+ indent: {
158
+ type: NumberConstructor;
159
+ default: number;
160
+ };
161
+ /**
162
+ * configuration for rendering nested data
163
+ */
164
+ treeProps: {
165
+ type: PropType<TreeProps>;
166
+ default: () => {
167
+ hasChildren: string;
168
+ children: string;
169
+ checkStrictly: boolean;
170
+ };
171
+ };
172
+ /**
173
+ * whether to lazy loading data
174
+ */
175
+ lazy: BooleanConstructor;
176
+ /**
177
+ * method for loading child row data, only works when `lazy` is true
178
+ */
179
+ load: PropType<TableProps<DefaultRow>["load"]>;
180
+ style: {
181
+ type: PropType<CSSProperties>;
182
+ default: () => CSSProperties;
183
+ };
184
+ className: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ };
188
+ /**
189
+ * sets the algorithm used to lay out table cells, rows, and columns
190
+ */
191
+ tableLayout: {
192
+ type: PropType<Layout>;
193
+ default: string;
194
+ };
195
+ /**
196
+ * always show scrollbar
197
+ */
198
+ scrollbarAlwaysOn: BooleanConstructor;
199
+ /**
200
+ * ensure main axis minimum-size doesn't follow the content
201
+ */
202
+ flexible: BooleanConstructor;
203
+ /**
204
+ * whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
205
+ */
206
+ showOverflowTooltip: PropType<TableProps<DefaultRow>["showOverflowTooltip"]>;
207
+ /** formats overflow tooltip content */
208
+ tooltipFormatter: PropType<TableProps<DefaultRow>["tooltipFormatter"]>;
209
+ /** element to which the filter panel is appended */
210
+ appendFilterPanelTo: StringConstructor;
211
+ scrollbarTabindex: {
212
+ type: (NumberConstructor | StringConstructor)[];
213
+ default: undefined;
214
+ };
215
+ /** whether the last column can be resized */
216
+ allowDragLastColumn: {
217
+ type: BooleanConstructor;
218
+ default: boolean;
219
+ };
220
+ /** whether collapsed expanded-row content remains mounted */
221
+ preserveExpandedContent: BooleanConstructor;
222
+ /** whether to use native scrollbars */
223
+ nativeScrollbar: BooleanConstructor;
224
+ };
225
+ /** Element Plus TableColumn 的透传 Props 定义 */
226
+ export declare const tableColumnProps: {
227
+ /**
228
+ * 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
229
+ */
230
+ type: {
231
+ type: StringConstructor;
232
+ default: string;
233
+ };
234
+ /**
235
+ * column label
236
+ */
237
+ label: StringConstructor;
238
+ /**
239
+ * class name of cells in the column
240
+ */
241
+ className: StringConstructor;
242
+ /**
243
+ * class name of the label of this column
244
+ */
245
+ labelClassName: StringConstructor;
246
+ /**
247
+ *
248
+ */
249
+ property: StringConstructor;
250
+ /**
251
+ * field name. You can also use its alias: `property`
252
+ */
253
+ prop: StringConstructor;
254
+ /**
255
+ * column width
256
+ */
257
+ width: {
258
+ type: (NumberConstructor | StringConstructor)[];
259
+ default: string;
260
+ };
261
+ /**
262
+ * column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
263
+ */
264
+ minWidth: {
265
+ type: (NumberConstructor | StringConstructor)[];
266
+ default: string;
267
+ };
268
+ /**
269
+ * render function for table header of this column
270
+ */
271
+ renderHeader: PropType<TableColumnCtx<DefaultRow>["renderHeader"]>;
272
+ /**
273
+ * 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
274
+ */
275
+ sortable: {
276
+ type: (StringConstructor | BooleanConstructor)[];
277
+ default: boolean;
278
+ };
279
+ /**
280
+ * sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
281
+ */
282
+ sortMethod: PropType<TableColumnCtx<DefaultRow>["sortMethod"]>;
283
+ /**
284
+ * 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
285
+ */
286
+ sortBy: PropType<TableColumnCtx<DefaultRow>["sortBy"]>;
287
+ /**
288
+ * whether column width can be resized, works when `border` of `el-table` is `true`
289
+ */
290
+ resizable: {
291
+ type: BooleanConstructor;
292
+ default: boolean;
293
+ };
294
+ /**
295
+ * column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
296
+ */
297
+ columnKey: StringConstructor;
298
+ /**
299
+ * alignment, the value should be 'left' \/ 'center' \/ 'right'
300
+ */
301
+ align: StringConstructor;
302
+ /**
303
+ * alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right'
304
+ */
305
+ headerAlign: StringConstructor;
306
+ /**
307
+ * whether to hide extra content and show them in a tooltip when hovering on the cell
308
+ */
309
+ showOverflowTooltip: {
310
+ type: PropType<TableColumnCtx<DefaultRow>["showOverflowTooltip"]>;
311
+ default: undefined;
312
+ };
313
+ /** function that formats cell tooltip content, works when show-overflow-tooltip is enabled */
314
+ tooltipFormatter: PropType<TableColumnCtx<DefaultRow>["tooltipFormatter"]>;
315
+ /**
316
+ * whether column is fixed at left / right. Will be fixed at left if `true`
317
+ */
318
+ fixed: (StringConstructor | BooleanConstructor)[];
319
+ /**
320
+ * function that formats cell content
321
+ */
322
+ formatter: PropType<TableColumnCtx<DefaultRow>["formatter"]>;
323
+ /**
324
+ * function that determines if a certain row can be selected, works when `type` is 'selection'
325
+ */
326
+ selectable: PropType<TableColumnCtx<DefaultRow>["selectable"]>;
327
+ /**
328
+ * whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
329
+ */
330
+ reserveSelection: BooleanConstructor;
331
+ /**
332
+ * 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`
333
+ */
334
+ filterMethod: PropType<TableColumnCtx<DefaultRow>["filterMethod"]>;
335
+ /**
336
+ * filter value for selected data, might be useful when table header is rendered with `render-header`
337
+ */
338
+ filteredValue: PropType<TableColumnCtx<DefaultRow>["filteredValue"]>;
339
+ /**
340
+ * an array of data filtering options. For each element in this array, `text` and `value` are required
341
+ */
342
+ filters: PropType<TableColumnCtx<DefaultRow>["filters"]>;
343
+ /**
344
+ * placement for the filter dropdown
345
+ */
346
+ filterPlacement: StringConstructor;
347
+ /**
348
+ * whether data filtering supports multiple options
349
+ */
350
+ filterMultiple: {
351
+ type: BooleanConstructor;
352
+ default: boolean;
353
+ };
354
+ /**
355
+ * className for the filter dropdown
356
+ */
357
+ filterClassName: StringConstructor;
358
+ /**
359
+ * customize indices for each row, works on columns with `type=index`
360
+ */
361
+ index: PropType<TableColumnCtx<DefaultRow>["index"]>;
362
+ /**
363
+ * 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
364
+ */
365
+ sortOrders: {
366
+ type: PropType<TableColumnCtx<DefaultRow>["sortOrders"]>;
367
+ default: () => (string | null)[];
368
+ validator: (val: unknown) => boolean;
369
+ };
370
+ };
371
+ /** 传递给底层 Element Plus 虚拟化选择器的扩展 Props。 */
372
+ export interface Props {
373
+ label?: string;
374
+ value?: string;
375
+ disabled?: string;
376
+ options?: string;
377
+ }
378
+ /** Element Plus SelectV2 的透传 Props 定义。 */
379
+ export declare const SelectV2Props: {
380
+ ariaLabel: StringConstructor;
381
+ emptyValues: ArrayConstructor;
382
+ valueOnClear: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
383
+ /**
384
+ * whether creating new items is allowed. To use this, `filterable` must be true
385
+ */
386
+ allowCreate: BooleanConstructor;
387
+ /**
388
+ * autocomplete of select input
389
+ */
390
+ autocomplete: {
391
+ type: PropType<"none" | "both" | "inline" | "list">;
392
+ default: string;
393
+ };
394
+ /**
395
+ * for non-filterable Select, this prop decides if the option menu pops up when the input is focused
396
+ */
397
+ automaticDropdown: BooleanConstructor;
398
+ /**
399
+ * whether select can be cleared
400
+ */
401
+ clearable: BooleanConstructor;
402
+ /**
403
+ * custom clear icon
404
+ */
405
+ clearIcon: {
406
+ type: PropType<string | Component>;
407
+ default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
408
+ };
409
+ /**
410
+ * tooltip theme, built-in theme: `dark` / `light`
411
+ */
412
+ effect: {
413
+ type: PropType<string>;
414
+ default: string;
415
+ };
416
+ /**
417
+ * whether to collapse tags to a text when multiple selecting
418
+ */
419
+ collapseTags: BooleanConstructor;
420
+ /**
421
+ * whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true
422
+ */
423
+ collapseTagsTooltip: BooleanConstructor;
424
+ /** collapse-tags tooltip configuration */
425
+ tagTooltip: {
426
+ type: PropType<import("element-plus/es/components/select-v2/src/defaults.mjs").TagTooltipProps>;
427
+ default: () => NonNullable<ElementPlusSelectV2Props["tagTooltip"]>;
428
+ };
429
+ /**
430
+ * The max tags number to be shown. To use this, `collapse-tags` must be true
431
+ */
432
+ maxCollapseTags: {
433
+ type: NumberConstructor;
434
+ default: number;
435
+ };
436
+ /**
437
+ *
438
+ */
439
+ defaultFirstOption: BooleanConstructor;
440
+ /**
441
+ * is disabled
442
+ */
443
+ disabled: BooleanConstructor;
444
+ /**
445
+ *
446
+ */
447
+ estimatedOptionHeight: {
448
+ type: NumberConstructor;
449
+ default: undefined;
450
+ };
451
+ /**
452
+ * is filterable
453
+ */
454
+ filterable: BooleanConstructor;
455
+ /**
456
+ *
457
+ */
458
+ filterMethod: PropType<ElementPlusSelectV2Props["filterMethod"]>;
459
+ /**
460
+ * The height of the dropdown panel, 34px for each item
461
+ */
462
+ height: {
463
+ type: NumberConstructor;
464
+ default: number;
465
+ };
466
+ /**
467
+ * The height of the dropdown item
468
+ */
469
+ itemHeight: {
470
+ type: NumberConstructor;
471
+ default: number;
472
+ };
473
+ /**
474
+ *
475
+ */
476
+ id: StringConstructor;
477
+ /**
478
+ * whether Select is loading data from server
479
+ */
480
+ loading: BooleanConstructor;
481
+ /**
482
+ * displayed text while loading data from server, default is 'Loading'
483
+ */
484
+ loadingText: StringConstructor;
485
+ /**
486
+ * biding value
487
+ */
488
+ modelValue: {
489
+ type: PropType<ElSelectorModelValue>;
490
+ };
491
+ /**
492
+ * is multiple
493
+ */
494
+ multiple: BooleanConstructor;
495
+ /**
496
+ * maximum number of options user can select when multiple is true. No limit when set to 0
497
+ */
498
+ multipleLimit: {
499
+ type: NumberConstructor;
500
+ default: number;
501
+ };
502
+ /**
503
+ * the name attribute of select input
504
+ */
505
+ name: StringConstructor;
506
+ /**
507
+ * displayed text when there is no options, you can also use slot empty, the default is 'No Data'
508
+ */
509
+ noDataText: StringConstructor;
510
+ /**
511
+ * displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'
512
+ */
513
+ noMatchText: StringConstructor;
514
+ /**
515
+ * function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true
516
+ */
517
+ remoteMethod: PropType<ElementPlusSelectV2Props["remoteMethod"]>;
518
+ /**
519
+ * whether reserve the keyword after select filtered option.
520
+ */
521
+ reserveKeyword: {
522
+ type: BooleanConstructor;
523
+ default: boolean;
524
+ };
525
+ /**
526
+ * data of the options, the key of `value` and `label` can be customize by `props`
527
+ */
528
+ options: {
529
+ type: PropType<import("element-plus/es/components/select-v2/src/select.types.mjs").OptionType[]>;
530
+ };
531
+ /**
532
+ * placeholder, the default is 'Please select'
533
+ */
534
+ placeholder: {
535
+ type: StringConstructor;
536
+ };
537
+ /**
538
+ * whether select dropdown is teleported to the body
539
+ */
540
+ teleported: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
541
+ /**
542
+ * when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed
543
+ */
544
+ persistent: {
545
+ type: BooleanConstructor;
546
+ default: boolean;
547
+ };
548
+ /**
549
+ * custom class name for Select's dropdown
550
+ */
551
+ popperClass: {
552
+ type: StringConstructor;
553
+ default: string;
554
+ };
555
+ /** custom style for Select's dropdown */
556
+ popperStyle: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | false | CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | null)[], unknown, unknown, undefined, boolean>;
557
+ /**
558
+ * [popper.js](https://popper.js.org/docs/v2/) parameters
559
+ */
560
+ popperOptions: {
561
+ type: PropType<Partial<Options>>;
562
+ default: () => Partial<Options>;
563
+ };
564
+ /**
565
+ * whether search data from server
566
+ */
567
+ remote: BooleanConstructor;
568
+ /** debounce delay during remote search, in milliseconds */
569
+ debounce: {
570
+ type: NumberConstructor;
571
+ default: number;
572
+ };
573
+ /**
574
+ * size of component
575
+ */
576
+ size: {
577
+ readonly type: PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
578
+ readonly required: false;
579
+ readonly validator: ((val: unknown) => boolean) | undefined;
580
+ __epPropKey: true;
581
+ };
582
+ /**
583
+ * configuration options, see the following table
584
+ */
585
+ props: {
586
+ type: PropType<Props>;
587
+ default: () => {
588
+ label: string;
589
+ value: string;
590
+ disabled: string;
591
+ options: string;
592
+ };
593
+ };
594
+ /**
595
+ * unique identity key name for value, required when value is an object
596
+ */
597
+ valueKey: {
598
+ type: StringConstructor;
599
+ default: string;
600
+ };
601
+ /**
602
+ * Controls whether the scrollbar is always displayed
603
+ */
604
+ scrollbarAlwaysOn: BooleanConstructor;
605
+ /**
606
+ * whether to trigger form validation
607
+ */
608
+ validateEvent: {
609
+ type: BooleanConstructor;
610
+ default: boolean;
611
+ };
612
+ /**
613
+ * offset of the dropdown
614
+ */
615
+ offset: {
616
+ type: NumberConstructor;
617
+ default: number;
618
+ };
619
+ /** whether to show the suffix icon during remote search */
620
+ remoteShowSuffix: BooleanConstructor;
621
+ /**
622
+ * Determines whether the arrow is displayed
623
+ */
624
+ showArrow: {
625
+ type: BooleanConstructor;
626
+ default: boolean;
627
+ };
628
+ /**
629
+ * position of dropdown
630
+ */
631
+ placement: {
632
+ type: PropType<Placement>;
633
+ default: string;
634
+ };
635
+ /**
636
+ * list of possible positions for dropdown
637
+ */
638
+ fallbackPlacements: {
639
+ type: PropType<Placement[]>;
640
+ default: string[];
641
+ };
642
+ /**
643
+ * tag type
644
+ */
645
+ tagType: {
646
+ default: string;
647
+ type: PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "primary" | "success" | "warning" | "info" | "danger", unknown>>;
648
+ required: false;
649
+ validator: ((val: unknown) => boolean) | undefined;
650
+ __epPropKey: true;
651
+ };
652
+ /**
653
+ * tag effect
654
+ */
655
+ tagEffect: {
656
+ default: string;
657
+ type: PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "plain" | "dark" | "light", unknown>>;
658
+ required: false;
659
+ validator: ((val: unknown) => boolean) | undefined;
660
+ __epPropKey: true;
661
+ };
662
+ /**
663
+ * tabindex for input
664
+ */
665
+ tabindex: {
666
+ type: (NumberConstructor | StringConstructor)[];
667
+ default: number;
668
+ };
669
+ /**
670
+ * which element the select dropdown appends to
671
+ */
672
+ appendTo: StringConstructor;
673
+ /** whether the dropdown width follows the input width, or a fixed width */
674
+ fitInputWidth: {
675
+ type: (NumberConstructor | BooleanConstructor)[];
676
+ default: boolean;
677
+ validator: (value: boolean | number) => boolean;
678
+ };
679
+ /** select suffix icon */
680
+ suffixIcon: {
681
+ type: PropType<string | Component>;
682
+ default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
683
+ };
684
+ };
685
+ export {};