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,870 +0,0 @@
1
- import { PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
2
- import { LooseRequired } from '@vue/shared';
3
- import { FormItemRule, RowProps, ColProps, 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 } from 'element-plus';
4
- import { Arrayable, EpPropMergeType } from 'element-plus/es/utils';
5
- import { PlusFormGroupRow } from './src/type';
6
- import { PlusColumn, FieldValues, Mutable, RecordType, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components';
7
- import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, ComputedRef, Component } from 'vue';
8
- import { default as Form } from './src/index.vue';
9
-
10
- export type PlusFormInstance = InstanceType<typeof Form>;
11
- export * from './src/type';
12
- export declare const PlusForm: {
13
- new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
14
- collapseDuration: {
15
- type: PropType<number>;
16
- default: undefined;
17
- };
18
- collapseTransition: {
19
- type: PropType<boolean>;
20
- default: undefined;
21
- };
22
- columns: {
23
- type: PropType< PlusColumn[]>;
24
- default: () => never[];
25
- };
26
- group: {
27
- type: PropType<false | PlusFormGroupRow[]>;
28
- default: boolean;
29
- };
30
- layout: {
31
- type: PropType<"grid" | "flex">;
32
- default: undefined;
33
- };
34
- modelValue: {
35
- type: PropType<FieldValues>;
36
- default: () => {};
37
- };
38
- rules: {
39
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
40
- default: () => {};
41
- };
42
- labelPosition: {
43
- type: PropType<"top" | "right" | "left">;
44
- default: string;
45
- };
46
- labelWidth: {
47
- type: PropType<string | number>;
48
- default: string;
49
- };
50
- labelSuffix: {
51
- type: PropType<string>;
52
- default: string;
53
- };
54
- ellipsis: {
55
- type: PropType<boolean>;
56
- default: boolean;
57
- };
58
- defaultValues: {
59
- type: PropType<FieldValues>;
60
- default: () => {};
61
- };
62
- rowProps: {
63
- type: PropType<Partial< Mutable<RowProps> & {
64
- style?: CSSProperties | undefined;
65
- class?: any;
66
- } & RecordType>>;
67
- default: () => {};
68
- };
69
- colProps: {
70
- type: PropType<Partial< Mutable<ColProps> & {
71
- style?: CSSProperties | undefined;
72
- class?: any;
73
- } & RecordType>>;
74
- default: () => {};
75
- };
76
- hasErrorTip: {
77
- type: PropType<boolean>;
78
- default: boolean;
79
- };
80
- hasFooter: {
81
- type: PropType<boolean>;
82
- default: boolean;
83
- };
84
- hasReset: {
85
- type: PropType<boolean>;
86
- default: boolean;
87
- };
88
- hasLabel: {
89
- type: PropType<boolean>;
90
- default: boolean;
91
- };
92
- submitText: {
93
- type: PropType<string>;
94
- default: string;
95
- };
96
- resetText: {
97
- type: PropType<string>;
98
- default: string;
99
- };
100
- submitLoading: {
101
- type: PropType<boolean>;
102
- default: boolean;
103
- };
104
- footerAlign: {
105
- type: PropType<"right" | "left" | "center">;
106
- default: string;
107
- };
108
- cardProps: {
109
- type: PropType<Partial< Mutable<CardProps> & {
110
- style?: CSSProperties | undefined;
111
- class?: any;
112
- } & RecordType>>;
113
- default: () => {};
114
- };
115
- prevent: {
116
- type: PropType<boolean>;
117
- default: boolean;
118
- };
119
- clearable: {
120
- type: PropType<boolean>;
121
- default: boolean;
122
- };
123
- }>> & {
124
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
125
- onReset?: ((values: FieldValues) => any) | undefined;
126
- onSubmit?: ((values: FieldValues) => any) | undefined;
127
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
128
- onValidate?: ((...args: any[]) => any) | undefined;
129
- onSubmitError?: ((errors: unknown) => any) | undefined;
130
- }, {
131
- formInstance: Ref< FormInstance | null>;
132
- handleSubmit: () => void;
133
- handleReset: () => void;
134
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
135
- "update:modelValue": (values: FieldValues) => void;
136
- submit: (values: FieldValues) => void;
137
- change: (values: FieldValues, column: PlusColumn) => void;
138
- reset: (values: FieldValues) => void;
139
- submitError: (errors: unknown) => void;
140
- validate: (...args: any[]) => void;
141
- }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
142
- collapseDuration: {
143
- type: PropType<number>;
144
- default: undefined;
145
- };
146
- collapseTransition: {
147
- type: PropType<boolean>;
148
- default: undefined;
149
- };
150
- columns: {
151
- type: PropType< PlusColumn[]>;
152
- default: () => never[];
153
- };
154
- group: {
155
- type: PropType<false | PlusFormGroupRow[]>;
156
- default: boolean;
157
- };
158
- layout: {
159
- type: PropType<"grid" | "flex">;
160
- default: undefined;
161
- };
162
- modelValue: {
163
- type: PropType<FieldValues>;
164
- default: () => {};
165
- };
166
- rules: {
167
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
168
- default: () => {};
169
- };
170
- labelPosition: {
171
- type: PropType<"top" | "right" | "left">;
172
- default: string;
173
- };
174
- labelWidth: {
175
- type: PropType<string | number>;
176
- default: string;
177
- };
178
- labelSuffix: {
179
- type: PropType<string>;
180
- default: string;
181
- };
182
- ellipsis: {
183
- type: PropType<boolean>;
184
- default: boolean;
185
- };
186
- defaultValues: {
187
- type: PropType<FieldValues>;
188
- default: () => {};
189
- };
190
- rowProps: {
191
- type: PropType<Partial< Mutable<RowProps> & {
192
- style?: CSSProperties | undefined;
193
- class?: any;
194
- } & RecordType>>;
195
- default: () => {};
196
- };
197
- colProps: {
198
- type: PropType<Partial< Mutable<ColProps> & {
199
- style?: CSSProperties | undefined;
200
- class?: any;
201
- } & RecordType>>;
202
- default: () => {};
203
- };
204
- hasErrorTip: {
205
- type: PropType<boolean>;
206
- default: boolean;
207
- };
208
- hasFooter: {
209
- type: PropType<boolean>;
210
- default: boolean;
211
- };
212
- hasReset: {
213
- type: PropType<boolean>;
214
- default: boolean;
215
- };
216
- hasLabel: {
217
- type: PropType<boolean>;
218
- default: boolean;
219
- };
220
- submitText: {
221
- type: PropType<string>;
222
- default: string;
223
- };
224
- resetText: {
225
- type: PropType<string>;
226
- default: string;
227
- };
228
- submitLoading: {
229
- type: PropType<boolean>;
230
- default: boolean;
231
- };
232
- footerAlign: {
233
- type: PropType<"right" | "left" | "center">;
234
- default: string;
235
- };
236
- cardProps: {
237
- type: PropType<Partial< Mutable<CardProps> & {
238
- style?: CSSProperties | undefined;
239
- class?: any;
240
- } & RecordType>>;
241
- default: () => {};
242
- };
243
- prevent: {
244
- type: PropType<boolean>;
245
- default: boolean;
246
- };
247
- clearable: {
248
- type: PropType<boolean>;
249
- default: boolean;
250
- };
251
- }>> & {
252
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
253
- onReset?: ((values: FieldValues) => any) | undefined;
254
- onSubmit?: ((values: FieldValues) => any) | undefined;
255
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
256
- onValidate?: ((...args: any[]) => any) | undefined;
257
- onSubmitError?: ((errors: unknown) => any) | undefined;
258
- }, {
259
- collapseDuration: number;
260
- collapseTransition: boolean;
261
- columns: PlusColumn[];
262
- group: false | PlusFormGroupRow[];
263
- layout: "grid" | "flex";
264
- modelValue: FieldValues;
265
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
266
- labelPosition: "top" | "right" | "left";
267
- labelWidth: string | number;
268
- labelSuffix: string;
269
- ellipsis: boolean;
270
- defaultValues: FieldValues;
271
- rowProps: Partial< Mutable<RowProps> & {
272
- style?: CSSProperties | undefined;
273
- class?: any;
274
- } & RecordType>;
275
- colProps: Partial< Mutable<ColProps> & {
276
- style?: CSSProperties | undefined;
277
- class?: any;
278
- } & RecordType>;
279
- hasErrorTip: boolean;
280
- hasFooter: boolean;
281
- hasReset: boolean;
282
- hasLabel: boolean;
283
- submitText: string;
284
- resetText: string;
285
- submitLoading: boolean;
286
- footerAlign: "right" | "left" | "center";
287
- cardProps: Partial< Mutable<CardProps> & {
288
- style?: CSSProperties | undefined;
289
- class?: any;
290
- } & RecordType>;
291
- prevent: boolean;
292
- clearable: boolean;
293
- }, true, {}, {}, {
294
- P: {};
295
- B: {};
296
- D: {};
297
- C: {};
298
- M: {};
299
- Defaults: {};
300
- }, Readonly< ExtractPropTypes<{
301
- collapseDuration: {
302
- type: PropType<number>;
303
- default: undefined;
304
- };
305
- collapseTransition: {
306
- type: PropType<boolean>;
307
- default: undefined;
308
- };
309
- columns: {
310
- type: PropType< PlusColumn[]>;
311
- default: () => never[];
312
- };
313
- group: {
314
- type: PropType<false | PlusFormGroupRow[]>;
315
- default: boolean;
316
- };
317
- layout: {
318
- type: PropType<"grid" | "flex">;
319
- default: undefined;
320
- };
321
- modelValue: {
322
- type: PropType<FieldValues>;
323
- default: () => {};
324
- };
325
- rules: {
326
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
327
- default: () => {};
328
- };
329
- labelPosition: {
330
- type: PropType<"top" | "right" | "left">;
331
- default: string;
332
- };
333
- labelWidth: {
334
- type: PropType<string | number>;
335
- default: string;
336
- };
337
- labelSuffix: {
338
- type: PropType<string>;
339
- default: string;
340
- };
341
- ellipsis: {
342
- type: PropType<boolean>;
343
- default: boolean;
344
- };
345
- defaultValues: {
346
- type: PropType<FieldValues>;
347
- default: () => {};
348
- };
349
- rowProps: {
350
- type: PropType<Partial< Mutable<RowProps> & {
351
- style?: CSSProperties | undefined;
352
- class?: any;
353
- } & RecordType>>;
354
- default: () => {};
355
- };
356
- colProps: {
357
- type: PropType<Partial< Mutable<ColProps> & {
358
- style?: CSSProperties | undefined;
359
- class?: any;
360
- } & RecordType>>;
361
- default: () => {};
362
- };
363
- hasErrorTip: {
364
- type: PropType<boolean>;
365
- default: boolean;
366
- };
367
- hasFooter: {
368
- type: PropType<boolean>;
369
- default: boolean;
370
- };
371
- hasReset: {
372
- type: PropType<boolean>;
373
- default: boolean;
374
- };
375
- hasLabel: {
376
- type: PropType<boolean>;
377
- default: boolean;
378
- };
379
- submitText: {
380
- type: PropType<string>;
381
- default: string;
382
- };
383
- resetText: {
384
- type: PropType<string>;
385
- default: string;
386
- };
387
- submitLoading: {
388
- type: PropType<boolean>;
389
- default: boolean;
390
- };
391
- footerAlign: {
392
- type: PropType<"right" | "left" | "center">;
393
- default: string;
394
- };
395
- cardProps: {
396
- type: PropType<Partial< Mutable<CardProps> & {
397
- style?: CSSProperties | undefined;
398
- class?: any;
399
- } & RecordType>>;
400
- default: () => {};
401
- };
402
- prevent: {
403
- type: PropType<boolean>;
404
- default: boolean;
405
- };
406
- clearable: {
407
- type: PropType<boolean>;
408
- default: boolean;
409
- };
410
- }>> & {
411
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
412
- onReset?: ((values: FieldValues) => any) | undefined;
413
- onSubmit?: ((values: FieldValues) => any) | undefined;
414
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
415
- onValidate?: ((...args: any[]) => any) | undefined;
416
- onSubmitError?: ((errors: unknown) => any) | undefined;
417
- }, {
418
- formInstance: Ref< FormInstance | null>;
419
- handleSubmit: () => void;
420
- handleReset: () => void;
421
- }, {}, {}, {}, {
422
- collapseDuration: number;
423
- collapseTransition: boolean;
424
- columns: PlusColumn[];
425
- group: false | PlusFormGroupRow[];
426
- layout: "grid" | "flex";
427
- modelValue: FieldValues;
428
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
429
- labelPosition: "top" | "right" | "left";
430
- labelWidth: string | number;
431
- labelSuffix: string;
432
- ellipsis: boolean;
433
- defaultValues: FieldValues;
434
- rowProps: Partial< Mutable<RowProps> & {
435
- style?: CSSProperties | undefined;
436
- class?: any;
437
- } & RecordType>;
438
- colProps: Partial< Mutable<ColProps> & {
439
- style?: CSSProperties | undefined;
440
- class?: any;
441
- } & RecordType>;
442
- hasErrorTip: boolean;
443
- hasFooter: boolean;
444
- hasReset: boolean;
445
- hasLabel: boolean;
446
- submitText: string;
447
- resetText: string;
448
- submitLoading: boolean;
449
- footerAlign: "right" | "left" | "center";
450
- cardProps: Partial< Mutable<CardProps> & {
451
- style?: CSSProperties | undefined;
452
- class?: any;
453
- } & RecordType>;
454
- prevent: boolean;
455
- clearable: boolean;
456
- }>;
457
- __isFragment?: undefined;
458
- __isTeleport?: undefined;
459
- __isSuspense?: undefined;
460
- } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
461
- collapseDuration: {
462
- type: PropType<number>;
463
- default: undefined;
464
- };
465
- collapseTransition: {
466
- type: PropType<boolean>;
467
- default: undefined;
468
- };
469
- columns: {
470
- type: PropType< PlusColumn[]>;
471
- default: () => never[];
472
- };
473
- group: {
474
- type: PropType<false | PlusFormGroupRow[]>;
475
- default: boolean;
476
- };
477
- layout: {
478
- type: PropType<"grid" | "flex">;
479
- default: undefined;
480
- };
481
- modelValue: {
482
- type: PropType<FieldValues>;
483
- default: () => {};
484
- };
485
- rules: {
486
- type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
487
- default: () => {};
488
- };
489
- labelPosition: {
490
- type: PropType<"top" | "right" | "left">;
491
- default: string;
492
- };
493
- labelWidth: {
494
- type: PropType<string | number>;
495
- default: string;
496
- };
497
- labelSuffix: {
498
- type: PropType<string>;
499
- default: string;
500
- };
501
- ellipsis: {
502
- type: PropType<boolean>;
503
- default: boolean;
504
- };
505
- defaultValues: {
506
- type: PropType<FieldValues>;
507
- default: () => {};
508
- };
509
- rowProps: {
510
- type: PropType<Partial< Mutable<RowProps> & {
511
- style?: CSSProperties | undefined;
512
- class?: any;
513
- } & RecordType>>;
514
- default: () => {};
515
- };
516
- colProps: {
517
- type: PropType<Partial< Mutable<ColProps> & {
518
- style?: CSSProperties | undefined;
519
- class?: any;
520
- } & RecordType>>;
521
- default: () => {};
522
- };
523
- hasErrorTip: {
524
- type: PropType<boolean>;
525
- default: boolean;
526
- };
527
- hasFooter: {
528
- type: PropType<boolean>;
529
- default: boolean;
530
- };
531
- hasReset: {
532
- type: PropType<boolean>;
533
- default: boolean;
534
- };
535
- hasLabel: {
536
- type: PropType<boolean>;
537
- default: boolean;
538
- };
539
- submitText: {
540
- type: PropType<string>;
541
- default: string;
542
- };
543
- resetText: {
544
- type: PropType<string>;
545
- default: string;
546
- };
547
- submitLoading: {
548
- type: PropType<boolean>;
549
- default: boolean;
550
- };
551
- footerAlign: {
552
- type: PropType<"right" | "left" | "center">;
553
- default: string;
554
- };
555
- cardProps: {
556
- type: PropType<Partial< Mutable<CardProps> & {
557
- style?: CSSProperties | undefined;
558
- class?: any;
559
- } & RecordType>>;
560
- default: () => {};
561
- };
562
- prevent: {
563
- type: PropType<boolean>;
564
- default: boolean;
565
- };
566
- clearable: {
567
- type: PropType<boolean>;
568
- default: boolean;
569
- };
570
- }>> & {
571
- onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
572
- onReset?: ((values: FieldValues) => any) | undefined;
573
- onSubmit?: ((values: FieldValues) => any) | undefined;
574
- "onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
575
- onValidate?: ((...args: any[]) => any) | undefined;
576
- onSubmitError?: ((errors: unknown) => any) | undefined;
577
- }, {
578
- formInstance: Ref< FormInstance | null>;
579
- handleSubmit: () => void;
580
- handleReset: () => void;
581
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
582
- "update:modelValue": (values: FieldValues) => void;
583
- submit: (values: FieldValues) => void;
584
- change: (values: FieldValues, column: PlusColumn) => void;
585
- reset: (values: FieldValues) => void;
586
- submitError: (errors: unknown) => void;
587
- validate: (...args: any[]) => void;
588
- }, string, {
589
- collapseDuration: number;
590
- collapseTransition: boolean;
591
- columns: PlusColumn[];
592
- group: false | PlusFormGroupRow[];
593
- layout: "grid" | "flex";
594
- modelValue: FieldValues;
595
- rules: Partial<Record<string, Arrayable<FormItemRule>>>;
596
- labelPosition: "top" | "right" | "left";
597
- labelWidth: string | number;
598
- labelSuffix: string;
599
- ellipsis: boolean;
600
- defaultValues: FieldValues;
601
- rowProps: Partial< Mutable<RowProps> & {
602
- style?: CSSProperties | undefined;
603
- class?: any;
604
- } & RecordType>;
605
- colProps: Partial< Mutable<ColProps> & {
606
- style?: CSSProperties | undefined;
607
- class?: any;
608
- } & RecordType>;
609
- hasErrorTip: boolean;
610
- hasFooter: boolean;
611
- hasReset: boolean;
612
- hasLabel: boolean;
613
- submitText: string;
614
- resetText: string;
615
- submitLoading: boolean;
616
- footerAlign: "right" | "left" | "center";
617
- cardProps: Partial< Mutable<CardProps> & {
618
- style?: CSSProperties | undefined;
619
- class?: any;
620
- } & RecordType>;
621
- prevent: boolean;
622
- clearable: boolean;
623
- }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
624
- $slots: Partial<Record<string, (_: {
625
- index: number;
626
- title: string | ComputedRef<string>;
627
- name?: string | undefined;
628
- icon?: Component | undefined;
629
- cardProps?: Partial< Mutable<CardProps> & {
630
- style?: CSSProperties | undefined;
631
- class?: any;
632
- } & RecordType> | undefined;
633
- hideInGroup?: boolean | ComputedRef<boolean> | undefined;
634
- columns?: PlusColumn[] | undefined;
635
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
636
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
637
- readonly label: string | ComputedRef<string>;
638
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
639
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
640
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
641
- style?: CSSProperties | undefined;
642
- class?: any;
643
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
644
- style?: CSSProperties | undefined;
645
- class?: any;
646
- } & RecordType>>;
647
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
648
- [key: string]: any;
649
- style?: CSSProperties | undefined;
650
- }>;
651
- readonly fieldProps: PropsItemType<Partial<{
652
- [index: string]: any;
653
- [index: number]: any;
654
- [index: symbol]: any;
655
- class: any;
656
- style: CSSProperties;
657
- modelModifiers: {
658
- [index: string]: any;
659
- lazy?: boolean | undefined;
660
- trim?: boolean | undefined;
661
- number?: boolean | undefined;
662
- };
663
- rows: number;
664
- autocomplete: string;
665
- 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;
666
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
667
- step: string | number;
668
- format: string | ProgressFn | undefined;
669
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
670
- id: string | [string, string];
671
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
672
- height: string | number;
673
- autosize: InputAutoSize;
674
- } & 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>>>>;
675
- readonly options: OptionsType;
676
- readonly fieldSlots: {
677
- [slotName: string]: (data?: any) => RenderTypes;
678
- };
679
- readonly valueType: TableValueType | FormItemValueType;
680
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
681
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
682
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
683
- readonly renderErrorMessage: ((props: PlusColumn & {
684
- value?: FieldValueType;
685
- error?: string | undefined;
686
- label?: string | undefined;
687
- }) => RenderTypes) | undefined;
688
- readonly optionsMap: {
689
- label?: string | undefined;
690
- value?: string | undefined;
691
- } | undefined;
692
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
693
- store?: any;
694
- method?: string | undefined;
695
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
696
- dictCode?: string | undefined;
697
- } | undefined;
698
- readonly clearable: boolean;
699
- readonly ellipsis: boolean;
700
- readonly index: number;
701
- } & {
702
- readonly ellipsis: boolean;
703
- readonly clearable: boolean;
704
- };
705
- label: string;
706
- fieldProps: RecordType;
707
- formItemProps: RecordType;
708
- options: OptionsRow<undefined>[];
709
- fieldInstance?: any;
710
- valueIsReady?: Ref<boolean> | undefined;
711
- prop: string;
712
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
713
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
714
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
715
- style?: CSSProperties | undefined;
716
- class?: any;
717
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
718
- style?: CSSProperties | undefined;
719
- class?: any;
720
- } & RecordType>>;
721
- fieldSlots: {
722
- [slotName: string]: (data?: any) => RenderTypes;
723
- };
724
- valueType: TableValueType | FormItemValueType;
725
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
726
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
727
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
728
- renderErrorMessage: ((props: PlusColumn & {
729
- value?: FieldValueType;
730
- error?: string | undefined;
731
- label?: string | undefined;
732
- }) => RenderTypes) | undefined;
733
- optionsMap: {
734
- label?: string | undefined;
735
- value?: string | undefined;
736
- } | undefined;
737
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
738
- store?: any;
739
- method?: string | undefined;
740
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
741
- dictCode?: string | undefined;
742
- } | undefined;
743
- clearable: boolean;
744
- ellipsis: boolean;
745
- index: number;
746
- }) => any>> & Partial<Record<NonNullable<string | number>, (_: {
747
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "ellipsis" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
748
- readonly label: string | ComputedRef<string>;
749
- readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
750
- readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
751
- readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
752
- style?: CSSProperties | undefined;
753
- class?: any;
754
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
755
- style?: CSSProperties | undefined;
756
- class?: any;
757
- } & RecordType>>;
758
- readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
759
- [key: string]: any;
760
- style?: CSSProperties | undefined;
761
- }>;
762
- readonly fieldProps: PropsItemType<Partial<{
763
- [index: string]: any;
764
- [index: number]: any;
765
- [index: symbol]: any;
766
- class: any;
767
- style: CSSProperties;
768
- modelModifiers: {
769
- [index: string]: any;
770
- lazy?: boolean | undefined;
771
- trim?: boolean | undefined;
772
- number?: boolean | undefined;
773
- };
774
- rows: number;
775
- autocomplete: string;
776
- 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;
777
- loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
778
- step: string | number;
779
- format: string | ProgressFn | undefined;
780
- filterMethod: ((node: CascaderNode, keyword: string) => boolean) | ((query: string) => void) | undefined;
781
- id: string | [string, string];
782
- effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
783
- height: string | number;
784
- autosize: InputAutoSize;
785
- } & 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>>>>;
786
- readonly options: OptionsType;
787
- readonly fieldSlots: {
788
- [slotName: string]: (data?: any) => RenderTypes;
789
- };
790
- readonly valueType: TableValueType | FormItemValueType;
791
- readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
792
- readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
793
- readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
794
- readonly renderErrorMessage: ((props: PlusColumn & {
795
- value?: FieldValueType;
796
- error?: string | undefined;
797
- label?: string | undefined;
798
- }) => RenderTypes) | undefined;
799
- readonly optionsMap: {
800
- label?: string | undefined;
801
- value?: string | undefined;
802
- } | undefined;
803
- readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
804
- store?: any;
805
- method?: string | undefined;
806
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
807
- dictCode?: string | undefined;
808
- } | undefined;
809
- readonly clearable: boolean;
810
- readonly ellipsis: boolean;
811
- readonly index: number;
812
- } & {
813
- readonly ellipsis: boolean;
814
- readonly clearable: boolean;
815
- };
816
- label: string;
817
- fieldProps: RecordType;
818
- formItemProps: RecordType;
819
- options: OptionsRow<undefined>[];
820
- fieldInstance?: any;
821
- valueIsReady?: Ref<boolean> | undefined;
822
- prop: string;
823
- modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
824
- hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
825
- tooltip: string | Partial< Mutable<ElTooltipProps> & {
826
- style?: CSSProperties | undefined;
827
- class?: any;
828
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
829
- style?: CSSProperties | undefined;
830
- class?: any;
831
- } & RecordType>>;
832
- fieldSlots: {
833
- [slotName: string]: (data?: any) => RenderTypes;
834
- };
835
- valueType: TableValueType | FormItemValueType;
836
- renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
837
- renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
838
- fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
839
- renderErrorMessage: ((props: PlusColumn & {
840
- value?: FieldValueType;
841
- error?: string | undefined;
842
- label?: string | undefined;
843
- }) => RenderTypes) | undefined;
844
- optionsMap: {
845
- label?: string | undefined;
846
- value?: string | undefined;
847
- } | undefined;
848
- autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
849
- store?: any;
850
- method?: string | undefined;
851
- transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
852
- dictCode?: string | undefined;
853
- } | undefined;
854
- clearable: boolean;
855
- ellipsis: boolean;
856
- index: number;
857
- }) => any>> & {
858
- default?(_: {}): any;
859
- "group-header"?(_: {
860
- title: string;
861
- columns: PlusColumn[] | undefined;
862
- icon: Component | undefined;
863
- index: number;
864
- }): any;
865
- footer?(_: {
866
- handleReset: () => void;
867
- handleSubmit: () => void;
868
- }): any;
869
- };
870
- });