yc-pro-components 0.0.85 → 1.0.0

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 (156) hide show
  1. package/es/components/index.d.ts +1 -0
  2. package/es/components/index.mjs +1 -0
  3. package/es/components/page/src/index.vue2.mjs +31 -13
  4. package/es/components/search/src/index.vue2.mjs +1 -0
  5. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  6. package/es/components/yc-plus-page/src/index.vue2.mjs +24 -13
  7. package/es/components/yc-plus-page/src/type.d.ts +5 -0
  8. package/es/components/yc-query-filter/index.d.ts +7 -0
  9. package/es/components/yc-query-filter/index.mjs +6 -0
  10. package/es/components/yc-query-filter/src/index.vue.d.ts +32 -0
  11. package/es/components/yc-query-filter/src/index.vue.mjs +6 -0
  12. package/es/components/yc-query-filter/src/index.vue2.mjs +662 -0
  13. package/es/components/yc-query-filter/src/serialize.d.ts +4 -0
  14. package/es/components/yc-query-filter/src/serialize.mjs +17 -0
  15. package/es/constants/index.d.ts +1 -0
  16. package/es/constants/index.mjs +1 -0
  17. package/es/constants/query-filter.d.ts +69 -0
  18. package/es/constants/query-filter.mjs +3 -0
  19. package/es/hooks/index.d.ts +1 -0
  20. package/es/hooks/index.mjs +1 -0
  21. package/es/hooks/useQueryFilterConfig.d.ts +11 -0
  22. package/es/hooks/useQueryFilterConfig.mjs +38 -0
  23. package/es/index.css +12 -12
  24. package/es/index.d.ts +1 -1
  25. package/es/index.mjs +3 -0
  26. package/es/locale/lang/en.d.ts +33 -0
  27. package/es/locale/lang/en.mjs +33 -0
  28. package/es/locale/lang/ja.d.ts +33 -0
  29. package/es/locale/lang/ja.mjs +33 -0
  30. package/es/locale/lang/ko.d.ts +33 -0
  31. package/es/locale/lang/ko.mjs +33 -0
  32. package/es/locale/lang/zh-cn.d.ts +33 -0
  33. package/es/locale/lang/zh-cn.mjs +33 -0
  34. package/es/locale/lang/zh-tw.d.ts +33 -0
  35. package/es/locale/lang/zh-tw.mjs +33 -0
  36. package/es/version.d.ts +1 -1
  37. package/es/version.mjs +1 -1
  38. package/es/yc-components/index.d.ts +1 -1
  39. package/es/yc-components/version.d.ts +1 -1
  40. package/index.css +1 -1
  41. package/index.js +1069 -213
  42. package/index.min.css +1 -1
  43. package/index.min.js +16 -12
  44. package/index.min.mjs +16 -12
  45. package/index.mjs +1065 -215
  46. package/lib/components/index.d.ts +1 -0
  47. package/lib/components/index.js +3 -0
  48. package/lib/components/page/src/index.vue2.js +31 -13
  49. package/lib/components/search/src/index.vue2.js +1 -0
  50. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  51. package/lib/components/yc-plus-page/src/index.vue2.js +26 -15
  52. package/lib/components/yc-plus-page/src/type.d.ts +5 -0
  53. package/lib/components/yc-query-filter/index.d.ts +7 -0
  54. package/lib/components/yc-query-filter/index.js +9 -0
  55. package/lib/components/yc-query-filter/src/index.vue.d.ts +32 -0
  56. package/lib/components/yc-query-filter/src/index.vue.js +10 -0
  57. package/lib/components/yc-query-filter/src/index.vue2.js +666 -0
  58. package/lib/components/yc-query-filter/src/serialize.d.ts +4 -0
  59. package/lib/components/yc-query-filter/src/serialize.js +20 -0
  60. package/lib/constants/index.d.ts +1 -0
  61. package/lib/constants/index.js +2 -0
  62. package/lib/constants/query-filter.d.ts +69 -0
  63. package/lib/constants/query-filter.js +5 -0
  64. package/lib/hooks/index.d.ts +1 -0
  65. package/lib/hooks/index.js +4 -0
  66. package/lib/hooks/useQueryFilterConfig.d.ts +11 -0
  67. package/lib/hooks/useQueryFilterConfig.js +42 -0
  68. package/lib/index.css +9 -9
  69. package/lib/index.d.ts +1 -1
  70. package/lib/index.js +9 -0
  71. package/lib/locale/lang/en.d.ts +33 -0
  72. package/lib/locale/lang/en.js +33 -0
  73. package/lib/locale/lang/ja.d.ts +33 -0
  74. package/lib/locale/lang/ja.js +33 -0
  75. package/lib/locale/lang/ko.d.ts +33 -0
  76. package/lib/locale/lang/ko.js +33 -0
  77. package/lib/locale/lang/zh-cn.d.ts +33 -0
  78. package/lib/locale/lang/zh-cn.js +33 -0
  79. package/lib/locale/lang/zh-tw.d.ts +33 -0
  80. package/lib/locale/lang/zh-tw.js +33 -0
  81. package/lib/version.d.ts +1 -1
  82. package/lib/version.js +1 -1
  83. package/lib/yc-components/index.d.ts +1 -1
  84. package/lib/yc-components/version.d.ts +1 -1
  85. package/locale/en.d.ts +33 -0
  86. package/locale/en.js +34 -1
  87. package/locale/en.min.js +1 -1
  88. package/locale/en.min.mjs +1 -1
  89. package/locale/en.mjs +34 -1
  90. package/locale/ja.d.ts +33 -0
  91. package/locale/ja.js +34 -1
  92. package/locale/ja.min.js +1 -1
  93. package/locale/ja.min.mjs +1 -1
  94. package/locale/ja.mjs +34 -1
  95. package/locale/ko.d.ts +33 -0
  96. package/locale/ko.js +34 -1
  97. package/locale/ko.min.js +1 -1
  98. package/locale/ko.min.mjs +1 -1
  99. package/locale/ko.mjs +34 -1
  100. package/locale/zh-cn.d.ts +33 -0
  101. package/locale/zh-cn.js +34 -1
  102. package/locale/zh-cn.min.js +1 -1
  103. package/locale/zh-cn.min.mjs +1 -1
  104. package/locale/zh-cn.mjs +34 -1
  105. package/locale/zh-tw.d.ts +33 -0
  106. package/locale/zh-tw.js +34 -1
  107. package/locale/zh-tw.min.js +1 -1
  108. package/locale/zh-tw.min.mjs +1 -1
  109. package/locale/zh-tw.mjs +34 -1
  110. package/package.json +1 -1
  111. package/theme-chalk/index.css +1 -1
  112. package/theme-chalk/plus-yc-query-filter.css +1 -0
  113. package/theme-chalk/src/index.scss +1 -0
  114. package/theme-chalk/src/yc-query-filter.scss +163 -0
  115. package/es/components/breadcrumb/index.d.ts +0 -6985
  116. package/es/components/breadcrumb/src/index.vue.d.ts +0 -6947
  117. package/es/components/dialog-form/index.d.ts +0 -314
  118. package/es/components/dialog-form/src/index.vue.d.ts +0 -214
  119. package/es/components/display-item/index.d.ts +0 -580
  120. package/es/components/display-item/src/index.vue.d.ts +0 -446
  121. package/es/components/drawer-form/index.d.ts +0 -1592
  122. package/es/components/drawer-form/src/index.vue.d.ts +0 -630
  123. package/es/components/form/index.d.ts +0 -870
  124. package/es/components/form/src/form-content.vue.d.ts +0 -598
  125. package/es/components/form/src/index.vue.d.ts +0 -382
  126. package/es/components/form-item/index.d.ts +0 -1492
  127. package/es/components/form-item/src/index.vue.d.ts +0 -550
  128. package/es/components/page/index.d.ts +0 -10746
  129. package/es/components/page/src/index.vue.d.ts +0 -3775
  130. package/es/components/search/index.d.ts +0 -2977
  131. package/es/components/search/src/index.vue.d.ts +0 -1021
  132. package/es/components/table/src/table-column.vue.d.ts +0 -624
  133. package/es/components/yc-drawer/store.d.ts +0 -2359
  134. package/es/components/yc-plus-page/src/index.vue.d.ts +0 -8250
  135. package/es/hooks/usePlusFormReset.d.ts +0 -4501
  136. package/lib/components/breadcrumb/index.d.ts +0 -6985
  137. package/lib/components/breadcrumb/src/index.vue.d.ts +0 -6947
  138. package/lib/components/dialog-form/index.d.ts +0 -314
  139. package/lib/components/dialog-form/src/index.vue.d.ts +0 -214
  140. package/lib/components/display-item/index.d.ts +0 -580
  141. package/lib/components/display-item/src/index.vue.d.ts +0 -446
  142. package/lib/components/drawer-form/index.d.ts +0 -1592
  143. package/lib/components/drawer-form/src/index.vue.d.ts +0 -630
  144. package/lib/components/form/index.d.ts +0 -870
  145. package/lib/components/form/src/form-content.vue.d.ts +0 -598
  146. package/lib/components/form/src/index.vue.d.ts +0 -382
  147. package/lib/components/form-item/index.d.ts +0 -1492
  148. package/lib/components/form-item/src/index.vue.d.ts +0 -550
  149. package/lib/components/page/index.d.ts +0 -10746
  150. package/lib/components/page/src/index.vue.d.ts +0 -3775
  151. package/lib/components/search/index.d.ts +0 -2977
  152. package/lib/components/search/src/index.vue.d.ts +0 -1021
  153. package/lib/components/table/src/table-column.vue.d.ts +0 -624
  154. package/lib/components/yc-drawer/store.d.ts +0 -2359
  155. package/lib/components/yc-plus-page/src/index.vue.d.ts +0 -8250
  156. package/lib/hooks/usePlusFormReset.d.ts +0 -4501
@@ -1,3775 +0,0 @@
1
- import { VirtualTableColumn } from 'yc-pro-components/es/components/virtual-table';
2
- import { Options } from 'sortablejs';
3
- import { LooseRequired } from '@vue/shared';
4
- import { Arrayable, EpPropMergeType } from 'element-plus/es/utils';
5
- import { PlusFormGroupRow, PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps, PlusFormSelfProps, ElementPlusFormProps } from 'packages/yc-components';
6
- import { RowProps, ColProps, FormItemRule, CardProps, FormInstance, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, PopperEffect, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, SelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TimeSelectProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, TableColumnCtx, TableInstance, TableV2Instance, TableProps } from 'element-plus';
7
- import { DefineComponent, Ref, ComponentInternalInstance, CSSProperties, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedRef, ShallowRef, PublicProps } from 'vue';
8
- import { PlusPaginationProps } from 'yc-pro-components/es/components/pagination';
9
- import { PlusTableProps, ActionBarProps, ColumnSetting, ButtonsCallBackParams, FormChangeCallBackParams, FilterTableHeaderEventType, TableFormRefRow, PlusTableSelfProps } from 'yc-pro-components/es/components/table';
10
- import { PlusSearchProps, PlusSearchSelfProps } from 'yc-pro-components/es/components/search';
11
- import { PlusColumn, PageInfo, RecordType, FieldValues, PlusCardProps, IntrinsicAttributes, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components/es/types';
12
-
13
- export interface PlusPageProps {
14
- /**
15
- * 配置
16
- */
17
- columns: PlusColumn[];
18
- /**
19
- *
20
- * params参数中一定会有 pageSize 和 page ,这两个参数是 plus-pro-components 的规范
21
- * @param params
22
- */
23
- request: (params: Partial<PageInfo> & RecordType) => Promise<{
24
- /** 数据 */
25
- data: RecordType[];
26
- /** 不传会使用 data 的长度,如果是分页一定要传*/
27
- total: number;
28
- }>;
29
- /**
30
- * PlusSearchProps
31
- */
32
- search?: false | Partial<PlusSearchProps & IntrinsicAttributes>;
33
- /**
34
- * PlusTableProps
35
- */
36
- table?: Partial<PlusTableProps & IntrinsicAttributes>;
37
- /**
38
- * request的 params 其他参数,默认会带pageSize,page和 PlusSearch组件中的值
39
- */
40
- params?: RecordType;
41
- /**
42
- * 对通过 request 获取的数据进行处理
43
- * @param data
44
- */
45
- postData?: <T = RecordType[]>(data: T[]) => T[];
46
- /**
47
- * 搜索之前进行一些修改
48
- * @param params
49
- */
50
- beforeSearchSubmit?: <T = RecordType>(params: T) => T;
51
- /**
52
- * 表格和搜索是否需要el-card 包裹 默认true
53
- */
54
- isCard?: boolean;
55
- /**
56
- * 搜索外层的el-card的props ,当isCard为true时生效
57
- */
58
- searchCardProps?: PlusCardProps;
59
- /**
60
- * 表格外层的el-card的props ,当isCard为true时生效
61
- */
62
- tableCardProps?: PlusCardProps;
63
- defaultPageInfo?: PageInfo;
64
- defaultPageSizeList?: number[];
65
- pagination?: false | Omit<PlusPaginationProps, 'total' | 'modelValue' | 'pageSizeList'>;
66
- /**
67
- * 组件渲染完成后是否立即调用getList
68
- */
69
- immediate?: boolean;
70
- /**
71
- * 搜索与表格分割线
72
- */
73
- dividerProps?: false | Partial<RecordType>;
74
- /**
75
- * 可以修改默认的分页参数
76
- */
77
- pageInfoMap?: {
78
- page?: string;
79
- pageSize?: string;
80
- };
81
- /**
82
- * 自定义的插槽是否对 PlusSearch 组件提供。当启用时,自定义的插槽 PlusTable 内的表单不生效
83
- * @version v0.1.25
84
- * @default false
85
- */
86
- searchSlot?: boolean;
87
- /**
88
- * 所有列字段为空时显示的默认文本(全局配置)
89
- * @version v0.2.0
90
- * @default "-"
91
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
92
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
93
- * @desc 仅对未定义 render/renderHTML 的字段生效
94
- */
95
- columnsEmptyText?: string;
96
- }
97
- export interface PlusPageEmits {
98
- (e: 'search', data: FieldValues): void;
99
- (e: 'reset', data: FieldValues): void;
100
- (e: 'paginationChange', pageInfo: PageInfo): void;
101
- /**
102
- * 数据加载失败时触发
103
- */
104
- (e: 'requestError', error: unknown): void;
105
- /**
106
- * 数据加载完成时触发
107
- */
108
- (e: 'requestComplete', tableData: RecordType[]): void;
109
- }
110
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPageProps>, {
111
- params: () => {};
112
- columns: () => never[];
113
- postData: undefined;
114
- beforeSearchSubmit: undefined;
115
- isCard: boolean;
116
- search: () => {};
117
- table: () => {};
118
- defaultPageInfo: () => {
119
- page: number;
120
- pageSize: number;
121
- };
122
- defaultPageSizeList: () => number[];
123
- searchCardProps: () => {};
124
- tableCardProps: () => {};
125
- /**
126
- * 分页组件的其他参数,不包含total,modelValue,pageSizeList
127
- */
128
- pagination: () => {};
129
- immediate: boolean;
130
- dividerProps: boolean;
131
- pageInfoMap: () => {
132
- page: string;
133
- pageSize: string;
134
- };
135
- searchSlot: boolean;
136
- columnsEmptyText: string;
137
- }>, {
138
- plusSearchInstance: Ref<({
139
- $: ComponentInternalInstance;
140
- $data: {};
141
- $props: Partial<{
142
- columns: PlusColumn[];
143
- layout: "grid" | "flex";
144
- modelValue: FieldValues;
145
- labelPosition: "top" | "right" | "left";
146
- inline: boolean;
147
- showNumber: number;
148
- ellipsis: boolean;
149
- defaultValues: FieldValues;
150
- rowProps: Partial< Mutable<RowProps> & {
151
- style?: CSSProperties | undefined;
152
- class?: any;
153
- } & RecordType>;
154
- colProps: Partial< Mutable<ColProps> & {
155
- style?: CSSProperties | undefined;
156
- class?: any;
157
- } & RecordType>;
158
- hasFooter: boolean;
159
- hasReset: boolean;
160
- resetText: string;
161
- hasUnfold: boolean;
162
- defaultUnfold: boolean;
163
- searchText: string;
164
- retractText: string;
165
- expandText: string;
166
- searchLoading: boolean;
167
- needValidate: boolean;
168
- searchIcon: Component | null;
169
- resetIcon: Component | null;
170
- }> & Omit<{
171
- readonly columns: PlusColumn[];
172
- readonly layout: "grid" | "flex";
173
- readonly modelValue: FieldValues;
174
- readonly inline: boolean;
175
- readonly showNumber: number;
176
- readonly ellipsis: boolean;
177
- readonly defaultValues: FieldValues;
178
- readonly rowProps: Partial< Mutable<RowProps> & {
179
- style?: CSSProperties | undefined;
180
- class?: any;
181
- } & RecordType>;
182
- readonly colProps: Partial< Mutable<ColProps> & {
183
- style?: CSSProperties | undefined;
184
- class?: any;
185
- } & RecordType>;
186
- readonly hasFooter: boolean;
187
- readonly hasReset: boolean;
188
- readonly resetText: string;
189
- readonly hasUnfold: boolean;
190
- readonly defaultUnfold: boolean;
191
- readonly searchText: string;
192
- readonly retractText: string;
193
- readonly expandText: string;
194
- readonly searchLoading: boolean;
195
- readonly needValidate: boolean;
196
- readonly labelPosition?: "top" | "right" | "left" | undefined;
197
- readonly searchIcon?: Component | null | undefined;
198
- readonly resetIcon?: Component | null | undefined;
199
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
200
- onReset?: ((values: FieldValues) => any) | undefined;
201
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
202
- onSearch?: ((values: FieldValues) => any) | undefined;
203
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
204
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
205
- columns: {
206
- type: PropType<PlusColumn[]>;
207
- default: () => never[];
208
- };
209
- layout: {
210
- type: PropType<"grid" | "flex">;
211
- default: "grid";
212
- };
213
- modelValue: {
214
- type: PropType<FieldValues>;
215
- default: () => {};
216
- };
217
- labelPosition: {
218
- type: PropType<"top" | "right" | "left">;
219
- default: undefined;
220
- };
221
- inline: {
222
- type: PropType<boolean>;
223
- default: boolean;
224
- };
225
- showNumber: {
226
- type: PropType<number>;
227
- default: number;
228
- };
229
- ellipsis: {
230
- type: PropType<boolean>;
231
- default: boolean;
232
- };
233
- defaultValues: {
234
- type: PropType<FieldValues>;
235
- default: () => {};
236
- };
237
- rowProps: {
238
- type: PropType<Partial< Mutable<RowProps> & {
239
- style?: CSSProperties | undefined;
240
- class?: any;
241
- } & RecordType>>;
242
- default: () => {
243
- gutter: number;
244
- };
245
- };
246
- colProps: {
247
- type: PropType<Partial< Mutable<ColProps> & {
248
- style?: CSSProperties | undefined;
249
- class?: any;
250
- } & RecordType>>;
251
- default: () => {
252
- xs: number;
253
- sm: number;
254
- md: number;
255
- lg: number;
256
- xl: number;
257
- };
258
- };
259
- hasFooter: {
260
- type: PropType<boolean>;
261
- default: boolean;
262
- };
263
- hasReset: {
264
- type: PropType<boolean>;
265
- default: boolean;
266
- };
267
- resetText: {
268
- type: PropType<string>;
269
- default: string;
270
- };
271
- hasUnfold: {
272
- type: PropType<boolean>;
273
- default: boolean;
274
- };
275
- defaultUnfold: {
276
- type: PropType<boolean>;
277
- default: boolean;
278
- };
279
- searchText: {
280
- type: PropType<string>;
281
- default: string;
282
- };
283
- retractText: {
284
- type: PropType<string>;
285
- default: string;
286
- };
287
- expandText: {
288
- type: PropType<string>;
289
- default: string;
290
- };
291
- searchLoading: {
292
- type: PropType<boolean>;
293
- default: boolean;
294
- };
295
- needValidate: {
296
- type: PropType<boolean>;
297
- default: boolean;
298
- };
299
- searchIcon: {
300
- type: PropType< Component | null>;
301
- default: undefined;
302
- };
303
- resetIcon: {
304
- type: PropType< Component | null>;
305
- default: undefined;
306
- };
307
- }>> & {
308
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
309
- onReset?: ((values: FieldValues) => any) | undefined;
310
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
311
- onSearch?: ((values: FieldValues) => any) | undefined;
312
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
313
- }, "columns" | "layout" | "modelValue" | "labelPosition" | "inline" | "showNumber" | "ellipsis" | "defaultValues" | "rowProps" | "colProps" | "hasFooter" | "hasReset" | "resetText" | "hasUnfold" | "defaultUnfold" | "searchText" | "retractText" | "expandText" | "searchLoading" | "needValidate" | "searchIcon" | "resetIcon">;
314
- $attrs: {
315
- [x: string]: unknown;
316
- };
317
- $refs: {
318
- [x: string]: unknown;
319
- };
320
- $slots: Readonly<{
321
- [name: string]: Slot<any> | undefined;
322
- }>;
323
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
324
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
325
- $emit: ((event: "search", values: FieldValues) => void) & ((event: "reset", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "collapse", isShowUnfold: boolean) => void);
326
- $el: any;
327
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
328
- columns: {
329
- type: PropType<PlusColumn[]>;
330
- default: () => never[];
331
- };
332
- layout: {
333
- type: PropType<"grid" | "flex">;
334
- default: "grid";
335
- };
336
- modelValue: {
337
- type: PropType<FieldValues>;
338
- default: () => {};
339
- };
340
- labelPosition: {
341
- type: PropType<"top" | "right" | "left">;
342
- default: undefined;
343
- };
344
- inline: {
345
- type: PropType<boolean>;
346
- default: boolean;
347
- };
348
- showNumber: {
349
- type: PropType<number>;
350
- default: number;
351
- };
352
- ellipsis: {
353
- type: PropType<boolean>;
354
- default: boolean;
355
- };
356
- defaultValues: {
357
- type: PropType<FieldValues>;
358
- default: () => {};
359
- };
360
- rowProps: {
361
- type: PropType<Partial< Mutable<RowProps> & {
362
- style?: CSSProperties | undefined;
363
- class?: any;
364
- } & RecordType>>;
365
- default: () => {
366
- gutter: number;
367
- };
368
- };
369
- colProps: {
370
- type: PropType<Partial< Mutable<ColProps> & {
371
- style?: CSSProperties | undefined;
372
- class?: any;
373
- } & RecordType>>;
374
- default: () => {
375
- xs: number;
376
- sm: number;
377
- md: number;
378
- lg: number;
379
- xl: number;
380
- };
381
- };
382
- hasFooter: {
383
- type: PropType<boolean>;
384
- default: boolean;
385
- };
386
- hasReset: {
387
- type: PropType<boolean>;
388
- default: boolean;
389
- };
390
- resetText: {
391
- type: PropType<string>;
392
- default: string;
393
- };
394
- hasUnfold: {
395
- type: PropType<boolean>;
396
- default: boolean;
397
- };
398
- defaultUnfold: {
399
- type: PropType<boolean>;
400
- default: boolean;
401
- };
402
- searchText: {
403
- type: PropType<string>;
404
- default: string;
405
- };
406
- retractText: {
407
- type: PropType<string>;
408
- default: string;
409
- };
410
- expandText: {
411
- type: PropType<string>;
412
- default: string;
413
- };
414
- searchLoading: {
415
- type: PropType<boolean>;
416
- default: boolean;
417
- };
418
- needValidate: {
419
- type: PropType<boolean>;
420
- default: boolean;
421
- };
422
- searchIcon: {
423
- type: PropType< Component | null>;
424
- default: undefined;
425
- };
426
- resetIcon: {
427
- type: PropType< Component | null>;
428
- default: undefined;
429
- };
430
- }>> & {
431
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
432
- onReset?: ((values: FieldValues) => any) | undefined;
433
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
434
- onSearch?: ((values: FieldValues) => any) | undefined;
435
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
436
- }, {
437
- plusFormInstance: Ref<({
438
- $: ComponentInternalInstance;
439
- $data: {};
440
- $props: Partial<{
441
- collapseDuration: number;
442
- collapseTransition: boolean;
443
- columns: PlusColumn[];
444
- group: false | PlusFormGroupRow[];
445
- layout: "grid" | "flex";
446
- modelValue: FieldValues;
447
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
448
- labelPosition: "top" | "right" | "left";
449
- labelWidth: string | number;
450
- labelSuffix: string;
451
- ellipsis: boolean;
452
- defaultValues: FieldValues;
453
- rowProps: Partial< Mutable<RowProps> & {
454
- style?: CSSProperties | undefined;
455
- class?: any;
456
- } & RecordType>;
457
- colProps: Partial< Mutable<ColProps> & {
458
- style?: CSSProperties | undefined;
459
- class?: any;
460
- } & RecordType>;
461
- hasErrorTip: boolean;
462
- hasFooter: boolean;
463
- hasReset: boolean;
464
- hasLabel: boolean;
465
- submitText: string;
466
- resetText: string;
467
- submitLoading: boolean;
468
- footerAlign: "right" | "left" | "center";
469
- cardProps: Partial< Mutable<CardProps> & {
470
- style?: CSSProperties | undefined;
471
- class?: any;
472
- } & RecordType>;
473
- prevent: boolean;
474
- clearable: boolean;
475
- }> & Omit<{
476
- readonly columns: PlusColumn[];
477
- readonly group: false | PlusFormGroupRow[];
478
- readonly modelValue: FieldValues;
479
- readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
480
- readonly labelPosition: "top" | "right" | "left";
481
- readonly labelWidth: string | number;
482
- readonly labelSuffix: string;
483
- readonly ellipsis: boolean;
484
- readonly defaultValues: FieldValues;
485
- readonly rowProps: Partial< Mutable<RowProps> & {
486
- style?: CSSProperties | undefined;
487
- class?: any;
488
- } & RecordType>;
489
- readonly colProps: Partial< Mutable<ColProps> & {
490
- style?: CSSProperties | undefined;
491
- class?: any;
492
- } & RecordType>;
493
- readonly hasErrorTip: boolean;
494
- readonly hasFooter: boolean;
495
- readonly hasReset: boolean;
496
- readonly hasLabel: boolean;
497
- readonly submitText: string;
498
- readonly resetText: string;
499
- readonly submitLoading: boolean;
500
- readonly footerAlign: "right" | "left" | "center";
501
- readonly cardProps: Partial< Mutable<CardProps> & {
502
- style?: CSSProperties | undefined;
503
- class?: any;
504
- } & RecordType>;
505
- readonly prevent: boolean;
506
- readonly clearable: boolean;
507
- readonly collapseDuration?: number | undefined;
508
- readonly collapseTransition?: boolean | undefined;
509
- readonly layout?: "grid" | "flex" | undefined;
510
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
511
- onReset?: ((values: FieldValues) => any) | undefined;
512
- onSubmit?: ((values: FieldValues) => any) | undefined;
513
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
514
- onValidate?: ((...args: any[]) => any) | undefined;
515
- onSubmitError?: ((errors: unknown) => any) | undefined;
516
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
517
- collapseDuration: {
518
- type: PropType<number>;
519
- default: undefined;
520
- };
521
- collapseTransition: {
522
- type: PropType<boolean>;
523
- default: undefined;
524
- };
525
- columns: {
526
- type: PropType<PlusColumn[]>;
527
- default: () => never[];
528
- };
529
- group: {
530
- type: PropType<false | PlusFormGroupRow[]>;
531
- default: boolean;
532
- };
533
- layout: {
534
- type: PropType<"grid" | "flex">;
535
- default: undefined;
536
- };
537
- modelValue: {
538
- type: PropType<FieldValues>;
539
- default: () => {};
540
- };
541
- rules: {
542
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
543
- default: () => {};
544
- };
545
- labelPosition: {
546
- type: PropType<"top" | "right" | "left">;
547
- default: string;
548
- };
549
- labelWidth: {
550
- type: PropType<string | number>;
551
- default: string;
552
- };
553
- labelSuffix: {
554
- type: PropType<string>;
555
- default: string;
556
- };
557
- ellipsis: {
558
- type: PropType<boolean>;
559
- default: boolean;
560
- };
561
- defaultValues: {
562
- type: PropType<FieldValues>;
563
- default: () => {};
564
- };
565
- rowProps: {
566
- type: PropType<Partial< Mutable<RowProps> & {
567
- style?: CSSProperties | undefined;
568
- class?: any;
569
- } & RecordType>>;
570
- default: () => {};
571
- };
572
- colProps: {
573
- type: PropType<Partial< Mutable<ColProps> & {
574
- style?: CSSProperties | undefined;
575
- class?: any;
576
- } & RecordType>>;
577
- default: () => {};
578
- };
579
- hasErrorTip: {
580
- type: PropType<boolean>;
581
- default: boolean;
582
- };
583
- hasFooter: {
584
- type: PropType<boolean>;
585
- default: boolean;
586
- };
587
- hasReset: {
588
- type: PropType<boolean>;
589
- default: boolean;
590
- };
591
- hasLabel: {
592
- type: PropType<boolean>;
593
- default: boolean;
594
- };
595
- submitText: {
596
- type: PropType<string>;
597
- default: string;
598
- };
599
- resetText: {
600
- type: PropType<string>;
601
- default: string;
602
- };
603
- submitLoading: {
604
- type: PropType<boolean>;
605
- default: boolean;
606
- };
607
- footerAlign: {
608
- type: PropType<"right" | "left" | "center">;
609
- default: string;
610
- };
611
- cardProps: {
612
- type: PropType<Partial< Mutable<CardProps> & {
613
- style?: CSSProperties | undefined;
614
- class?: any;
615
- } & RecordType>>;
616
- default: () => {};
617
- };
618
- prevent: {
619
- type: PropType<boolean>;
620
- default: boolean;
621
- };
622
- clearable: {
623
- type: PropType<boolean>;
624
- default: boolean;
625
- };
626
- }>> & {
627
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
628
- onReset?: ((values: FieldValues) => any) | undefined;
629
- onSubmit?: ((values: FieldValues) => any) | undefined;
630
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
631
- onValidate?: ((...args: any[]) => any) | undefined;
632
- onSubmitError?: ((errors: unknown) => any) | undefined;
633
- }, "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "ellipsis" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
634
- $attrs: {
635
- [x: string]: unknown;
636
- };
637
- $refs: {
638
- [x: string]: unknown;
639
- };
640
- $slots: Readonly<{
641
- [name: string]: Slot<any> | undefined;
642
- }>;
643
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
644
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
645
- $emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
646
- $el: any;
647
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
648
- collapseDuration: {
649
- type: PropType<number>;
650
- default: undefined;
651
- };
652
- collapseTransition: {
653
- type: PropType<boolean>;
654
- default: undefined;
655
- };
656
- columns: {
657
- type: PropType<PlusColumn[]>;
658
- default: () => never[];
659
- };
660
- group: {
661
- type: PropType<false | PlusFormGroupRow[]>;
662
- default: boolean;
663
- };
664
- layout: {
665
- type: PropType<"grid" | "flex">;
666
- default: undefined;
667
- };
668
- modelValue: {
669
- type: PropType<FieldValues>;
670
- default: () => {};
671
- };
672
- rules: {
673
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
674
- default: () => {};
675
- };
676
- labelPosition: {
677
- type: PropType<"top" | "right" | "left">;
678
- default: string;
679
- };
680
- labelWidth: {
681
- type: PropType<string | number>;
682
- default: string;
683
- };
684
- labelSuffix: {
685
- type: PropType<string>;
686
- default: string;
687
- };
688
- ellipsis: {
689
- type: PropType<boolean>;
690
- default: boolean;
691
- };
692
- defaultValues: {
693
- type: PropType<FieldValues>;
694
- default: () => {};
695
- };
696
- rowProps: {
697
- type: PropType<Partial< Mutable<RowProps> & {
698
- style?: CSSProperties | undefined;
699
- class?: any;
700
- } & RecordType>>;
701
- default: () => {};
702
- };
703
- colProps: {
704
- type: PropType<Partial< Mutable<ColProps> & {
705
- style?: CSSProperties | undefined;
706
- class?: any;
707
- } & RecordType>>;
708
- default: () => {};
709
- };
710
- hasErrorTip: {
711
- type: PropType<boolean>;
712
- default: boolean;
713
- };
714
- hasFooter: {
715
- type: PropType<boolean>;
716
- default: boolean;
717
- };
718
- hasReset: {
719
- type: PropType<boolean>;
720
- default: boolean;
721
- };
722
- hasLabel: {
723
- type: PropType<boolean>;
724
- default: boolean;
725
- };
726
- submitText: {
727
- type: PropType<string>;
728
- default: string;
729
- };
730
- resetText: {
731
- type: PropType<string>;
732
- default: string;
733
- };
734
- submitLoading: {
735
- type: PropType<boolean>;
736
- default: boolean;
737
- };
738
- footerAlign: {
739
- type: PropType<"right" | "left" | "center">;
740
- default: string;
741
- };
742
- cardProps: {
743
- type: PropType<Partial< Mutable<CardProps> & {
744
- style?: CSSProperties | undefined;
745
- class?: any;
746
- } & RecordType>>;
747
- default: () => {};
748
- };
749
- prevent: {
750
- type: PropType<boolean>;
751
- default: boolean;
752
- };
753
- clearable: {
754
- type: PropType<boolean>;
755
- default: boolean;
756
- };
757
- }>> & {
758
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
759
- onReset?: ((values: FieldValues) => any) | undefined;
760
- onSubmit?: ((values: FieldValues) => any) | undefined;
761
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
762
- onValidate?: ((...args: any[]) => any) | undefined;
763
- onSubmitError?: ((errors: unknown) => any) | undefined;
764
- }, {
765
- formInstance: Ref< FormInstance | null>;
766
- handleSubmit: () => void;
767
- handleReset: () => void;
768
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
769
- "update:modelValue": (values: FieldValues) => void;
770
- submit: (values: FieldValues) => void;
771
- change: (values: FieldValues, column: PlusColumn) => void;
772
- reset: (values: FieldValues) => void;
773
- submitError: (errors: unknown) => void;
774
- validate: (...args: any[]) => void;
775
- }, string, {
776
- collapseDuration: number;
777
- collapseTransition: boolean;
778
- columns: PlusColumn[];
779
- group: false | PlusFormGroupRow[];
780
- layout: "grid" | "flex";
781
- modelValue: FieldValues;
782
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
783
- labelPosition: "top" | "right" | "left";
784
- labelWidth: string | number;
785
- labelSuffix: string;
786
- ellipsis: boolean;
787
- defaultValues: FieldValues;
788
- rowProps: Partial< Mutable<RowProps> & {
789
- style?: CSSProperties | undefined;
790
- class?: any;
791
- } & RecordType>;
792
- colProps: Partial< Mutable<ColProps> & {
793
- style?: CSSProperties | undefined;
794
- class?: any;
795
- } & RecordType>;
796
- hasErrorTip: boolean;
797
- hasFooter: boolean;
798
- hasReset: boolean;
799
- hasLabel: boolean;
800
- submitText: string;
801
- resetText: string;
802
- submitLoading: boolean;
803
- footerAlign: "right" | "left" | "center";
804
- cardProps: Partial< Mutable<CardProps> & {
805
- style?: CSSProperties | undefined;
806
- class?: any;
807
- } & RecordType>;
808
- prevent: boolean;
809
- clearable: boolean;
810
- }, {}, string, {}> & {
811
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
812
- created?: ((() => void) | (() => void)[]) | undefined;
813
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
814
- mounted?: ((() => void) | (() => void)[]) | undefined;
815
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
816
- updated?: ((() => void) | (() => void)[]) | undefined;
817
- activated?: ((() => void) | (() => void)[]) | undefined;
818
- deactivated?: ((() => void) | (() => void)[]) | undefined;
819
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
820
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
821
- destroyed?: ((() => void) | (() => void)[]) | undefined;
822
- unmounted?: ((() => void) | (() => void)[]) | undefined;
823
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
824
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
825
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
826
- };
827
- $forceUpdate: () => void;
828
- $nextTick: nextTick;
829
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
830
- } & Omit<Readonly< ExtractPropTypes<{
831
- collapseDuration: {
832
- type: PropType<number>;
833
- default: undefined;
834
- };
835
- collapseTransition: {
836
- type: PropType<boolean>;
837
- default: undefined;
838
- };
839
- columns: {
840
- type: PropType<PlusColumn[]>;
841
- default: () => never[];
842
- };
843
- group: {
844
- type: PropType<false | PlusFormGroupRow[]>;
845
- default: boolean;
846
- };
847
- layout: {
848
- type: PropType<"grid" | "flex">;
849
- default: undefined;
850
- };
851
- modelValue: {
852
- type: PropType<FieldValues>;
853
- default: () => {};
854
- };
855
- rules: {
856
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
857
- default: () => {};
858
- };
859
- labelPosition: {
860
- type: PropType<"top" | "right" | "left">;
861
- default: string;
862
- };
863
- labelWidth: {
864
- type: PropType<string | number>;
865
- default: string;
866
- };
867
- labelSuffix: {
868
- type: PropType<string>;
869
- default: string;
870
- };
871
- ellipsis: {
872
- type: PropType<boolean>;
873
- default: boolean;
874
- };
875
- defaultValues: {
876
- type: PropType<FieldValues>;
877
- default: () => {};
878
- };
879
- rowProps: {
880
- type: PropType<Partial< Mutable<RowProps> & {
881
- style?: CSSProperties | undefined;
882
- class?: any;
883
- } & RecordType>>;
884
- default: () => {};
885
- };
886
- colProps: {
887
- type: PropType<Partial< Mutable<ColProps> & {
888
- style?: CSSProperties | undefined;
889
- class?: any;
890
- } & RecordType>>;
891
- default: () => {};
892
- };
893
- hasErrorTip: {
894
- type: PropType<boolean>;
895
- default: boolean;
896
- };
897
- hasFooter: {
898
- type: PropType<boolean>;
899
- default: boolean;
900
- };
901
- hasReset: {
902
- type: PropType<boolean>;
903
- default: boolean;
904
- };
905
- hasLabel: {
906
- type: PropType<boolean>;
907
- default: boolean;
908
- };
909
- submitText: {
910
- type: PropType<string>;
911
- default: string;
912
- };
913
- resetText: {
914
- type: PropType<string>;
915
- default: string;
916
- };
917
- submitLoading: {
918
- type: PropType<boolean>;
919
- default: boolean;
920
- };
921
- footerAlign: {
922
- type: PropType<"right" | "left" | "center">;
923
- default: string;
924
- };
925
- cardProps: {
926
- type: PropType<Partial< Mutable<CardProps> & {
927
- style?: CSSProperties | undefined;
928
- class?: any;
929
- } & RecordType>>;
930
- default: () => {};
931
- };
932
- prevent: {
933
- type: PropType<boolean>;
934
- default: boolean;
935
- };
936
- clearable: {
937
- type: PropType<boolean>;
938
- default: boolean;
939
- };
940
- }>> & {
941
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
942
- onReset?: ((values: FieldValues) => any) | undefined;
943
- onSubmit?: ((values: FieldValues) => any) | undefined;
944
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
945
- onValidate?: ((...args: any[]) => any) | undefined;
946
- onSubmitError?: ((errors: unknown) => any) | undefined;
947
- }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
948
- formInstance: Ref< FormInstance | null>;
949
- handleSubmit: () => void;
950
- handleReset: () => void;
951
- }> & {} & ComponentCustomProperties & {} & {
952
- $slots: Partial<Record<string, (_: {
953
- index: number;
954
- title: string | ComputedRef<string>;
955
- name?: string | undefined;
956
- icon?: Component | undefined;
957
- cardProps?: Partial< Mutable<CardProps> & {
958
- style?: CSSProperties | undefined;
959
- class?: any;
960
- } & RecordType> | undefined;
961
- hideInGroup?: boolean | ComputedRef<boolean> | undefined;
962
- columns?: PlusColumn[] | undefined;
963
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
964
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
965
- readonly label: string | ComputedRef<string>;
966
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
967
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
968
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
969
- style?: CSSProperties | undefined;
970
- class?: any;
971
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
972
- style?: CSSProperties | undefined;
973
- class?: any;
974
- } & RecordType>>;
975
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
976
- [key: string]: any;
977
- style?: CSSProperties | undefined;
978
- }>;
979
- readonly fieldProps: PropsItemType<Partial<{
980
- [index: string]: any;
981
- [index: number]: any;
982
- [index: symbol]: any;
983
- class: any;
984
- style: CSSProperties;
985
- modelModifiers: {
986
- [index: string]: any;
987
- lazy?: boolean | undefined;
988
- trim?: boolean | undefined;
989
- number?: boolean | undefined;
990
- };
991
- rows: number;
992
- autocomplete: string;
993
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
994
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
995
- step: string | number;
996
- /**
997
- * 所有列字段为空时显示的默认文本(全局配置)
998
- * @version v0.2.0
999
- * @default "-"
1000
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
1001
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
1002
- * @desc 仅对未定义 render/renderHTML 的字段生效
1003
- */
1004
- format: string | ProgressFn | undefined;
1005
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1006
- id: string | [string, string];
1007
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
1008
- height: string | number;
1009
- autosize: InputAutoSize;
1010
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
1011
- readonly options: OptionsType;
1012
- readonly fieldSlots: {
1013
- [slotName: string]: (data?: any) => RenderTypes;
1014
- };
1015
- readonly valueType: TableValueType | FormItemValueType;
1016
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1017
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1018
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1019
- readonly renderErrorMessage: ((props: PlusColumn & {
1020
- value?: FieldValueType;
1021
- error?: string | undefined;
1022
- label?: string | undefined;
1023
- }) => RenderTypes) | undefined;
1024
- readonly optionsMap: {
1025
- label?: string | undefined;
1026
- value?: string | undefined;
1027
- } | undefined;
1028
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1029
- store?: any;
1030
- method?: string | undefined;
1031
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1032
- dictCode?: string | undefined;
1033
- } | undefined;
1034
- readonly clearable: boolean;
1035
- readonly ellipsis: boolean;
1036
- readonly index: number;
1037
- } & {
1038
- readonly ellipsis: boolean;
1039
- readonly clearable: boolean;
1040
- };
1041
- label: string;
1042
- fieldProps: RecordType;
1043
- formItemProps: RecordType;
1044
- options: OptionsRow<undefined>[];
1045
- fieldInstance?: any;
1046
- valueIsReady?: Ref<boolean> | undefined;
1047
- prop: string;
1048
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1049
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1050
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
1051
- style?: CSSProperties | undefined;
1052
- class?: any;
1053
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1054
- style?: CSSProperties | undefined;
1055
- class?: any;
1056
- } & RecordType>>;
1057
- fieldSlots: {
1058
- [slotName: string]: (data?: any) => RenderTypes;
1059
- };
1060
- valueType: TableValueType | FormItemValueType;
1061
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1062
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1063
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1064
- renderErrorMessage: ((props: PlusColumn & {
1065
- value?: FieldValueType;
1066
- error?: string | undefined;
1067
- label?: string | undefined;
1068
- }) => RenderTypes) | undefined;
1069
- optionsMap: {
1070
- label?: string | undefined;
1071
- value?: string | undefined;
1072
- } | undefined;
1073
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1074
- store?: any;
1075
- method?: string | undefined;
1076
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1077
- dictCode?: string | undefined;
1078
- } | undefined;
1079
- clearable: boolean;
1080
- ellipsis: boolean;
1081
- index: number;
1082
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1083
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1084
- readonly label: string | ComputedRef<string>;
1085
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1086
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1087
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
1088
- style?: CSSProperties | undefined;
1089
- class?: any;
1090
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1091
- style?: CSSProperties | undefined;
1092
- class?: any;
1093
- } & RecordType>>;
1094
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
1095
- [key: string]: any;
1096
- style?: CSSProperties | undefined;
1097
- }>;
1098
- readonly fieldProps: PropsItemType<Partial<{
1099
- [index: string]: any;
1100
- [index: number]: any;
1101
- [index: symbol]: any;
1102
- class: any;
1103
- style: CSSProperties;
1104
- modelModifiers: {
1105
- [index: string]: any;
1106
- lazy?: boolean | undefined;
1107
- trim?: boolean | undefined;
1108
- number?: boolean | undefined;
1109
- };
1110
- rows: number;
1111
- autocomplete: string;
1112
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1113
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1114
- step: string | number;
1115
- /**
1116
- * 所有列字段为空时显示的默认文本(全局配置)
1117
- * @version v0.2.0
1118
- * @default "-"
1119
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
1120
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
1121
- * @desc 仅对未定义 render/renderHTML 的字段生效
1122
- */
1123
- format: string | ProgressFn | undefined;
1124
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1125
- id: string | [string, string];
1126
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
1127
- height: string | number;
1128
- autosize: InputAutoSize;
1129
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
1130
- readonly options: OptionsType;
1131
- readonly fieldSlots: {
1132
- [slotName: string]: (data?: any) => RenderTypes;
1133
- };
1134
- readonly valueType: TableValueType | FormItemValueType;
1135
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1136
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1137
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1138
- readonly renderErrorMessage: ((props: PlusColumn & {
1139
- value?: FieldValueType;
1140
- error?: string | undefined;
1141
- label?: string | undefined;
1142
- }) => RenderTypes) | undefined;
1143
- readonly optionsMap: {
1144
- label?: string | undefined;
1145
- value?: string | undefined;
1146
- } | undefined;
1147
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1148
- store?: any;
1149
- method?: string | undefined;
1150
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1151
- dictCode?: string | undefined;
1152
- } | undefined;
1153
- readonly clearable: boolean;
1154
- readonly ellipsis: boolean;
1155
- readonly index: number;
1156
- } & {
1157
- readonly ellipsis: boolean;
1158
- readonly clearable: boolean;
1159
- };
1160
- label: string;
1161
- fieldProps: RecordType;
1162
- formItemProps: RecordType;
1163
- options: OptionsRow<undefined>[];
1164
- fieldInstance?: any;
1165
- valueIsReady?: Ref<boolean> | undefined;
1166
- prop: string;
1167
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1168
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1169
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
1170
- style?: CSSProperties | undefined;
1171
- class?: any;
1172
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1173
- style?: CSSProperties | undefined;
1174
- class?: any;
1175
- } & RecordType>>;
1176
- fieldSlots: {
1177
- [slotName: string]: (data?: any) => RenderTypes;
1178
- };
1179
- valueType: TableValueType | FormItemValueType;
1180
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1181
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1182
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1183
- renderErrorMessage: ((props: PlusColumn & {
1184
- value?: FieldValueType;
1185
- error?: string | undefined;
1186
- label?: string | undefined;
1187
- }) => RenderTypes) | undefined;
1188
- optionsMap: {
1189
- label?: string | undefined;
1190
- value?: string | undefined;
1191
- } | undefined;
1192
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1193
- store?: any;
1194
- method?: string | undefined;
1195
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1196
- dictCode?: string | undefined;
1197
- } | undefined;
1198
- clearable: boolean;
1199
- ellipsis: boolean;
1200
- index: number;
1201
- }) => any>> & {
1202
- default?(_: {}): any;
1203
- "group-header"?(_: {
1204
- title: string;
1205
- columns: PlusColumn[] | undefined;
1206
- icon: Component | undefined;
1207
- index: number;
1208
- }): any;
1209
- footer?(_: {
1210
- handleReset: () => void;
1211
- handleSubmit: () => void;
1212
- }): any;
1213
- };
1214
- }) | null | undefined>;
1215
- handleReset: () => void;
1216
- handleSearch: () => void;
1217
- handleUnfold: (e: MouseEvent) => void;
1218
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1219
- "update:modelValue": (values: FieldValues) => void;
1220
- search: (values: FieldValues) => void;
1221
- change: (values: FieldValues, column: PlusColumn) => void;
1222
- reset: (values: FieldValues) => void;
1223
- collapse: (isShowUnfold: boolean) => void;
1224
- }, string, {
1225
- columns: PlusColumn[];
1226
- layout: "grid" | "flex";
1227
- modelValue: FieldValues;
1228
- labelPosition: "top" | "right" | "left";
1229
- inline: boolean;
1230
- showNumber: number;
1231
- ellipsis: boolean;
1232
- defaultValues: FieldValues;
1233
- rowProps: Partial< Mutable<RowProps> & {
1234
- style?: CSSProperties | undefined;
1235
- class?: any;
1236
- } & RecordType>;
1237
- colProps: Partial< Mutable<ColProps> & {
1238
- style?: CSSProperties | undefined;
1239
- class?: any;
1240
- } & RecordType>;
1241
- hasFooter: boolean;
1242
- hasReset: boolean;
1243
- resetText: string;
1244
- hasUnfold: boolean;
1245
- defaultUnfold: boolean;
1246
- searchText: string;
1247
- retractText: string;
1248
- expandText: string;
1249
- searchLoading: boolean;
1250
- needValidate: boolean;
1251
- searchIcon: Component | null;
1252
- resetIcon: Component | null;
1253
- }, {}, string, {}> & {
1254
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1255
- created?: ((() => void) | (() => void)[]) | undefined;
1256
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
1257
- mounted?: ((() => void) | (() => void)[]) | undefined;
1258
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1259
- updated?: ((() => void) | (() => void)[]) | undefined;
1260
- activated?: ((() => void) | (() => void)[]) | undefined;
1261
- deactivated?: ((() => void) | (() => void)[]) | undefined;
1262
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1263
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1264
- destroyed?: ((() => void) | (() => void)[]) | undefined;
1265
- unmounted?: ((() => void) | (() => void)[]) | undefined;
1266
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1267
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1268
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
1269
- };
1270
- $forceUpdate: () => void;
1271
- $nextTick: nextTick;
1272
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1273
- } & Omit<Readonly< ExtractPropTypes<{
1274
- columns: {
1275
- type: PropType<PlusColumn[]>;
1276
- default: () => never[];
1277
- };
1278
- layout: {
1279
- type: PropType<"grid" | "flex">;
1280
- default: "grid";
1281
- };
1282
- modelValue: {
1283
- type: PropType<FieldValues>;
1284
- default: () => {};
1285
- };
1286
- labelPosition: {
1287
- type: PropType<"top" | "right" | "left">;
1288
- default: undefined;
1289
- };
1290
- inline: {
1291
- type: PropType<boolean>;
1292
- default: boolean;
1293
- };
1294
- showNumber: {
1295
- type: PropType<number>;
1296
- default: number;
1297
- };
1298
- ellipsis: {
1299
- type: PropType<boolean>;
1300
- default: boolean;
1301
- };
1302
- defaultValues: {
1303
- type: PropType<FieldValues>;
1304
- default: () => {};
1305
- };
1306
- rowProps: {
1307
- type: PropType<Partial< Mutable<RowProps> & {
1308
- style?: CSSProperties | undefined;
1309
- class?: any;
1310
- } & RecordType>>;
1311
- default: () => {
1312
- gutter: number;
1313
- };
1314
- };
1315
- colProps: {
1316
- type: PropType<Partial< Mutable<ColProps> & {
1317
- style?: CSSProperties | undefined;
1318
- class?: any;
1319
- } & RecordType>>;
1320
- default: () => {
1321
- xs: number;
1322
- sm: number;
1323
- md: number;
1324
- lg: number;
1325
- xl: number;
1326
- };
1327
- };
1328
- hasFooter: {
1329
- type: PropType<boolean>;
1330
- default: boolean;
1331
- };
1332
- hasReset: {
1333
- type: PropType<boolean>;
1334
- default: boolean;
1335
- };
1336
- resetText: {
1337
- type: PropType<string>;
1338
- default: string;
1339
- };
1340
- hasUnfold: {
1341
- type: PropType<boolean>;
1342
- default: boolean;
1343
- };
1344
- defaultUnfold: {
1345
- type: PropType<boolean>;
1346
- default: boolean;
1347
- };
1348
- searchText: {
1349
- type: PropType<string>;
1350
- default: string;
1351
- };
1352
- retractText: {
1353
- type: PropType<string>;
1354
- default: string;
1355
- };
1356
- expandText: {
1357
- type: PropType<string>;
1358
- default: string;
1359
- };
1360
- searchLoading: {
1361
- type: PropType<boolean>;
1362
- default: boolean;
1363
- };
1364
- needValidate: {
1365
- type: PropType<boolean>;
1366
- default: boolean;
1367
- };
1368
- searchIcon: {
1369
- type: PropType< Component | null>;
1370
- default: undefined;
1371
- };
1372
- resetIcon: {
1373
- type: PropType< Component | null>;
1374
- default: undefined;
1375
- };
1376
- }>> & {
1377
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1378
- onReset?: ((values: FieldValues) => any) | undefined;
1379
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1380
- onSearch?: ((values: FieldValues) => any) | undefined;
1381
- onCollapse?: ((isShowUnfold: boolean) => any) | undefined;
1382
- }, "handleReset" | "plusFormInstance" | "handleSearch" | "handleUnfold"> & ShallowUnwrapRef<{
1383
- plusFormInstance: Ref<({
1384
- $: ComponentInternalInstance;
1385
- $data: {};
1386
- $props: Partial<{
1387
- collapseDuration: number;
1388
- collapseTransition: boolean;
1389
- columns: PlusColumn[];
1390
- group: false | PlusFormGroupRow[];
1391
- layout: "grid" | "flex";
1392
- modelValue: FieldValues;
1393
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1394
- labelPosition: "top" | "right" | "left";
1395
- labelWidth: string | number;
1396
- labelSuffix: string;
1397
- ellipsis: boolean;
1398
- defaultValues: FieldValues;
1399
- rowProps: Partial< Mutable<RowProps> & {
1400
- style?: CSSProperties | undefined;
1401
- class?: any;
1402
- } & RecordType>;
1403
- colProps: Partial< Mutable<ColProps> & {
1404
- style?: CSSProperties | undefined;
1405
- class?: any;
1406
- } & RecordType>;
1407
- hasErrorTip: boolean;
1408
- hasFooter: boolean;
1409
- hasReset: boolean;
1410
- hasLabel: boolean;
1411
- submitText: string;
1412
- resetText: string;
1413
- submitLoading: boolean;
1414
- footerAlign: "right" | "left" | "center";
1415
- cardProps: Partial< Mutable<CardProps> & {
1416
- style?: CSSProperties | undefined;
1417
- class?: any;
1418
- } & RecordType>;
1419
- prevent: boolean;
1420
- clearable: boolean;
1421
- }> & Omit<{
1422
- readonly columns: PlusColumn[];
1423
- readonly group: false | PlusFormGroupRow[];
1424
- readonly modelValue: FieldValues;
1425
- readonly rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1426
- readonly labelPosition: "top" | "right" | "left";
1427
- readonly labelWidth: string | number;
1428
- readonly labelSuffix: string;
1429
- readonly ellipsis: boolean;
1430
- readonly defaultValues: FieldValues;
1431
- readonly rowProps: Partial< Mutable<RowProps> & {
1432
- style?: CSSProperties | undefined;
1433
- class?: any;
1434
- } & RecordType>;
1435
- readonly colProps: Partial< Mutable<ColProps> & {
1436
- style?: CSSProperties | undefined;
1437
- class?: any;
1438
- } & RecordType>;
1439
- readonly hasErrorTip: boolean;
1440
- readonly hasFooter: boolean;
1441
- readonly hasReset: boolean;
1442
- readonly hasLabel: boolean;
1443
- readonly submitText: string;
1444
- readonly resetText: string;
1445
- readonly submitLoading: boolean;
1446
- readonly footerAlign: "right" | "left" | "center";
1447
- readonly cardProps: Partial< Mutable<CardProps> & {
1448
- style?: CSSProperties | undefined;
1449
- class?: any;
1450
- } & RecordType>;
1451
- readonly prevent: boolean;
1452
- readonly clearable: boolean;
1453
- readonly collapseDuration?: number | undefined;
1454
- readonly collapseTransition?: boolean | undefined;
1455
- readonly layout?: "grid" | "flex" | undefined;
1456
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1457
- onReset?: ((values: FieldValues) => any) | undefined;
1458
- onSubmit?: ((values: FieldValues) => any) | undefined;
1459
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1460
- onValidate?: ((...args: any[]) => any) | undefined;
1461
- onSubmitError?: ((errors: unknown) => any) | undefined;
1462
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
1463
- collapseDuration: {
1464
- type: PropType<number>;
1465
- default: undefined;
1466
- };
1467
- collapseTransition: {
1468
- type: PropType<boolean>;
1469
- default: undefined;
1470
- };
1471
- columns: {
1472
- type: PropType<PlusColumn[]>;
1473
- default: () => never[];
1474
- };
1475
- group: {
1476
- type: PropType<false | PlusFormGroupRow[]>;
1477
- default: boolean;
1478
- };
1479
- layout: {
1480
- type: PropType<"grid" | "flex">;
1481
- default: undefined;
1482
- };
1483
- modelValue: {
1484
- type: PropType<FieldValues>;
1485
- default: () => {};
1486
- };
1487
- rules: {
1488
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1489
- default: () => {};
1490
- };
1491
- labelPosition: {
1492
- type: PropType<"top" | "right" | "left">;
1493
- default: string;
1494
- };
1495
- labelWidth: {
1496
- type: PropType<string | number>;
1497
- default: string;
1498
- };
1499
- labelSuffix: {
1500
- type: PropType<string>;
1501
- default: string;
1502
- };
1503
- ellipsis: {
1504
- type: PropType<boolean>;
1505
- default: boolean;
1506
- };
1507
- defaultValues: {
1508
- type: PropType<FieldValues>;
1509
- default: () => {};
1510
- };
1511
- rowProps: {
1512
- type: PropType<Partial< Mutable<RowProps> & {
1513
- style?: CSSProperties | undefined;
1514
- class?: any;
1515
- } & RecordType>>;
1516
- default: () => {};
1517
- };
1518
- colProps: {
1519
- type: PropType<Partial< Mutable<ColProps> & {
1520
- style?: CSSProperties | undefined;
1521
- class?: any;
1522
- } & RecordType>>;
1523
- default: () => {};
1524
- };
1525
- hasErrorTip: {
1526
- type: PropType<boolean>;
1527
- default: boolean;
1528
- };
1529
- hasFooter: {
1530
- type: PropType<boolean>;
1531
- default: boolean;
1532
- };
1533
- hasReset: {
1534
- type: PropType<boolean>;
1535
- default: boolean;
1536
- };
1537
- hasLabel: {
1538
- type: PropType<boolean>;
1539
- default: boolean;
1540
- };
1541
- submitText: {
1542
- type: PropType<string>;
1543
- default: string;
1544
- };
1545
- resetText: {
1546
- type: PropType<string>;
1547
- default: string;
1548
- };
1549
- submitLoading: {
1550
- type: PropType<boolean>;
1551
- default: boolean;
1552
- };
1553
- footerAlign: {
1554
- type: PropType<"right" | "left" | "center">;
1555
- default: string;
1556
- };
1557
- cardProps: {
1558
- type: PropType<Partial< Mutable<CardProps> & {
1559
- style?: CSSProperties | undefined;
1560
- class?: any;
1561
- } & RecordType>>;
1562
- default: () => {};
1563
- };
1564
- prevent: {
1565
- type: PropType<boolean>;
1566
- default: boolean;
1567
- };
1568
- clearable: {
1569
- type: PropType<boolean>;
1570
- default: boolean;
1571
- };
1572
- }>> & {
1573
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1574
- onReset?: ((values: FieldValues) => any) | undefined;
1575
- onSubmit?: ((values: FieldValues) => any) | undefined;
1576
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1577
- onValidate?: ((...args: any[]) => any) | undefined;
1578
- onSubmitError?: ((errors: unknown) => any) | undefined;
1579
- }, "collapseDuration" | "collapseTransition" | "columns" | "group" | "layout" | "modelValue" | "rules" | "labelPosition" | "labelWidth" | "labelSuffix" | "ellipsis" | "defaultValues" | "rowProps" | "colProps" | "hasErrorTip" | "hasFooter" | "hasReset" | "hasLabel" | "submitText" | "resetText" | "submitLoading" | "footerAlign" | "cardProps" | "prevent" | "clearable">;
1580
- $attrs: {
1581
- [x: string]: unknown;
1582
- };
1583
- $refs: {
1584
- [x: string]: unknown;
1585
- };
1586
- $slots: Readonly<{
1587
- [name: string]: Slot<any> | undefined;
1588
- }>;
1589
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1590
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
1591
- $emit: ((event: "reset", values: FieldValues) => void) & ((event: "submit", values: FieldValues) => void) & ((event: "update:modelValue", values: FieldValues) => void) & ((event: "change", values: FieldValues, column: PlusColumn) => void) & ((event: "validate", ...args: any[]) => void) & ((event: "submitError", errors: unknown) => void);
1592
- $el: any;
1593
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
1594
- collapseDuration: {
1595
- type: PropType<number>;
1596
- default: undefined;
1597
- };
1598
- collapseTransition: {
1599
- type: PropType<boolean>;
1600
- default: undefined;
1601
- };
1602
- columns: {
1603
- type: PropType<PlusColumn[]>;
1604
- default: () => never[];
1605
- };
1606
- group: {
1607
- type: PropType<false | PlusFormGroupRow[]>;
1608
- default: boolean;
1609
- };
1610
- layout: {
1611
- type: PropType<"grid" | "flex">;
1612
- default: undefined;
1613
- };
1614
- modelValue: {
1615
- type: PropType<FieldValues>;
1616
- default: () => {};
1617
- };
1618
- rules: {
1619
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1620
- default: () => {};
1621
- };
1622
- labelPosition: {
1623
- type: PropType<"top" | "right" | "left">;
1624
- default: string;
1625
- };
1626
- labelWidth: {
1627
- type: PropType<string | number>;
1628
- default: string;
1629
- };
1630
- labelSuffix: {
1631
- type: PropType<string>;
1632
- default: string;
1633
- };
1634
- ellipsis: {
1635
- type: PropType<boolean>;
1636
- default: boolean;
1637
- };
1638
- defaultValues: {
1639
- type: PropType<FieldValues>;
1640
- default: () => {};
1641
- };
1642
- rowProps: {
1643
- type: PropType<Partial< Mutable<RowProps> & {
1644
- style?: CSSProperties | undefined;
1645
- class?: any;
1646
- } & RecordType>>;
1647
- default: () => {};
1648
- };
1649
- colProps: {
1650
- type: PropType<Partial< Mutable<ColProps> & {
1651
- style?: CSSProperties | undefined;
1652
- class?: any;
1653
- } & RecordType>>;
1654
- default: () => {};
1655
- };
1656
- hasErrorTip: {
1657
- type: PropType<boolean>;
1658
- default: boolean;
1659
- };
1660
- hasFooter: {
1661
- type: PropType<boolean>;
1662
- default: boolean;
1663
- };
1664
- hasReset: {
1665
- type: PropType<boolean>;
1666
- default: boolean;
1667
- };
1668
- hasLabel: {
1669
- type: PropType<boolean>;
1670
- default: boolean;
1671
- };
1672
- submitText: {
1673
- type: PropType<string>;
1674
- default: string;
1675
- };
1676
- resetText: {
1677
- type: PropType<string>;
1678
- default: string;
1679
- };
1680
- submitLoading: {
1681
- type: PropType<boolean>;
1682
- default: boolean;
1683
- };
1684
- footerAlign: {
1685
- type: PropType<"right" | "left" | "center">;
1686
- default: string;
1687
- };
1688
- cardProps: {
1689
- type: PropType<Partial< Mutable<CardProps> & {
1690
- style?: CSSProperties | undefined;
1691
- class?: any;
1692
- } & RecordType>>;
1693
- default: () => {};
1694
- };
1695
- prevent: {
1696
- type: PropType<boolean>;
1697
- default: boolean;
1698
- };
1699
- clearable: {
1700
- type: PropType<boolean>;
1701
- default: boolean;
1702
- };
1703
- }>> & {
1704
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1705
- onReset?: ((values: FieldValues) => any) | undefined;
1706
- onSubmit?: ((values: FieldValues) => any) | undefined;
1707
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1708
- onValidate?: ((...args: any[]) => any) | undefined;
1709
- onSubmitError?: ((errors: unknown) => any) | undefined;
1710
- }, {
1711
- formInstance: Ref< FormInstance | null>;
1712
- handleSubmit: () => void;
1713
- handleReset: () => void;
1714
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1715
- "update:modelValue": (values: FieldValues) => void;
1716
- submit: (values: FieldValues) => void;
1717
- change: (values: FieldValues, column: PlusColumn) => void;
1718
- reset: (values: FieldValues) => void;
1719
- submitError: (errors: unknown) => void;
1720
- validate: (...args: any[]) => void;
1721
- }, string, {
1722
- collapseDuration: number;
1723
- collapseTransition: boolean;
1724
- columns: PlusColumn[];
1725
- group: false | PlusFormGroupRow[];
1726
- layout: "grid" | "flex";
1727
- modelValue: FieldValues;
1728
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
1729
- labelPosition: "top" | "right" | "left";
1730
- labelWidth: string | number;
1731
- labelSuffix: string;
1732
- ellipsis: boolean;
1733
- defaultValues: FieldValues;
1734
- rowProps: Partial< Mutable<RowProps> & {
1735
- style?: CSSProperties | undefined;
1736
- class?: any;
1737
- } & RecordType>;
1738
- colProps: Partial< Mutable<ColProps> & {
1739
- style?: CSSProperties | undefined;
1740
- class?: any;
1741
- } & RecordType>;
1742
- hasErrorTip: boolean;
1743
- hasFooter: boolean;
1744
- hasReset: boolean;
1745
- hasLabel: boolean;
1746
- submitText: string;
1747
- resetText: string;
1748
- submitLoading: boolean;
1749
- footerAlign: "right" | "left" | "center";
1750
- cardProps: Partial< Mutable<CardProps> & {
1751
- style?: CSSProperties | undefined;
1752
- class?: any;
1753
- } & RecordType>;
1754
- prevent: boolean;
1755
- clearable: boolean;
1756
- }, {}, string, {}> & {
1757
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
1758
- created?: ((() => void) | (() => void)[]) | undefined;
1759
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
1760
- mounted?: ((() => void) | (() => void)[]) | undefined;
1761
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
1762
- updated?: ((() => void) | (() => void)[]) | undefined;
1763
- activated?: ((() => void) | (() => void)[]) | undefined;
1764
- deactivated?: ((() => void) | (() => void)[]) | undefined;
1765
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
1766
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
1767
- destroyed?: ((() => void) | (() => void)[]) | undefined;
1768
- unmounted?: ((() => void) | (() => void)[]) | undefined;
1769
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1770
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
1771
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
1772
- };
1773
- $forceUpdate: () => void;
1774
- $nextTick: nextTick;
1775
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
1776
- } & Omit<Readonly< ExtractPropTypes<{
1777
- collapseDuration: {
1778
- type: PropType<number>;
1779
- default: undefined;
1780
- };
1781
- collapseTransition: {
1782
- type: PropType<boolean>;
1783
- default: undefined;
1784
- };
1785
- columns: {
1786
- type: PropType<PlusColumn[]>;
1787
- default: () => never[];
1788
- };
1789
- group: {
1790
- type: PropType<false | PlusFormGroupRow[]>;
1791
- default: boolean;
1792
- };
1793
- layout: {
1794
- type: PropType<"grid" | "flex">;
1795
- default: undefined;
1796
- };
1797
- modelValue: {
1798
- type: PropType<FieldValues>;
1799
- default: () => {};
1800
- };
1801
- rules: {
1802
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
1803
- default: () => {};
1804
- };
1805
- labelPosition: {
1806
- type: PropType<"top" | "right" | "left">;
1807
- default: string;
1808
- };
1809
- labelWidth: {
1810
- type: PropType<string | number>;
1811
- default: string;
1812
- };
1813
- labelSuffix: {
1814
- type: PropType<string>;
1815
- default: string;
1816
- };
1817
- ellipsis: {
1818
- type: PropType<boolean>;
1819
- default: boolean;
1820
- };
1821
- defaultValues: {
1822
- type: PropType<FieldValues>;
1823
- default: () => {};
1824
- };
1825
- rowProps: {
1826
- type: PropType<Partial< Mutable<RowProps> & {
1827
- style?: CSSProperties | undefined;
1828
- class?: any;
1829
- } & RecordType>>;
1830
- default: () => {};
1831
- };
1832
- colProps: {
1833
- type: PropType<Partial< Mutable<ColProps> & {
1834
- style?: CSSProperties | undefined;
1835
- class?: any;
1836
- } & RecordType>>;
1837
- default: () => {};
1838
- };
1839
- hasErrorTip: {
1840
- type: PropType<boolean>;
1841
- default: boolean;
1842
- };
1843
- hasFooter: {
1844
- type: PropType<boolean>;
1845
- default: boolean;
1846
- };
1847
- hasReset: {
1848
- type: PropType<boolean>;
1849
- default: boolean;
1850
- };
1851
- hasLabel: {
1852
- type: PropType<boolean>;
1853
- default: boolean;
1854
- };
1855
- submitText: {
1856
- type: PropType<string>;
1857
- default: string;
1858
- };
1859
- resetText: {
1860
- type: PropType<string>;
1861
- default: string;
1862
- };
1863
- submitLoading: {
1864
- type: PropType<boolean>;
1865
- default: boolean;
1866
- };
1867
- footerAlign: {
1868
- type: PropType<"right" | "left" | "center">;
1869
- default: string;
1870
- };
1871
- cardProps: {
1872
- type: PropType<Partial< Mutable<CardProps> & {
1873
- style?: CSSProperties | undefined;
1874
- class?: any;
1875
- } & RecordType>>;
1876
- default: () => {};
1877
- };
1878
- prevent: {
1879
- type: PropType<boolean>;
1880
- default: boolean;
1881
- };
1882
- clearable: {
1883
- type: PropType<boolean>;
1884
- default: boolean;
1885
- };
1886
- }>> & {
1887
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
1888
- onReset?: ((values: FieldValues) => any) | undefined;
1889
- onSubmit?: ((values: FieldValues) => any) | undefined;
1890
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
1891
- onValidate?: ((...args: any[]) => any) | undefined;
1892
- onSubmitError?: ((errors: unknown) => any) | undefined;
1893
- }, "formInstance" | "handleSubmit" | "handleReset"> & ShallowUnwrapRef<{
1894
- formInstance: Ref< FormInstance | null>;
1895
- handleSubmit: () => void;
1896
- handleReset: () => void;
1897
- }> & {} & ComponentCustomProperties & {} & {
1898
- $slots: Partial<Record<string, (_: {
1899
- index: number;
1900
- title: string | ComputedRef<string>;
1901
- name?: string | undefined;
1902
- icon?: Component | undefined;
1903
- cardProps?: Partial< Mutable<CardProps> & {
1904
- style?: CSSProperties | undefined;
1905
- class?: any;
1906
- } & RecordType> | undefined;
1907
- hideInGroup?: boolean | ComputedRef<boolean> | undefined;
1908
- columns?: PlusColumn[] | undefined;
1909
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
1910
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
1911
- readonly label: string | ComputedRef<string>;
1912
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1913
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1914
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
1915
- style?: CSSProperties | undefined;
1916
- class?: any;
1917
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
1918
- style?: CSSProperties | undefined;
1919
- class?: any;
1920
- } & RecordType>>;
1921
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
1922
- [key: string]: any;
1923
- style?: CSSProperties | undefined;
1924
- }>;
1925
- readonly fieldProps: PropsItemType<Partial<{
1926
- [index: string]: any;
1927
- [index: number]: any;
1928
- [index: symbol]: any;
1929
- class: any;
1930
- style: CSSProperties;
1931
- modelModifiers: {
1932
- [index: string]: any;
1933
- lazy?: boolean | undefined;
1934
- trim?: boolean | undefined;
1935
- number?: boolean | undefined;
1936
- };
1937
- rows: number;
1938
- autocomplete: string;
1939
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
1940
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
1941
- step: string | number;
1942
- /**
1943
- * 所有列字段为空时显示的默认文本(全局配置)
1944
- * @version v0.2.0
1945
- * @default "-"
1946
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
1947
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
1948
- * @desc 仅对未定义 render/renderHTML 的字段生效
1949
- */
1950
- format: string | ProgressFn | undefined;
1951
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
1952
- id: string | [string, string];
1953
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
1954
- height: string | number;
1955
- autosize: InputAutoSize;
1956
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
1957
- readonly options: OptionsType;
1958
- readonly fieldSlots: {
1959
- [slotName: string]: (data?: any) => RenderTypes;
1960
- };
1961
- readonly valueType: TableValueType | FormItemValueType;
1962
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
1963
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
1964
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
1965
- readonly renderErrorMessage: ((props: PlusColumn & {
1966
- value?: FieldValueType;
1967
- error?: string | undefined;
1968
- label?: string | undefined;
1969
- }) => RenderTypes) | undefined;
1970
- readonly optionsMap: {
1971
- label?: string | undefined;
1972
- value?: string | undefined;
1973
- } | undefined;
1974
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
1975
- store?: any;
1976
- method?: string | undefined;
1977
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
1978
- dictCode?: string | undefined;
1979
- } | undefined;
1980
- readonly clearable: boolean;
1981
- readonly ellipsis: boolean;
1982
- readonly index: number;
1983
- } & {
1984
- readonly ellipsis: boolean;
1985
- readonly clearable: boolean;
1986
- };
1987
- label: string;
1988
- fieldProps: RecordType;
1989
- formItemProps: RecordType;
1990
- options: OptionsRow<undefined>[];
1991
- fieldInstance?: any;
1992
- valueIsReady?: Ref<boolean> | undefined;
1993
- prop: string;
1994
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1995
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
1996
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
1997
- style?: CSSProperties | undefined;
1998
- class?: any;
1999
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2000
- style?: CSSProperties | undefined;
2001
- class?: any;
2002
- } & RecordType>>;
2003
- fieldSlots: {
2004
- [slotName: string]: (data?: any) => RenderTypes;
2005
- };
2006
- valueType: TableValueType | FormItemValueType;
2007
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2008
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2009
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2010
- renderErrorMessage: ((props: PlusColumn & {
2011
- value?: FieldValueType;
2012
- error?: string | undefined;
2013
- label?: string | undefined;
2014
- }) => RenderTypes) | undefined;
2015
- optionsMap: {
2016
- label?: string | undefined;
2017
- value?: string | undefined;
2018
- } | undefined;
2019
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2020
- store?: any;
2021
- method?: string | undefined;
2022
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2023
- dictCode?: string | undefined;
2024
- } | undefined;
2025
- clearable: boolean;
2026
- ellipsis: boolean;
2027
- index: number;
2028
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
2029
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2030
- readonly label: string | ComputedRef<string>;
2031
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2032
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2033
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
2034
- style?: CSSProperties | undefined;
2035
- class?: any;
2036
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2037
- style?: CSSProperties | undefined;
2038
- class?: any;
2039
- } & RecordType>>;
2040
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
2041
- [key: string]: any;
2042
- style?: CSSProperties | undefined;
2043
- }>;
2044
- readonly fieldProps: PropsItemType<Partial<{
2045
- [index: string]: any;
2046
- [index: number]: any;
2047
- [index: symbol]: any;
2048
- class: any;
2049
- style: CSSProperties;
2050
- modelModifiers: {
2051
- [index: string]: any;
2052
- lazy?: boolean | undefined;
2053
- trim?: boolean | undefined;
2054
- number?: boolean | undefined;
2055
- };
2056
- rows: number;
2057
- autocomplete: string;
2058
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
2059
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
2060
- step: string | number;
2061
- /**
2062
- * 所有列字段为空时显示的默认文本(全局配置)
2063
- * @version v0.2.0
2064
- * @default "-"
2065
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
2066
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
2067
- * @desc 仅对未定义 render/renderHTML 的字段生效
2068
- */
2069
- format: string | ProgressFn | undefined;
2070
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
2071
- id: string | [string, string];
2072
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
2073
- height: string | number;
2074
- autosize: InputAutoSize;
2075
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
2076
- readonly options: OptionsType;
2077
- readonly fieldSlots: {
2078
- [slotName: string]: (data?: any) => RenderTypes;
2079
- };
2080
- readonly valueType: TableValueType | FormItemValueType;
2081
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2082
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2083
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2084
- readonly renderErrorMessage: ((props: PlusColumn & {
2085
- value?: FieldValueType;
2086
- error?: string | undefined;
2087
- label?: string | undefined;
2088
- }) => RenderTypes) | undefined;
2089
- readonly optionsMap: {
2090
- label?: string | undefined;
2091
- value?: string | undefined;
2092
- } | undefined;
2093
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2094
- store?: any;
2095
- method?: string | undefined;
2096
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2097
- dictCode?: string | undefined;
2098
- } | undefined;
2099
- readonly clearable: boolean;
2100
- readonly ellipsis: boolean;
2101
- readonly index: number;
2102
- } & {
2103
- readonly ellipsis: boolean;
2104
- readonly clearable: boolean;
2105
- };
2106
- label: string;
2107
- fieldProps: RecordType;
2108
- formItemProps: RecordType;
2109
- options: OptionsRow<undefined>[];
2110
- fieldInstance?: any;
2111
- valueIsReady?: Ref<boolean> | undefined;
2112
- prop: string;
2113
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2114
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2115
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
2116
- style?: CSSProperties | undefined;
2117
- class?: any;
2118
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2119
- style?: CSSProperties | undefined;
2120
- class?: any;
2121
- } & RecordType>>;
2122
- fieldSlots: {
2123
- [slotName: string]: (data?: any) => RenderTypes;
2124
- };
2125
- valueType: TableValueType | FormItemValueType;
2126
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2127
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2128
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2129
- renderErrorMessage: ((props: PlusColumn & {
2130
- value?: FieldValueType;
2131
- error?: string | undefined;
2132
- label?: string | undefined;
2133
- }) => RenderTypes) | undefined;
2134
- optionsMap: {
2135
- label?: string | undefined;
2136
- value?: string | undefined;
2137
- } | undefined;
2138
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2139
- store?: any;
2140
- method?: string | undefined;
2141
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2142
- dictCode?: string | undefined;
2143
- } | undefined;
2144
- clearable: boolean;
2145
- ellipsis: boolean;
2146
- index: number;
2147
- }) => any>> & {
2148
- default?(_: {}): any;
2149
- "group-header"?(_: {
2150
- title: string;
2151
- columns: PlusColumn[] | undefined;
2152
- icon: Component | undefined;
2153
- index: number;
2154
- }): any;
2155
- footer?(_: {
2156
- handleReset: () => void;
2157
- handleSubmit: () => void;
2158
- }): any;
2159
- };
2160
- }) | null | undefined>;
2161
- handleReset: () => void;
2162
- handleSearch: () => void;
2163
- handleUnfold: (e: MouseEvent) => void;
2164
- }> & {} & ComponentCustomProperties & {} & {
2165
- $slots: Partial<Record<NonNullable<string | number>, (_: {
2166
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
2167
- readonly label: string | ComputedRef<string>;
2168
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2169
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2170
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
2171
- style?: CSSProperties | undefined;
2172
- class?: any;
2173
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2174
- style?: CSSProperties | undefined;
2175
- class?: any;
2176
- } & RecordType>>;
2177
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
2178
- [key: string]: any;
2179
- style?: CSSProperties | undefined;
2180
- }>;
2181
- readonly fieldProps: PropsItemType<Partial<{
2182
- [index: string]: any;
2183
- [index: number]: any;
2184
- [index: symbol]: any;
2185
- class: any;
2186
- style: CSSProperties;
2187
- modelModifiers: {
2188
- [index: string]: any;
2189
- lazy?: boolean | undefined;
2190
- trim?: boolean | undefined;
2191
- number?: boolean | undefined;
2192
- };
2193
- rows: number;
2194
- autocomplete: string;
2195
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
2196
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
2197
- step: string | number;
2198
- /**
2199
- * 所有列字段为空时显示的默认文本(全局配置)
2200
- * @version v0.2.0
2201
- * @default "-"
2202
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
2203
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
2204
- * @desc 仅对未定义 render/renderHTML 的字段生效
2205
- */
2206
- format: string | ProgressFn | undefined;
2207
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
2208
- id: string | [string, string];
2209
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
2210
- height: string | number;
2211
- autosize: InputAutoSize;
2212
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
2213
- readonly options: OptionsType;
2214
- readonly fieldSlots: {
2215
- [slotName: string]: (data?: any) => RenderTypes;
2216
- };
2217
- readonly valueType: TableValueType | FormItemValueType;
2218
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2219
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2220
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2221
- readonly renderErrorMessage: ((props: PlusColumn & {
2222
- value?: FieldValueType;
2223
- error?: string | undefined;
2224
- label?: string | undefined;
2225
- }) => RenderTypes) | undefined;
2226
- readonly optionsMap: {
2227
- label?: string | undefined;
2228
- value?: string | undefined;
2229
- } | undefined;
2230
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2231
- store?: any;
2232
- method?: string | undefined;
2233
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2234
- dictCode?: string | undefined;
2235
- } | undefined;
2236
- readonly clearable: boolean;
2237
- readonly ellipsis: boolean;
2238
- readonly index: number;
2239
- } & {
2240
- readonly ellipsis: boolean;
2241
- readonly clearable: boolean;
2242
- };
2243
- label: string;
2244
- fieldProps: RecordType;
2245
- formItemProps: RecordType;
2246
- options: OptionsRow<undefined>[];
2247
- fieldInstance?: any;
2248
- valueIsReady?: Ref<boolean> | undefined;
2249
- prop: string;
2250
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
2251
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
2252
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
2253
- style?: CSSProperties | undefined;
2254
- class?: any;
2255
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
2256
- style?: CSSProperties | undefined;
2257
- class?: any;
2258
- } & RecordType>>;
2259
- fieldSlots: {
2260
- [slotName: string]: (data?: any) => RenderTypes;
2261
- };
2262
- valueType: TableValueType | FormItemValueType;
2263
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
2264
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
2265
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
2266
- renderErrorMessage: ((props: PlusColumn & {
2267
- value?: FieldValueType;
2268
- error?: string | undefined;
2269
- label?: string | undefined;
2270
- }) => RenderTypes) | undefined;
2271
- optionsMap: {
2272
- label?: string | undefined;
2273
- value?: string | undefined;
2274
- } | undefined;
2275
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
2276
- store?: any;
2277
- method?: string | undefined;
2278
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
2279
- dictCode?: string | undefined;
2280
- } | undefined;
2281
- clearable: boolean;
2282
- ellipsis: boolean;
2283
- index: number;
2284
- }) => any>> & {
2285
- footer?(_: {
2286
- isShowUnfold: boolean;
2287
- handleReset: () => void;
2288
- handleSearch: () => void;
2289
- handleUnfold: (e: MouseEvent) => void;
2290
- searchLoading: boolean;
2291
- }): any;
2292
- };
2293
- }) | null>;
2294
- plusTableInstance: Ref<({
2295
- $: ComponentInternalInstance;
2296
- $data: {};
2297
- $props: Partial<{
2298
- data: RecordType[];
2299
- columns: PlusColumn[];
2300
- headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2301
- row: any[];
2302
- rowIndex: number;
2303
- column: TableColumnCtx<any[]>;
2304
- columnIndex: number;
2305
- }) => CSSProperties>;
2306
- rowKey: string | ((row: any[]) => string);
2307
- actionBar: false | Partial< ActionBarProps>;
2308
- editable: boolean | "click" | "dblclick";
2309
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2310
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2311
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2312
- titleBar: boolean | Partial<Partial<{
2313
- title?: string | undefined;
2314
- refresh?: boolean | undefined;
2315
- density?: boolean | undefined;
2316
- columnSetting?: boolean | ColumnSetting | undefined;
2317
- icon?: {
2318
- size?: string | undefined;
2319
- color?: string | undefined;
2320
- } | undefined;
2321
- }>>;
2322
- defaultSize: "" | "default" | "small" | "large";
2323
- tableData: RecordType[];
2324
- pagination: false | Partial<PlusPaginationProps>;
2325
- hasIndexColumn: boolean;
2326
- isSelection: boolean | "radio";
2327
- isRadio: boolean;
2328
- hasExpand: boolean;
2329
- loadingStatus: boolean;
2330
- dragSortable: false | Partial< Options>;
2331
- selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2332
- radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2333
- radioProps: Partial< PlusRadioProps & {
2334
- style?: CSSProperties | undefined;
2335
- class?: any;
2336
- } & RecordType>;
2337
- defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
2338
- expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2339
- adaptive: boolean | {
2340
- offsetBottom?: number | undefined;
2341
- timeout?: number | undefined;
2342
- };
2343
- columnsEmptyText: string;
2344
- }> & Omit<{
2345
- readonly data: RecordType[];
2346
- readonly columns: PlusColumn[];
2347
- readonly headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2348
- row: any[];
2349
- rowIndex: number;
2350
- column: TableColumnCtx<any[]>;
2351
- columnIndex: number;
2352
- }) => CSSProperties>;
2353
- readonly rowKey: string | ((row: any[]) => string);
2354
- readonly actionBar: false | Partial< ActionBarProps>;
2355
- readonly editable: boolean | "click" | "dblclick";
2356
- readonly indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2357
- readonly indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2358
- readonly dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2359
- readonly titleBar: boolean | Partial<Partial<{
2360
- title?: string | undefined;
2361
- refresh?: boolean | undefined;
2362
- density?: boolean | undefined;
2363
- columnSetting?: boolean | ColumnSetting | undefined;
2364
- icon?: {
2365
- size?: string | undefined;
2366
- color?: string | undefined;
2367
- } | undefined;
2368
- }>>;
2369
- readonly defaultSize: "" | "default" | "small" | "large";
2370
- readonly tableData: RecordType[];
2371
- readonly pagination: false | Partial<PlusPaginationProps>;
2372
- readonly hasIndexColumn: boolean;
2373
- readonly isSelection: boolean | "radio";
2374
- readonly isRadio: boolean;
2375
- readonly hasExpand: boolean;
2376
- readonly loadingStatus: boolean;
2377
- readonly dragSortable: false | Partial< Options>;
2378
- readonly selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2379
- readonly radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2380
- readonly expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2381
- readonly adaptive: boolean | {
2382
- offsetBottom?: number | undefined;
2383
- timeout?: number | undefined;
2384
- };
2385
- readonly columnsEmptyText: string;
2386
- readonly height?: string | number | undefined;
2387
- readonly radioProps?: Partial< PlusRadioProps & {
2388
- style?: CSSProperties | undefined;
2389
- class?: any;
2390
- } & RecordType> | undefined;
2391
- readonly defaultSelectedRadioRow?: RecordType | ComputedRef<RecordType> | undefined;
2392
- readonly filterTableHeaderOverflowLabelLength?: number | undefined;
2393
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2394
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2395
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2396
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2397
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2398
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2399
- onRefresh?: (() => any) | undefined;
2400
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2401
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2402
- onEdited?: (() => any) | undefined;
2403
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2404
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
2405
- data: {
2406
- type: PropType<RecordType[]>;
2407
- default: () => never[];
2408
- };
2409
- columns: {
2410
- type: PropType<PlusColumn[]>;
2411
- default: () => never[];
2412
- };
2413
- height: {
2414
- type: PropType<string | number>;
2415
- };
2416
- headerCellStyle: {
2417
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2418
- row: any[];
2419
- rowIndex: number;
2420
- column: TableColumnCtx<any[]>;
2421
- columnIndex: number;
2422
- }) => CSSProperties>>;
2423
- default: () => {
2424
- 'background-color': string;
2425
- };
2426
- };
2427
- rowKey: {
2428
- type: PropType<string | ((row: any[]) => string)>;
2429
- default: string;
2430
- };
2431
- actionBar: {
2432
- type: PropType<false | Partial< ActionBarProps>>;
2433
- default: boolean;
2434
- };
2435
- editable: {
2436
- type: PropType<boolean | "click" | "dblclick">;
2437
- default: boolean;
2438
- };
2439
- indexTableColumnProps: {
2440
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2441
- default: () => {};
2442
- };
2443
- indexContentStyle: {
2444
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2445
- default: () => {};
2446
- };
2447
- dragSortableTableColumnProps: {
2448
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2449
- default: () => {};
2450
- };
2451
- titleBar: {
2452
- type: PropType<boolean | Partial<Partial<{
2453
- title?: string | undefined;
2454
- refresh?: boolean | undefined;
2455
- density?: boolean | undefined;
2456
- columnSetting?: boolean | ColumnSetting | undefined;
2457
- icon?: {
2458
- size?: string | undefined;
2459
- color?: string | undefined;
2460
- } | undefined;
2461
- }>>>;
2462
- default: boolean;
2463
- };
2464
- defaultSize: {
2465
- type: PropType<"" | "default" | "small" | "large">;
2466
- default: string;
2467
- };
2468
- tableData: {
2469
- type: PropType<RecordType[]>;
2470
- default: () => never[];
2471
- };
2472
- pagination: {
2473
- type: PropType<false | Partial<PlusPaginationProps>>;
2474
- default: boolean;
2475
- };
2476
- hasIndexColumn: {
2477
- type: PropType<boolean>;
2478
- default: boolean;
2479
- };
2480
- isSelection: {
2481
- type: PropType<boolean | "radio">;
2482
- default: boolean;
2483
- };
2484
- isRadio: {
2485
- type: PropType<boolean>;
2486
- default: boolean;
2487
- };
2488
- hasExpand: {
2489
- type: PropType<boolean>;
2490
- default: boolean;
2491
- };
2492
- loadingStatus: {
2493
- type: PropType<boolean>;
2494
- default: boolean;
2495
- };
2496
- dragSortable: {
2497
- type: PropType<false | Partial< Options>>;
2498
- default: boolean;
2499
- };
2500
- selectionTableColumnProps: {
2501
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2502
- default: () => {
2503
- width: number;
2504
- };
2505
- };
2506
- radioTableColumnProps: {
2507
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2508
- default: () => {
2509
- width: number;
2510
- };
2511
- };
2512
- radioProps: {
2513
- type: PropType<Partial< PlusRadioProps & {
2514
- style?: CSSProperties | undefined;
2515
- class?: any;
2516
- } & RecordType>>;
2517
- default: undefined;
2518
- };
2519
- defaultSelectedRadioRow: {
2520
- type: PropType<RecordType | ComputedRef<RecordType>>;
2521
- default: undefined;
2522
- };
2523
- expandTableColumnProps: {
2524
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2525
- default: () => {};
2526
- };
2527
- adaptive: {
2528
- type: PropType<boolean | {
2529
- offsetBottom?: number | undefined;
2530
- timeout?: number | undefined;
2531
- }>;
2532
- default: boolean;
2533
- };
2534
- filterTableHeaderOverflowLabelLength: {
2535
- type: PropType<number>;
2536
- };
2537
- columnsEmptyText: {
2538
- type: PropType<string>;
2539
- default: string;
2540
- };
2541
- }>> & {
2542
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2543
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2544
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2545
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2546
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2547
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2548
- onRefresh?: (() => any) | undefined;
2549
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2550
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2551
- onEdited?: (() => any) | undefined;
2552
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2553
- }, "data" | "columns" | "headerCellStyle" | "rowKey" | "actionBar" | "editable" | "indexTableColumnProps" | "indexContentStyle" | "dragSortableTableColumnProps" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "isRadio" | "hasExpand" | "loadingStatus" | "dragSortable" | "selectionTableColumnProps" | "radioTableColumnProps" | "radioProps" | "defaultSelectedRadioRow" | "expandTableColumnProps" | "adaptive" | "columnsEmptyText">;
2554
- $attrs: {
2555
- [x: string]: unknown;
2556
- };
2557
- $refs: {
2558
- [x: string]: unknown;
2559
- };
2560
- $slots: Readonly<{
2561
- [name: string]: Slot<any> | undefined;
2562
- }>;
2563
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
2564
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
2565
- $emit: ((event: "refresh") => void) & ((event: "paginationChange", pageInfo: PageInfo) => void) & ((event: "clickAction", data: ButtonsCallBackParams) => void) & ((event: "clickActionConfirmCancel", data: ButtonsCallBackParams) => void) & ((event: "dragSortEnd", newIndex: number, oldIndex: number) => void) & ((event: "formChange", data: FormChangeCallBackParams) => void) & ((event: "edited") => void) & ((event: "cell-click", row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void) & ((event: "cell-dblclick", row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void) & ((event: "filterTableHeader", columns: PlusColumn[], eventType: FilterTableHeaderEventType) => void) & ((event: "radioChange", row: RecordType, index: number, value: boolean) => void);
2566
- $el: any;
2567
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
2568
- data: {
2569
- type: PropType<RecordType[]>;
2570
- default: () => never[];
2571
- };
2572
- columns: {
2573
- type: PropType<PlusColumn[]>;
2574
- default: () => never[];
2575
- };
2576
- height: {
2577
- type: PropType<string | number>;
2578
- };
2579
- headerCellStyle: {
2580
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2581
- row: any[];
2582
- rowIndex: number;
2583
- column: TableColumnCtx<any[]>;
2584
- columnIndex: number;
2585
- }) => CSSProperties>>;
2586
- default: () => {
2587
- 'background-color': string;
2588
- };
2589
- };
2590
- rowKey: {
2591
- type: PropType<string | ((row: any[]) => string)>;
2592
- default: string;
2593
- };
2594
- actionBar: {
2595
- type: PropType<false | Partial< ActionBarProps>>;
2596
- default: boolean;
2597
- };
2598
- editable: {
2599
- type: PropType<boolean | "click" | "dblclick">;
2600
- default: boolean;
2601
- };
2602
- indexTableColumnProps: {
2603
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2604
- default: () => {};
2605
- };
2606
- indexContentStyle: {
2607
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2608
- default: () => {};
2609
- };
2610
- dragSortableTableColumnProps: {
2611
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2612
- default: () => {};
2613
- };
2614
- titleBar: {
2615
- type: PropType<boolean | Partial<Partial<{
2616
- title?: string | undefined;
2617
- refresh?: boolean | undefined;
2618
- density?: boolean | undefined;
2619
- columnSetting?: boolean | ColumnSetting | undefined;
2620
- icon?: {
2621
- size?: string | undefined;
2622
- color?: string | undefined;
2623
- } | undefined;
2624
- }>>>;
2625
- default: boolean;
2626
- };
2627
- defaultSize: {
2628
- type: PropType<"" | "default" | "small" | "large">;
2629
- default: string;
2630
- };
2631
- tableData: {
2632
- type: PropType<RecordType[]>;
2633
- default: () => never[];
2634
- };
2635
- pagination: {
2636
- type: PropType<false | Partial<PlusPaginationProps>>;
2637
- default: boolean;
2638
- };
2639
- hasIndexColumn: {
2640
- type: PropType<boolean>;
2641
- default: boolean;
2642
- };
2643
- isSelection: {
2644
- type: PropType<boolean | "radio">;
2645
- default: boolean;
2646
- };
2647
- isRadio: {
2648
- type: PropType<boolean>;
2649
- default: boolean;
2650
- };
2651
- hasExpand: {
2652
- type: PropType<boolean>;
2653
- default: boolean;
2654
- };
2655
- loadingStatus: {
2656
- type: PropType<boolean>;
2657
- default: boolean;
2658
- };
2659
- dragSortable: {
2660
- type: PropType<false | Partial< Options>>;
2661
- default: boolean;
2662
- };
2663
- selectionTableColumnProps: {
2664
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2665
- default: () => {
2666
- width: number;
2667
- };
2668
- };
2669
- radioTableColumnProps: {
2670
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2671
- default: () => {
2672
- width: number;
2673
- };
2674
- };
2675
- radioProps: {
2676
- type: PropType<Partial< PlusRadioProps & {
2677
- style?: CSSProperties | undefined;
2678
- class?: any;
2679
- } & RecordType>>;
2680
- default: undefined;
2681
- };
2682
- defaultSelectedRadioRow: {
2683
- type: PropType<RecordType | ComputedRef<RecordType>>;
2684
- default: undefined;
2685
- };
2686
- expandTableColumnProps: {
2687
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2688
- default: () => {};
2689
- };
2690
- adaptive: {
2691
- type: PropType<boolean | {
2692
- offsetBottom?: number | undefined;
2693
- timeout?: number | undefined;
2694
- }>;
2695
- default: boolean;
2696
- };
2697
- filterTableHeaderOverflowLabelLength: {
2698
- type: PropType<number>;
2699
- };
2700
- columnsEmptyText: {
2701
- type: PropType<string>;
2702
- default: string;
2703
- };
2704
- }>> & {
2705
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2706
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2707
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2708
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2709
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2710
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2711
- onRefresh?: (() => any) | undefined;
2712
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2713
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2714
- onEdited?: (() => any) | undefined;
2715
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2716
- }, {
2717
- formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
2718
- tableInstance: ShallowRef< TableInstance | null>;
2719
- startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2720
- stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2721
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2722
- paginationChange: (pageInfo: PageInfo) => void;
2723
- clickAction: (data: ButtonsCallBackParams) => void;
2724
- clickActionConfirmCancel: (data: ButtonsCallBackParams) => void;
2725
- dragSortEnd: (newIndex: number, oldIndex: number) => void;
2726
- formChange: (data: FormChangeCallBackParams) => void;
2727
- refresh: () => void;
2728
- edited: () => void;
2729
- "cell-click": (row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void;
2730
- "cell-dblclick": (row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => void;
2731
- filterTableHeader: (columns: PlusColumn[], eventType: FilterTableHeaderEventType) => void;
2732
- radioChange: (row: RecordType, index: number, value: boolean) => void;
2733
- }, string, {
2734
- data: RecordType[];
2735
- columns: PlusColumn[];
2736
- headerCellStyle: Partial< CSSProperties> | Partial<(data: {
2737
- row: any[];
2738
- rowIndex: number;
2739
- column: TableColumnCtx<any[]>;
2740
- columnIndex: number;
2741
- }) => CSSProperties>;
2742
- rowKey: string | ((row: any[]) => string);
2743
- actionBar: false | Partial< ActionBarProps>;
2744
- editable: boolean | "click" | "dblclick";
2745
- indexTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2746
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
2747
- dragSortableTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2748
- titleBar: boolean | Partial<Partial<{
2749
- title?: string | undefined;
2750
- refresh?: boolean | undefined;
2751
- density?: boolean | undefined;
2752
- columnSetting?: boolean | ColumnSetting | undefined;
2753
- icon?: {
2754
- size?: string | undefined;
2755
- color?: string | undefined;
2756
- } | undefined;
2757
- }>>;
2758
- defaultSize: "" | "default" | "small" | "large";
2759
- tableData: RecordType[];
2760
- pagination: false | Partial<PlusPaginationProps>;
2761
- hasIndexColumn: boolean;
2762
- isSelection: boolean | "radio";
2763
- isRadio: boolean;
2764
- hasExpand: boolean;
2765
- loadingStatus: boolean;
2766
- dragSortable: false | Partial< Options>;
2767
- selectionTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2768
- radioTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2769
- radioProps: Partial< PlusRadioProps & {
2770
- style?: CSSProperties | undefined;
2771
- class?: any;
2772
- } & RecordType>;
2773
- defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
2774
- expandTableColumnProps: Partial< TableColumnCtx<RecordType>>;
2775
- adaptive: boolean | {
2776
- offsetBottom?: number | undefined;
2777
- timeout?: number | undefined;
2778
- };
2779
- columnsEmptyText: string;
2780
- }, {}, string, {}> & {
2781
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
2782
- created?: ((() => void) | (() => void)[]) | undefined;
2783
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
2784
- mounted?: ((() => void) | (() => void)[]) | undefined;
2785
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
2786
- updated?: ((() => void) | (() => void)[]) | undefined;
2787
- activated?: ((() => void) | (() => void)[]) | undefined;
2788
- deactivated?: ((() => void) | (() => void)[]) | undefined;
2789
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
2790
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
2791
- destroyed?: ((() => void) | (() => void)[]) | undefined;
2792
- unmounted?: ((() => void) | (() => void)[]) | undefined;
2793
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
2794
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
2795
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
2796
- };
2797
- $forceUpdate: () => void;
2798
- $nextTick: nextTick;
2799
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
2800
- } & Omit<Readonly< ExtractPropTypes<{
2801
- data: {
2802
- type: PropType<RecordType[]>;
2803
- default: () => never[];
2804
- };
2805
- columns: {
2806
- type: PropType<PlusColumn[]>;
2807
- default: () => never[];
2808
- };
2809
- height: {
2810
- type: PropType<string | number>;
2811
- };
2812
- headerCellStyle: {
2813
- type: PropType<Partial< CSSProperties> | Partial<(data: {
2814
- row: any[];
2815
- rowIndex: number;
2816
- column: TableColumnCtx<any[]>;
2817
- columnIndex: number;
2818
- }) => CSSProperties>>;
2819
- default: () => {
2820
- 'background-color': string;
2821
- };
2822
- };
2823
- rowKey: {
2824
- type: PropType<string | ((row: any[]) => string)>;
2825
- default: string;
2826
- };
2827
- actionBar: {
2828
- type: PropType<false | Partial< ActionBarProps>>;
2829
- default: boolean;
2830
- };
2831
- editable: {
2832
- type: PropType<boolean | "click" | "dblclick">;
2833
- default: boolean;
2834
- };
2835
- indexTableColumnProps: {
2836
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2837
- default: () => {};
2838
- };
2839
- indexContentStyle: {
2840
- type: PropType<Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>)>;
2841
- default: () => {};
2842
- };
2843
- dragSortableTableColumnProps: {
2844
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2845
- default: () => {};
2846
- };
2847
- titleBar: {
2848
- type: PropType<boolean | Partial<Partial<{
2849
- title?: string | undefined;
2850
- refresh?: boolean | undefined;
2851
- density?: boolean | undefined;
2852
- columnSetting?: boolean | ColumnSetting | undefined;
2853
- icon?: {
2854
- size?: string | undefined;
2855
- color?: string | undefined;
2856
- } | undefined;
2857
- }>>>;
2858
- default: boolean;
2859
- };
2860
- defaultSize: {
2861
- type: PropType<"" | "default" | "small" | "large">;
2862
- default: string;
2863
- };
2864
- tableData: {
2865
- type: PropType<RecordType[]>;
2866
- default: () => never[];
2867
- };
2868
- pagination: {
2869
- type: PropType<false | Partial<PlusPaginationProps>>;
2870
- default: boolean;
2871
- };
2872
- hasIndexColumn: {
2873
- type: PropType<boolean>;
2874
- default: boolean;
2875
- };
2876
- isSelection: {
2877
- type: PropType<boolean | "radio">;
2878
- default: boolean;
2879
- };
2880
- isRadio: {
2881
- type: PropType<boolean>;
2882
- default: boolean;
2883
- };
2884
- hasExpand: {
2885
- type: PropType<boolean>;
2886
- default: boolean;
2887
- };
2888
- loadingStatus: {
2889
- type: PropType<boolean>;
2890
- default: boolean;
2891
- };
2892
- dragSortable: {
2893
- type: PropType<false | Partial< Options>>;
2894
- default: boolean;
2895
- };
2896
- selectionTableColumnProps: {
2897
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2898
- default: () => {
2899
- width: number;
2900
- };
2901
- };
2902
- radioTableColumnProps: {
2903
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2904
- default: () => {
2905
- width: number;
2906
- };
2907
- };
2908
- radioProps: {
2909
- type: PropType<Partial< PlusRadioProps & {
2910
- style?: CSSProperties | undefined;
2911
- class?: any;
2912
- } & RecordType>>;
2913
- default: undefined;
2914
- };
2915
- defaultSelectedRadioRow: {
2916
- type: PropType<RecordType | ComputedRef<RecordType>>;
2917
- default: undefined;
2918
- };
2919
- expandTableColumnProps: {
2920
- type: PropType<Partial< TableColumnCtx<RecordType>>>;
2921
- default: () => {};
2922
- };
2923
- adaptive: {
2924
- type: PropType<boolean | {
2925
- offsetBottom?: number | undefined;
2926
- timeout?: number | undefined;
2927
- }>;
2928
- default: boolean;
2929
- };
2930
- filterTableHeaderOverflowLabelLength: {
2931
- type: PropType<number>;
2932
- };
2933
- columnsEmptyText: {
2934
- type: PropType<string>;
2935
- default: string;
2936
- };
2937
- }>> & {
2938
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
2939
- onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
2940
- onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
2941
- "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2942
- "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
2943
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
2944
- onRefresh?: (() => any) | undefined;
2945
- onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
2946
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
2947
- onEdited?: (() => any) | undefined;
2948
- onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
2949
- }, "tableInstance" | "formRefs" | "startRowEdit" | "stopRowEdit"> & ShallowUnwrapRef<{
2950
- formRefs: ShallowRef<Record<string | number, TableFormRefRow[]>>;
2951
- tableInstance: ShallowRef< TableInstance | null>;
2952
- startRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2953
- stopRowEdit: (rowIndex: number, prop?: string | undefined) => Promise<boolean>;
2954
- }> & {} & ComponentCustomProperties & {} & {
2955
- $slots: Partial<Record<NonNullable<string | number>, (_: {
2956
- column: any;
2957
- prop: string;
2958
- valueType: TableValueType | FormItemValueType;
2959
- row: RecordType;
2960
- index: number;
2961
- rowIndex: number;
2962
- fieldProps: RecordType;
2963
- options: OptionsRow<undefined>[];
2964
- value: any;
2965
- }) => any>> & {
2966
- title?(_: {}): any;
2967
- toolbar?(_: {}): any;
2968
- "drag-sort-icon"?(_: {}): any;
2969
- "column-settings-icon"?(_: {}): any;
2970
- "density-icon"?(_: {}): any;
2971
- expand?(_: any): any;
2972
- default?(_: {}): any;
2973
- "action-bar-more-icon"?(_: {}): any;
2974
- append?(_: {}): any;
2975
- empty?(_: {}): any;
2976
- "pagination-left"?(_: {}): any;
2977
- "pagination-right"?(_: {}): any;
2978
- };
2979
- }) | null>;
2980
- plusVirtualTableInstance: Ref<({
2981
- $: ComponentInternalInstance;
2982
- $data: {};
2983
- $props: Partial<{
2984
- fixed: boolean;
2985
- data: RecordType[];
2986
- columns: PlusColumn[];
2987
- border: boolean;
2988
- rowKey: string;
2989
- actionBar: false | Partial< ActionBarProps>;
2990
- stripe: boolean;
2991
- scrollbarAlwaysOn: boolean;
2992
- titleBar: boolean | {
2993
- title?: string | undefined;
2994
- refresh?: boolean | undefined;
2995
- };
2996
- defaultSize: "" | "default" | "small" | "large";
2997
- tableData: RecordType[];
2998
- pagination: false | Partial<PlusPaginationProps>;
2999
- hasIndexColumn: boolean;
3000
- isSelection: boolean;
3001
- loadingStatus: boolean;
3002
- columnsEmptyText: string;
3003
- headerHeight: number;
3004
- rowHeight: number;
3005
- defaultColumnWidth: number;
3006
- selectionColumnWidth: number;
3007
- indexColumnWidth: number;
3008
- }> & Omit<{
3009
- readonly fixed: boolean;
3010
- readonly data: RecordType[];
3011
- readonly columns: PlusColumn[];
3012
- readonly border: boolean;
3013
- readonly rowKey: string;
3014
- readonly actionBar: false | Partial< ActionBarProps>;
3015
- readonly stripe: boolean;
3016
- readonly scrollbarAlwaysOn: boolean;
3017
- readonly titleBar: boolean | {
3018
- title?: string | undefined;
3019
- refresh?: boolean | undefined;
3020
- };
3021
- readonly defaultSize: "" | "default" | "small" | "large";
3022
- readonly tableData: RecordType[];
3023
- readonly pagination: false | Partial<PlusPaginationProps>;
3024
- readonly hasIndexColumn: boolean;
3025
- readonly isSelection: boolean;
3026
- readonly loadingStatus: boolean;
3027
- readonly columnsEmptyText: string;
3028
- readonly headerHeight: number;
3029
- readonly rowHeight: number;
3030
- readonly defaultColumnWidth: number;
3031
- readonly selectionColumnWidth: number;
3032
- readonly indexColumnWidth: number;
3033
- readonly width?: string | number | undefined;
3034
- readonly height?: string | number | undefined;
3035
- readonly headerCellStyle?: CSSProperties | undefined;
3036
- readonly rowStyle?: CSSProperties | ((params: {
3037
- rowData: RecordType;
3038
- rowIndex: number;
3039
- }) => CSSProperties) | undefined;
3040
- readonly rowClass?: string | ((params: {
3041
- rowData: RecordType;
3042
- rowIndex: number;
3043
- }) => string) | undefined;
3044
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3045
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3046
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3047
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3048
- "onSort-change"?: ((data: {
3049
- column: VirtualTableColumn;
3050
- prop: string;
3051
- order: string | null;
3052
- }) => any) | undefined;
3053
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3054
- onRefresh?: (() => any) | undefined;
3055
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3056
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
3057
- fixed: {
3058
- type: PropType<boolean>;
3059
- default: boolean;
3060
- };
3061
- data: {
3062
- type: PropType<RecordType[]>;
3063
- default: () => never[];
3064
- };
3065
- width: {
3066
- type: PropType<string | number>;
3067
- };
3068
- columns: {
3069
- type: PropType<PlusColumn[]>;
3070
- default: () => never[];
3071
- };
3072
- border: {
3073
- type: PropType<boolean>;
3074
- default: boolean;
3075
- };
3076
- height: {
3077
- type: PropType<string | number>;
3078
- };
3079
- headerCellStyle: {
3080
- type: PropType<CSSProperties>;
3081
- };
3082
- rowKey: {
3083
- type: PropType<string>;
3084
- default: string;
3085
- };
3086
- actionBar: {
3087
- type: PropType<false | Partial< ActionBarProps>>;
3088
- default: boolean;
3089
- };
3090
- stripe: {
3091
- type: PropType<boolean>;
3092
- default: boolean;
3093
- };
3094
- rowStyle: {
3095
- type: PropType< CSSProperties | ((params: {
3096
- rowData: RecordType;
3097
- rowIndex: number;
3098
- }) => CSSProperties)>;
3099
- };
3100
- scrollbarAlwaysOn: {
3101
- type: PropType<boolean>;
3102
- default: boolean;
3103
- };
3104
- titleBar: {
3105
- type: PropType<boolean | {
3106
- title?: string | undefined;
3107
- refresh?: boolean | undefined;
3108
- }>;
3109
- default: boolean;
3110
- };
3111
- defaultSize: {
3112
- type: PropType<"" | "default" | "small" | "large">;
3113
- default: string;
3114
- };
3115
- tableData: {
3116
- type: PropType<RecordType[]>;
3117
- default: () => never[];
3118
- };
3119
- pagination: {
3120
- type: PropType<false | Partial<PlusPaginationProps>>;
3121
- default: boolean;
3122
- };
3123
- hasIndexColumn: {
3124
- type: PropType<boolean>;
3125
- default: boolean;
3126
- };
3127
- isSelection: {
3128
- type: PropType<boolean>;
3129
- default: boolean;
3130
- };
3131
- loadingStatus: {
3132
- type: PropType<boolean>;
3133
- default: boolean;
3134
- };
3135
- columnsEmptyText: {
3136
- type: PropType<string>;
3137
- default: string;
3138
- };
3139
- headerHeight: {
3140
- type: PropType<number>;
3141
- default: number;
3142
- };
3143
- rowClass: {
3144
- type: PropType<string | ((params: {
3145
- rowData: RecordType;
3146
- rowIndex: number;
3147
- }) => string)>;
3148
- };
3149
- rowHeight: {
3150
- type: PropType<number>;
3151
- default: number;
3152
- };
3153
- defaultColumnWidth: {
3154
- type: PropType<number>;
3155
- default: number;
3156
- };
3157
- selectionColumnWidth: {
3158
- type: PropType<number>;
3159
- default: number;
3160
- };
3161
- indexColumnWidth: {
3162
- type: PropType<number>;
3163
- default: number;
3164
- };
3165
- }>> & {
3166
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3167
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3168
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3169
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3170
- "onSort-change"?: ((data: {
3171
- column: VirtualTableColumn;
3172
- prop: string;
3173
- order: string | null;
3174
- }) => any) | undefined;
3175
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3176
- onRefresh?: (() => any) | undefined;
3177
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3178
- }, "fixed" | "data" | "columns" | "border" | "rowKey" | "actionBar" | "stripe" | "scrollbarAlwaysOn" | "titleBar" | "defaultSize" | "tableData" | "pagination" | "hasIndexColumn" | "isSelection" | "loadingStatus" | "columnsEmptyText" | "headerHeight" | "rowHeight" | "defaultColumnWidth" | "selectionColumnWidth" | "indexColumnWidth">;
3179
- $attrs: {
3180
- [x: string]: unknown;
3181
- };
3182
- $refs: {
3183
- [x: string]: unknown;
3184
- };
3185
- $slots: Readonly<{
3186
- [name: string]: Slot<any> | undefined;
3187
- }>;
3188
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3189
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
3190
- $emit: ((event: "select", selection: RecordType[], row: RecordType) => void) & ((event: "refresh") => void) & ((event: "select-all", selection: RecordType[]) => void) & ((event: "selection-change", selection: RecordType[]) => void) & ((event: "row-click", rowData: RecordType, rowIndex: number) => void) & ((event: "sort-change", data: {
3191
- column: VirtualTableColumn;
3192
- prop: string;
3193
- order: string | null;
3194
- }) => void) & ((event: "paginationChange", pageInfo: PageInfo) => void) & ((event: "clickAction", data: ButtonsCallBackParams) => void);
3195
- $el: any;
3196
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
3197
- fixed: {
3198
- type: PropType<boolean>;
3199
- default: boolean;
3200
- };
3201
- data: {
3202
- type: PropType<RecordType[]>;
3203
- default: () => never[];
3204
- };
3205
- width: {
3206
- type: PropType<string | number>;
3207
- };
3208
- columns: {
3209
- type: PropType<PlusColumn[]>;
3210
- default: () => never[];
3211
- };
3212
- border: {
3213
- type: PropType<boolean>;
3214
- default: boolean;
3215
- };
3216
- height: {
3217
- type: PropType<string | number>;
3218
- };
3219
- headerCellStyle: {
3220
- type: PropType<CSSProperties>;
3221
- };
3222
- rowKey: {
3223
- type: PropType<string>;
3224
- default: string;
3225
- };
3226
- actionBar: {
3227
- type: PropType<false | Partial< ActionBarProps>>;
3228
- default: boolean;
3229
- };
3230
- stripe: {
3231
- type: PropType<boolean>;
3232
- default: boolean;
3233
- };
3234
- rowStyle: {
3235
- type: PropType< CSSProperties | ((params: {
3236
- rowData: RecordType;
3237
- rowIndex: number;
3238
- }) => CSSProperties)>;
3239
- };
3240
- scrollbarAlwaysOn: {
3241
- type: PropType<boolean>;
3242
- default: boolean;
3243
- };
3244
- titleBar: {
3245
- type: PropType<boolean | {
3246
- title?: string | undefined;
3247
- refresh?: boolean | undefined;
3248
- }>;
3249
- default: boolean;
3250
- };
3251
- defaultSize: {
3252
- type: PropType<"" | "default" | "small" | "large">;
3253
- default: string;
3254
- };
3255
- tableData: {
3256
- type: PropType<RecordType[]>;
3257
- default: () => never[];
3258
- };
3259
- pagination: {
3260
- type: PropType<false | Partial<PlusPaginationProps>>;
3261
- default: boolean;
3262
- };
3263
- hasIndexColumn: {
3264
- type: PropType<boolean>;
3265
- default: boolean;
3266
- };
3267
- isSelection: {
3268
- type: PropType<boolean>;
3269
- default: boolean;
3270
- };
3271
- loadingStatus: {
3272
- type: PropType<boolean>;
3273
- default: boolean;
3274
- };
3275
- columnsEmptyText: {
3276
- type: PropType<string>;
3277
- default: string;
3278
- };
3279
- headerHeight: {
3280
- type: PropType<number>;
3281
- default: number;
3282
- };
3283
- rowClass: {
3284
- type: PropType<string | ((params: {
3285
- rowData: RecordType;
3286
- rowIndex: number;
3287
- }) => string)>;
3288
- };
3289
- rowHeight: {
3290
- type: PropType<number>;
3291
- default: number;
3292
- };
3293
- defaultColumnWidth: {
3294
- type: PropType<number>;
3295
- default: number;
3296
- };
3297
- selectionColumnWidth: {
3298
- type: PropType<number>;
3299
- default: number;
3300
- };
3301
- indexColumnWidth: {
3302
- type: PropType<number>;
3303
- default: number;
3304
- };
3305
- }>> & {
3306
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3307
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3308
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3309
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3310
- "onSort-change"?: ((data: {
3311
- column: VirtualTableColumn;
3312
- prop: string;
3313
- order: string | null;
3314
- }) => any) | undefined;
3315
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3316
- onRefresh?: (() => any) | undefined;
3317
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3318
- }, {
3319
- getSelectionRows: () => RecordType[];
3320
- clearSelection: () => void;
3321
- toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3322
- toggleAllSelection: (selected?: boolean | undefined) => void;
3323
- scrollToRow: (rowIndex: number) => void;
3324
- data: ComputedRef<RecordType[]>;
3325
- tableRef: ShallowRef< TableV2Instance | null>;
3326
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3327
- paginationChange: (pageInfo: PageInfo) => void;
3328
- clickAction: (data: ButtonsCallBackParams) => void;
3329
- "selection-change": (selection: RecordType[]) => void;
3330
- select: (selection: RecordType[], row: RecordType) => void;
3331
- "select-all": (selection: RecordType[]) => void;
3332
- refresh: () => void;
3333
- "row-click": (rowData: RecordType, rowIndex: number) => void;
3334
- "sort-change": (data: {
3335
- column: VirtualTableColumn;
3336
- prop: string;
3337
- order: string | null;
3338
- }) => void;
3339
- }, string, {
3340
- fixed: boolean;
3341
- data: RecordType[];
3342
- columns: PlusColumn[];
3343
- border: boolean;
3344
- rowKey: string;
3345
- actionBar: false | Partial< ActionBarProps>;
3346
- stripe: boolean;
3347
- scrollbarAlwaysOn: boolean;
3348
- titleBar: boolean | {
3349
- title?: string | undefined;
3350
- refresh?: boolean | undefined;
3351
- };
3352
- defaultSize: "" | "default" | "small" | "large";
3353
- tableData: RecordType[];
3354
- pagination: false | Partial<PlusPaginationProps>;
3355
- hasIndexColumn: boolean;
3356
- isSelection: boolean;
3357
- loadingStatus: boolean;
3358
- columnsEmptyText: string;
3359
- headerHeight: number;
3360
- rowHeight: number;
3361
- defaultColumnWidth: number;
3362
- selectionColumnWidth: number;
3363
- indexColumnWidth: number;
3364
- }, {}, string, {}> & {
3365
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
3366
- created?: ((() => void) | (() => void)[]) | undefined;
3367
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
3368
- mounted?: ((() => void) | (() => void)[]) | undefined;
3369
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
3370
- updated?: ((() => void) | (() => void)[]) | undefined;
3371
- activated?: ((() => void) | (() => void)[]) | undefined;
3372
- deactivated?: ((() => void) | (() => void)[]) | undefined;
3373
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
3374
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
3375
- destroyed?: ((() => void) | (() => void)[]) | undefined;
3376
- unmounted?: ((() => void) | (() => void)[]) | undefined;
3377
- renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3378
- renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
3379
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
3380
- };
3381
- $forceUpdate: () => void;
3382
- $nextTick: nextTick;
3383
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
3384
- } & Omit<Readonly< ExtractPropTypes<{
3385
- fixed: {
3386
- type: PropType<boolean>;
3387
- default: boolean;
3388
- };
3389
- data: {
3390
- type: PropType<RecordType[]>;
3391
- default: () => never[];
3392
- };
3393
- width: {
3394
- type: PropType<string | number>;
3395
- };
3396
- columns: {
3397
- type: PropType<PlusColumn[]>;
3398
- default: () => never[];
3399
- };
3400
- border: {
3401
- type: PropType<boolean>;
3402
- default: boolean;
3403
- };
3404
- height: {
3405
- type: PropType<string | number>;
3406
- };
3407
- headerCellStyle: {
3408
- type: PropType<CSSProperties>;
3409
- };
3410
- rowKey: {
3411
- type: PropType<string>;
3412
- default: string;
3413
- };
3414
- actionBar: {
3415
- type: PropType<false | Partial< ActionBarProps>>;
3416
- default: boolean;
3417
- };
3418
- stripe: {
3419
- type: PropType<boolean>;
3420
- default: boolean;
3421
- };
3422
- rowStyle: {
3423
- type: PropType< CSSProperties | ((params: {
3424
- rowData: RecordType;
3425
- rowIndex: number;
3426
- }) => CSSProperties)>;
3427
- };
3428
- scrollbarAlwaysOn: {
3429
- type: PropType<boolean>;
3430
- default: boolean;
3431
- };
3432
- titleBar: {
3433
- type: PropType<boolean | {
3434
- title?: string | undefined;
3435
- refresh?: boolean | undefined;
3436
- }>;
3437
- default: boolean;
3438
- };
3439
- defaultSize: {
3440
- type: PropType<"" | "default" | "small" | "large">;
3441
- default: string;
3442
- };
3443
- tableData: {
3444
- type: PropType<RecordType[]>;
3445
- default: () => never[];
3446
- };
3447
- pagination: {
3448
- type: PropType<false | Partial<PlusPaginationProps>>;
3449
- default: boolean;
3450
- };
3451
- hasIndexColumn: {
3452
- type: PropType<boolean>;
3453
- default: boolean;
3454
- };
3455
- isSelection: {
3456
- type: PropType<boolean>;
3457
- default: boolean;
3458
- };
3459
- loadingStatus: {
3460
- type: PropType<boolean>;
3461
- default: boolean;
3462
- };
3463
- columnsEmptyText: {
3464
- type: PropType<string>;
3465
- default: string;
3466
- };
3467
- headerHeight: {
3468
- type: PropType<number>;
3469
- default: number;
3470
- };
3471
- rowClass: {
3472
- type: PropType<string | ((params: {
3473
- rowData: RecordType;
3474
- rowIndex: number;
3475
- }) => string)>;
3476
- };
3477
- rowHeight: {
3478
- type: PropType<number>;
3479
- default: number;
3480
- };
3481
- defaultColumnWidth: {
3482
- type: PropType<number>;
3483
- default: number;
3484
- };
3485
- selectionColumnWidth: {
3486
- type: PropType<number>;
3487
- default: number;
3488
- };
3489
- indexColumnWidth: {
3490
- type: PropType<number>;
3491
- default: number;
3492
- };
3493
- }>> & {
3494
- onSelect?: ((selection: RecordType[], row: RecordType) => any) | undefined;
3495
- onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
3496
- "onSelect-all"?: ((selection: RecordType[]) => any) | undefined;
3497
- "onSelection-change"?: ((selection: RecordType[]) => any) | undefined;
3498
- "onSort-change"?: ((data: {
3499
- column: VirtualTableColumn;
3500
- prop: string;
3501
- order: string | null;
3502
- }) => any) | undefined;
3503
- "onRow-click"?: ((rowData: RecordType, rowIndex: number) => any) | undefined;
3504
- onRefresh?: (() => any) | undefined;
3505
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3506
- }, "data" | "getSelectionRows" | "toggleRowSelection" | "clearSelection" | "toggleAllSelection" | "tableRef" | "scrollToRow"> & ShallowUnwrapRef<{
3507
- getSelectionRows: () => RecordType[];
3508
- clearSelection: () => void;
3509
- toggleRowSelection: (row: RecordType, selected?: boolean | undefined) => void;
3510
- toggleAllSelection: (selected?: boolean | undefined) => void;
3511
- scrollToRow: (rowIndex: number) => void;
3512
- data: ComputedRef<RecordType[]>;
3513
- tableRef: ShallowRef< TableV2Instance | null>;
3514
- }> & {} & ComponentCustomProperties & {} & {
3515
- $slots: {
3516
- title?(_: {}): any;
3517
- toolbar?(_: {}): any;
3518
- "pagination-left"?(_: {}): any;
3519
- "pagination-right"?(_: {}): any;
3520
- };
3521
- }) | null>;
3522
- getList: () => Promise<void>;
3523
- handleReset: (val: FieldValues) => void;
3524
- /**
3525
- * TODO: 将会在v0.2.0中移除
3526
- */
3527
- handleRest: (val: FieldValues) => void;
3528
- setSearchFieldsValue: (val: RecordType) => void;
3529
- getSearchFieldsValue: (key?: string | number | symbol | undefined) => FieldValueType;
3530
- clearSearchFieldsValue: () => void;
3531
- /**
3532
- * @version 0.1.23
3533
- */
3534
- setTableData: (data?: RecordType[] | undefined, _total?: number | undefined) => void;
3535
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3536
- search: (data: FieldValues) => void;
3537
- reset: (data: FieldValues) => void;
3538
- paginationChange: (pageInfo: PageInfo) => void;
3539
- requestError: (error: unknown) => void;
3540
- requestComplete: (tableData: RecordType[]) => void;
3541
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusPageProps>, {
3542
- params: () => {};
3543
- columns: () => never[];
3544
- postData: undefined;
3545
- beforeSearchSubmit: undefined;
3546
- isCard: boolean;
3547
- search: () => {};
3548
- table: () => {};
3549
- defaultPageInfo: () => {
3550
- page: number;
3551
- pageSize: number;
3552
- };
3553
- defaultPageSizeList: () => number[];
3554
- searchCardProps: () => {};
3555
- tableCardProps: () => {};
3556
- /**
3557
- * 分页组件的其他参数,不包含total,modelValue,pageSizeList
3558
- */
3559
- pagination: () => {};
3560
- immediate: boolean;
3561
- dividerProps: boolean;
3562
- pageInfoMap: () => {
3563
- page: string;
3564
- pageSize: string;
3565
- };
3566
- searchSlot: boolean;
3567
- columnsEmptyText: string;
3568
- }>>> & {
3569
- onReset?: ((data: FieldValues) => any) | undefined;
3570
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
3571
- onSearch?: ((data: FieldValues) => any) | undefined;
3572
- onRequestError?: ((error: unknown) => any) | undefined;
3573
- onRequestComplete?: ((tableData: RecordType[]) => any) | undefined;
3574
- }, {
3575
- search: false | Partial< PlusSearchSelfProps & PlusFormSelfProps & Partial< ElementPlusFormProps> & {
3576
- style?: CSSProperties | undefined;
3577
- class?: any;
3578
- } & RecordType>;
3579
- table: Partial< PlusTableSelfProps & Partial< TableProps<any[]>> & RecordType & {
3580
- style?: CSSProperties | undefined;
3581
- class?: any;
3582
- }>;
3583
- columns: PlusColumn[];
3584
- immediate: boolean;
3585
- params: RecordType;
3586
- pagination: false | Omit<PlusPaginationProps, "total" | "modelValue" | "pageSizeList">;
3587
- columnsEmptyText: string;
3588
- postData: <T_1 = RecordType[]>(data: T_1[]) => T_1[];
3589
- beforeSearchSubmit: <T_2 = RecordType>(params: T_2) => T_2;
3590
- isCard: boolean;
3591
- searchCardProps: Partial< Mutable<CardProps> & {
3592
- style?: CSSProperties | undefined;
3593
- class?: any;
3594
- } & RecordType>;
3595
- tableCardProps: Partial< Mutable<CardProps> & {
3596
- style?: CSSProperties | undefined;
3597
- class?: any;
3598
- } & RecordType>;
3599
- defaultPageInfo: PageInfo;
3600
- defaultPageSizeList: number[];
3601
- dividerProps: false | Partial<RecordType>;
3602
- pageInfoMap: {
3603
- page?: string | undefined;
3604
- pageSize?: string | undefined;
3605
- };
3606
- searchSlot: boolean;
3607
- }, {}>, Partial<Record<never, (_: {
3608
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
3609
- readonly label: string | ComputedRef<string>;
3610
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3611
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
3612
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
3613
- style?: CSSProperties | undefined;
3614
- class?: any;
3615
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3616
- style?: CSSProperties | undefined;
3617
- class?: any;
3618
- } & RecordType>>;
3619
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
3620
- [key: string]: any;
3621
- style?: CSSProperties | undefined;
3622
- }>;
3623
- readonly fieldProps: PropsItemType<Partial<{
3624
- [index: string]: any;
3625
- [index: number]: any;
3626
- [index: symbol]: any;
3627
- class: any;
3628
- style: CSSProperties;
3629
- modelModifiers: {
3630
- [index: string]: any;
3631
- lazy?: boolean | undefined;
3632
- trim?: boolean | undefined;
3633
- number?: boolean | undefined;
3634
- };
3635
- rows: number;
3636
- autocomplete: string;
3637
- type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
3638
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
3639
- step: string | number;
3640
- /**
3641
- * 所有列字段为空时显示的默认文本(全局配置)
3642
- * @version v0.2.0
3643
- * @default "-"
3644
- * @desc 当字段值为 null、undefined 或空字符串时,显示此文本
3645
- * @desc 优先级:列级别的 emptyText > columnsEmptyText > 默认 "-"
3646
- * @desc 仅对未定义 render/renderHTML 的字段生效
3647
- */
3648
- format: string | ProgressFn | undefined;
3649
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
3650
- id: string | [string, string];
3651
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
3652
- height: string | number;
3653
- autosize: InputAutoSize;
3654
- } & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< SelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
3655
- readonly options: OptionsType;
3656
- readonly fieldSlots: {
3657
- [slotName: string]: (data?: any) => RenderTypes;
3658
- };
3659
- readonly valueType: TableValueType | FormItemValueType;
3660
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
3661
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
3662
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
3663
- readonly renderErrorMessage: ((props: PlusColumn & {
3664
- value?: FieldValueType;
3665
- error?: string | undefined;
3666
- label?: string | undefined;
3667
- }) => RenderTypes) | undefined;
3668
- readonly optionsMap: {
3669
- label?: string | undefined;
3670
- value?: string | undefined;
3671
- } | undefined;
3672
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
3673
- store?: any;
3674
- method?: string | undefined;
3675
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
3676
- dictCode?: string | undefined;
3677
- } | undefined;
3678
- readonly clearable: boolean;
3679
- readonly ellipsis: boolean;
3680
- readonly index: number;
3681
- } & {
3682
- readonly ellipsis: boolean;
3683
- readonly clearable: boolean;
3684
- };
3685
- label: string;
3686
- fieldProps: RecordType;
3687
- formItemProps: RecordType;
3688
- options: OptionsRow<undefined>[];
3689
- fieldInstance?: any;
3690
- valueIsReady?: Ref<boolean> | undefined;
3691
- prop: string;
3692
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
3693
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
3694
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
3695
- style?: CSSProperties | undefined;
3696
- class?: any;
3697
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
3698
- style?: CSSProperties | undefined;
3699
- class?: any;
3700
- } & RecordType>>;
3701
- fieldSlots: {
3702
- [slotName: string]: (data?: any) => RenderTypes;
3703
- };
3704
- valueType: TableValueType | FormItemValueType;
3705
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
3706
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
3707
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
3708
- renderErrorMessage: ((props: PlusColumn & {
3709
- value?: FieldValueType;
3710
- error?: string | undefined;
3711
- label?: string | undefined;
3712
- }) => RenderTypes) | undefined;
3713
- optionsMap: {
3714
- label?: string | undefined;
3715
- value?: string | undefined;
3716
- } | undefined;
3717
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
3718
- store?: any;
3719
- method?: string | undefined;
3720
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
3721
- dictCode?: string | undefined;
3722
- } | undefined;
3723
- clearable: boolean;
3724
- ellipsis: boolean;
3725
- index: number;
3726
- }) => any>> & Partial<Record<never, (_: {
3727
- column: any;
3728
- prop: string;
3729
- valueType: TableValueType | FormItemValueType;
3730
- row: RecordType;
3731
- index: number;
3732
- rowIndex: number;
3733
- fieldProps: RecordType;
3734
- options: OptionsRow<undefined>[];
3735
- value: any;
3736
- }) => any>> & {
3737
- "search-footer"?(_: {
3738
- isShowUnfold: boolean;
3739
- handleReset: () => void;
3740
- handleSearch: () => void;
3741
- handleUnfold: (e: MouseEvent) => void;
3742
- searchLoading: boolean;
3743
- }): any;
3744
- extra?(_: {}): any;
3745
- "table-title"?(_: {}): any;
3746
- "table-toolbar"?(_: {}): any;
3747
- "pagination-left"?(_: {}): any;
3748
- "pagination-right"?(_: {}): any;
3749
- "table-expand"?(_: any): any;
3750
- "table-append"?(_: {}): any;
3751
- "table-empty"?(_: {}): any;
3752
- }>;
3753
- export default _default;
3754
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
3755
- type __VLS_TypePropsToRuntimeProps<T> = {
3756
- [K in keyof T]-?: {} extends Pick<T, K> ? {
3757
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
3758
- } : {
3759
- type: PropType<T[K]>;
3760
- required: true;
3761
- };
3762
- };
3763
- type __VLS_WithDefaults<P, D> = {
3764
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
3765
- default: D[K];
3766
- }> : P[K];
3767
- };
3768
- type __VLS_Prettify<T> = {
3769
- [K in keyof T]: T[K];
3770
- } & {};
3771
- type __VLS_WithTemplateSlots<T, S> = T & {
3772
- new (): {
3773
- $slots: S;
3774
- };
3775
- };