mwl-components 0.0.23 → 0.1.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.
- package/dist/EasyForm/index.vue.d.ts +5 -681
- package/dist/EasyFormH/index.vue.d.ts +64 -0
- package/dist/EasyTable/index.vue.d.ts +1 -18
- package/dist/EasyTableH/index.vue.d.ts +114 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +470 -436
- package/dist/mwl-components.css +1 -1
- package/dist/types/index.d.ts +105 -0
- package/package.json +7 -6
- package/dist/EasyTable/tableColumnItem.vue.d.ts +0 -19
|
@@ -1,404 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
required?: boolean;
|
|
4
|
-
message: string;
|
|
5
|
-
pattern?: RegExp;
|
|
6
|
-
validator?: (rule: any, value: any, callback: any) => void;
|
|
7
|
-
trigger: string | any[];
|
|
8
|
-
};
|
|
9
|
-
export type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'bottom' | 'right' | 'left' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
10
|
-
export interface FormItem {
|
|
11
|
-
type: 'switch' | 'textarea' | 'number' | '' | 'text' | 'checkbox' | 'radio' | 'multipleselect' | 'select' | 'select-v2' | 'date' | 'datetime' | 'month' | 'year' | 'daterange' | 'upload' | 'group' | 'cascader' | 'custom';
|
|
12
|
-
rule?: rule[];
|
|
13
|
-
hidden?: boolean;
|
|
14
|
-
prop: string;
|
|
15
|
-
label: string;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
width?: string;
|
|
19
|
-
clearable?: boolean;
|
|
20
|
-
filterable?: boolean;
|
|
21
|
-
defaultProp?: {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
};
|
|
25
|
-
maxlength?: number;
|
|
26
|
-
options?: Array<{
|
|
27
|
-
label: string;
|
|
28
|
-
value: string | number;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}>;
|
|
31
|
-
valueFormat?: string;
|
|
32
|
-
format?: string;
|
|
33
|
-
showType?: string;
|
|
34
|
-
remoteMethod?: (value: string, callback: (list: any[]) => void) => any;
|
|
35
|
-
fileLimit?: number;
|
|
36
|
-
disabledDate?: (time: any) => boolean;
|
|
37
|
-
change?: (item: any, value?: any) => void;
|
|
38
|
-
input?: (item: any, value?: any) => void;
|
|
39
|
-
focus?: (item: any, value?: any) => void;
|
|
40
|
-
blur?: (item: any, value?: any) => void;
|
|
41
|
-
customOption?: any[];
|
|
42
|
-
filterMethod?: Function;
|
|
43
|
-
labelWidth?: string;
|
|
44
|
-
shortcuts?: Array<{
|
|
45
|
-
text: string;
|
|
46
|
-
value: Date | Function;
|
|
47
|
-
}>;
|
|
48
|
-
popperClass?: string;
|
|
49
|
-
teleported?: boolean;
|
|
50
|
-
allowCreate?: boolean;
|
|
51
|
-
collapseTags?: boolean;
|
|
52
|
-
collapseTagsTooltip?: boolean;
|
|
53
|
-
tooltip?: string;
|
|
54
|
-
amount?: string;
|
|
55
|
-
placement?: Placement;
|
|
56
|
-
multiple?: boolean;
|
|
57
|
-
min?: number;
|
|
58
|
-
max?: number;
|
|
59
|
-
precision?: number;
|
|
60
|
-
step?: number;
|
|
61
|
-
stepStrictly?: boolean;
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
}
|
|
2
|
+
import { FormItem } from '../types';
|
|
64
3
|
declare function __VLS_template(): {
|
|
65
4
|
attrs: Partial<{}>;
|
|
66
|
-
slots:
|
|
67
|
-
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
rule?: rule[];
|
|
70
|
-
hidden?: boolean;
|
|
71
|
-
prop: string;
|
|
72
|
-
label: string;
|
|
73
|
-
disabled?: boolean;
|
|
74
|
-
placeholder?: string;
|
|
75
|
-
width?: string;
|
|
76
|
-
clearable?: boolean;
|
|
77
|
-
filterable?: boolean;
|
|
78
|
-
defaultProp?: {
|
|
79
|
-
label: string;
|
|
80
|
-
value: string;
|
|
81
|
-
};
|
|
82
|
-
maxlength?: number;
|
|
83
|
-
options?: Array<{
|
|
84
|
-
label: string;
|
|
85
|
-
value: string | number;
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
}>;
|
|
88
|
-
valueFormat?: string;
|
|
89
|
-
format?: string;
|
|
90
|
-
showType?: string;
|
|
91
|
-
remoteMethod?: (value: string, callback: (list: any[]) => void) => any;
|
|
92
|
-
fileLimit?: number;
|
|
93
|
-
disabledDate?: (time: any) => boolean;
|
|
94
|
-
change?: (item: any, value?: any) => void;
|
|
95
|
-
input?: (item: any, value?: any) => void;
|
|
96
|
-
focus?: (item: any, value?: any) => void;
|
|
97
|
-
blur?: (item: any, value?: any) => void;
|
|
98
|
-
customOption?: any[];
|
|
99
|
-
filterMethod?: Function;
|
|
100
|
-
labelWidth?: string;
|
|
101
|
-
shortcuts?: Array<{
|
|
102
|
-
text: string;
|
|
103
|
-
value: Date | Function;
|
|
104
|
-
}>;
|
|
105
|
-
popperClass?: string;
|
|
106
|
-
teleported?: boolean;
|
|
107
|
-
allowCreate?: boolean;
|
|
108
|
-
collapseTags?: boolean;
|
|
109
|
-
collapseTagsTooltip?: boolean;
|
|
110
|
-
tooltip?: string;
|
|
111
|
-
amount?: string;
|
|
112
|
-
placement?: Placement;
|
|
113
|
-
multiple?: boolean;
|
|
114
|
-
min?: number;
|
|
115
|
-
max?: number;
|
|
116
|
-
precision?: number;
|
|
117
|
-
step?: number;
|
|
118
|
-
stepStrictly?: boolean;
|
|
119
|
-
};
|
|
120
|
-
}) => any>> & {
|
|
121
|
-
append?(_: {}): any;
|
|
122
|
-
};
|
|
123
|
-
refs: {
|
|
124
|
-
formRef: ({
|
|
125
|
-
$: import('vue').ComponentInternalInstance;
|
|
126
|
-
$data: {};
|
|
127
|
-
$props: Partial<{
|
|
128
|
-
readonly disabled: boolean;
|
|
129
|
-
readonly inline: boolean;
|
|
130
|
-
readonly labelWidth: string | number;
|
|
131
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
132
|
-
readonly inlineMessage: boolean;
|
|
133
|
-
readonly showMessage: boolean;
|
|
134
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
135
|
-
readonly labelSuffix: string;
|
|
136
|
-
readonly validateOnRuleChange: boolean;
|
|
137
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
138
|
-
readonly statusIcon: boolean;
|
|
139
|
-
readonly hideRequiredAsterisk: boolean;
|
|
140
|
-
readonly scrollToError: boolean;
|
|
141
|
-
}> & Omit<{
|
|
142
|
-
readonly disabled: boolean;
|
|
143
|
-
readonly labelWidth: string | number;
|
|
144
|
-
readonly inline: boolean;
|
|
145
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
146
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
147
|
-
readonly labelSuffix: string;
|
|
148
|
-
readonly inlineMessage: boolean;
|
|
149
|
-
readonly statusIcon: boolean;
|
|
150
|
-
readonly showMessage: boolean;
|
|
151
|
-
readonly validateOnRuleChange: boolean;
|
|
152
|
-
readonly hideRequiredAsterisk: boolean;
|
|
153
|
-
readonly scrollToError: boolean;
|
|
154
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
155
|
-
readonly size?: ("" | "small" | "default" | "large") | undefined;
|
|
156
|
-
readonly model?: Record<string, any> | undefined;
|
|
157
|
-
readonly rules?: Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>> | undefined;
|
|
158
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
159
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "labelWidth" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
160
|
-
$attrs: {
|
|
161
|
-
[x: string]: unknown;
|
|
162
|
-
};
|
|
163
|
-
$refs: {
|
|
164
|
-
[x: string]: unknown;
|
|
165
|
-
};
|
|
166
|
-
$slots: Readonly<{
|
|
167
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
168
|
-
}>;
|
|
169
|
-
$root: ComponentPublicInstance | null;
|
|
170
|
-
$parent: ComponentPublicInstance | null;
|
|
171
|
-
$host: Element | null;
|
|
172
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
173
|
-
$el: any;
|
|
174
|
-
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
175
|
-
readonly model: ObjectConstructor;
|
|
176
|
-
readonly rules: {
|
|
177
|
-
readonly type: PropType<Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>>>;
|
|
178
|
-
readonly required: false;
|
|
179
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
180
|
-
__epPropKey: true;
|
|
181
|
-
};
|
|
182
|
-
readonly labelPosition: {
|
|
183
|
-
readonly type: PropType<"right" | "top" | "left">;
|
|
184
|
-
readonly required: false;
|
|
185
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
186
|
-
__epPropKey: true;
|
|
187
|
-
} & {
|
|
188
|
-
readonly default: "right";
|
|
189
|
-
};
|
|
190
|
-
readonly requireAsteriskPosition: {
|
|
191
|
-
readonly type: PropType<"right" | "left">;
|
|
192
|
-
readonly required: false;
|
|
193
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
194
|
-
__epPropKey: true;
|
|
195
|
-
} & {
|
|
196
|
-
readonly default: "left";
|
|
197
|
-
};
|
|
198
|
-
readonly labelWidth: {
|
|
199
|
-
readonly type: PropType<string | number>;
|
|
200
|
-
readonly required: false;
|
|
201
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
202
|
-
__epPropKey: true;
|
|
203
|
-
} & {
|
|
204
|
-
readonly default: "";
|
|
205
|
-
};
|
|
206
|
-
readonly labelSuffix: {
|
|
207
|
-
readonly type: PropType<string>;
|
|
208
|
-
readonly required: false;
|
|
209
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
210
|
-
__epPropKey: true;
|
|
211
|
-
} & {
|
|
212
|
-
readonly default: "";
|
|
213
|
-
};
|
|
214
|
-
readonly inline: BooleanConstructor;
|
|
215
|
-
readonly inlineMessage: BooleanConstructor;
|
|
216
|
-
readonly statusIcon: BooleanConstructor;
|
|
217
|
-
readonly showMessage: {
|
|
218
|
-
readonly type: PropType<boolean>;
|
|
219
|
-
readonly required: false;
|
|
220
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
221
|
-
__epPropKey: true;
|
|
222
|
-
} & {
|
|
223
|
-
readonly default: true;
|
|
224
|
-
};
|
|
225
|
-
readonly validateOnRuleChange: {
|
|
226
|
-
readonly type: PropType<boolean>;
|
|
227
|
-
readonly required: false;
|
|
228
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
229
|
-
__epPropKey: true;
|
|
230
|
-
} & {
|
|
231
|
-
readonly default: true;
|
|
232
|
-
};
|
|
233
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
234
|
-
readonly scrollToError: BooleanConstructor;
|
|
235
|
-
readonly scrollIntoViewOptions: {
|
|
236
|
-
readonly type: PropType<boolean | Record<string, any>>;
|
|
237
|
-
readonly required: false;
|
|
238
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
239
|
-
__epPropKey: true;
|
|
240
|
-
} & {
|
|
241
|
-
readonly default: true;
|
|
242
|
-
};
|
|
243
|
-
readonly size: {
|
|
244
|
-
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
245
|
-
readonly required: false;
|
|
246
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
247
|
-
__epPropKey: true;
|
|
248
|
-
};
|
|
249
|
-
readonly disabled: BooleanConstructor;
|
|
250
|
-
}>> & {
|
|
251
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
252
|
-
}, {
|
|
253
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
254
|
-
validateField: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[], callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
255
|
-
resetFields: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
256
|
-
clearValidate: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
257
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
258
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
259
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
260
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
261
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
262
|
-
}, string, {
|
|
263
|
-
readonly disabled: boolean;
|
|
264
|
-
readonly inline: boolean;
|
|
265
|
-
readonly labelWidth: string | number;
|
|
266
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
267
|
-
readonly inlineMessage: boolean;
|
|
268
|
-
readonly showMessage: boolean;
|
|
269
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
270
|
-
readonly labelSuffix: string;
|
|
271
|
-
readonly validateOnRuleChange: boolean;
|
|
272
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
273
|
-
readonly statusIcon: boolean;
|
|
274
|
-
readonly hideRequiredAsterisk: boolean;
|
|
275
|
-
readonly scrollToError: boolean;
|
|
276
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
277
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
278
|
-
created?: (() => void) | (() => void)[];
|
|
279
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
280
|
-
mounted?: (() => void) | (() => void)[];
|
|
281
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
282
|
-
updated?: (() => void) | (() => void)[];
|
|
283
|
-
activated?: (() => void) | (() => void)[];
|
|
284
|
-
deactivated?: (() => void) | (() => void)[];
|
|
285
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
286
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
287
|
-
destroyed?: (() => void) | (() => void)[];
|
|
288
|
-
unmounted?: (() => void) | (() => void)[];
|
|
289
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
290
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
291
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
292
|
-
};
|
|
293
|
-
$forceUpdate: () => void;
|
|
294
|
-
$nextTick: typeof import('vue').nextTick;
|
|
295
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
296
|
-
} & Readonly<{
|
|
297
|
-
readonly disabled: boolean;
|
|
298
|
-
readonly inline: boolean;
|
|
299
|
-
readonly labelWidth: string | number;
|
|
300
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
301
|
-
readonly inlineMessage: boolean;
|
|
302
|
-
readonly showMessage: boolean;
|
|
303
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
304
|
-
readonly labelSuffix: string;
|
|
305
|
-
readonly validateOnRuleChange: boolean;
|
|
306
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
307
|
-
readonly statusIcon: boolean;
|
|
308
|
-
readonly hideRequiredAsterisk: boolean;
|
|
309
|
-
readonly scrollToError: boolean;
|
|
310
|
-
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
311
|
-
readonly model: ObjectConstructor;
|
|
312
|
-
readonly rules: {
|
|
313
|
-
readonly type: PropType<Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>>>;
|
|
314
|
-
readonly required: false;
|
|
315
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
316
|
-
__epPropKey: true;
|
|
317
|
-
};
|
|
318
|
-
readonly labelPosition: {
|
|
319
|
-
readonly type: PropType<"right" | "top" | "left">;
|
|
320
|
-
readonly required: false;
|
|
321
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
322
|
-
__epPropKey: true;
|
|
323
|
-
} & {
|
|
324
|
-
readonly default: "right";
|
|
325
|
-
};
|
|
326
|
-
readonly requireAsteriskPosition: {
|
|
327
|
-
readonly type: PropType<"right" | "left">;
|
|
328
|
-
readonly required: false;
|
|
329
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
330
|
-
__epPropKey: true;
|
|
331
|
-
} & {
|
|
332
|
-
readonly default: "left";
|
|
333
|
-
};
|
|
334
|
-
readonly labelWidth: {
|
|
335
|
-
readonly type: PropType<string | number>;
|
|
336
|
-
readonly required: false;
|
|
337
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
338
|
-
__epPropKey: true;
|
|
339
|
-
} & {
|
|
340
|
-
readonly default: "";
|
|
341
|
-
};
|
|
342
|
-
readonly labelSuffix: {
|
|
343
|
-
readonly type: PropType<string>;
|
|
344
|
-
readonly required: false;
|
|
345
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
346
|
-
__epPropKey: true;
|
|
347
|
-
} & {
|
|
348
|
-
readonly default: "";
|
|
349
|
-
};
|
|
350
|
-
readonly inline: BooleanConstructor;
|
|
351
|
-
readonly inlineMessage: BooleanConstructor;
|
|
352
|
-
readonly statusIcon: BooleanConstructor;
|
|
353
|
-
readonly showMessage: {
|
|
354
|
-
readonly type: PropType<boolean>;
|
|
355
|
-
readonly required: false;
|
|
356
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
357
|
-
__epPropKey: true;
|
|
358
|
-
} & {
|
|
359
|
-
readonly default: true;
|
|
360
|
-
};
|
|
361
|
-
readonly validateOnRuleChange: {
|
|
362
|
-
readonly type: PropType<boolean>;
|
|
363
|
-
readonly required: false;
|
|
364
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
365
|
-
__epPropKey: true;
|
|
366
|
-
} & {
|
|
367
|
-
readonly default: true;
|
|
368
|
-
};
|
|
369
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
370
|
-
readonly scrollToError: BooleanConstructor;
|
|
371
|
-
readonly scrollIntoViewOptions: {
|
|
372
|
-
readonly type: PropType<boolean | Record<string, any>>;
|
|
373
|
-
readonly required: false;
|
|
374
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
375
|
-
__epPropKey: true;
|
|
376
|
-
} & {
|
|
377
|
-
readonly default: true;
|
|
378
|
-
};
|
|
379
|
-
readonly size: {
|
|
380
|
-
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
381
|
-
readonly required: false;
|
|
382
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
383
|
-
__epPropKey: true;
|
|
384
|
-
};
|
|
385
|
-
readonly disabled: BooleanConstructor;
|
|
386
|
-
}>> & {
|
|
387
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
388
|
-
}, "disabled" | "labelWidth" | "inline" | "resetFields" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "clearValidate" | "scrollToField" | "getField" | "fields"> & import('vue').ShallowUnwrapRef<{
|
|
389
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
390
|
-
validateField: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[], callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
391
|
-
resetFields: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
392
|
-
clearValidate: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
393
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
394
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
395
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
396
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
397
|
-
$slots: {
|
|
398
|
-
default?(_: {}): any;
|
|
399
|
-
};
|
|
400
|
-
}) | null;
|
|
401
|
-
};
|
|
5
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
6
|
+
refs: {};
|
|
402
7
|
rootEl: any;
|
|
403
8
|
};
|
|
404
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -423,10 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
423
28
|
type: StringConstructor[];
|
|
424
29
|
default: string;
|
|
425
30
|
};
|
|
426
|
-
}>, {
|
|
427
|
-
resetFields: () => void;
|
|
428
|
-
getFormData: () => Promise<any>;
|
|
429
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
31
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
430
32
|
inline: {
|
|
431
33
|
type: BooleanConstructor;
|
|
432
34
|
default: boolean;
|
|
@@ -452,285 +54,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
452
54
|
inline: boolean;
|
|
453
55
|
formItems: FormItem[];
|
|
454
56
|
itemWidth: string;
|
|
455
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
456
|
-
formRef: ({
|
|
457
|
-
$: import('vue').ComponentInternalInstance;
|
|
458
|
-
$data: {};
|
|
459
|
-
$props: Partial<{
|
|
460
|
-
readonly disabled: boolean;
|
|
461
|
-
readonly inline: boolean;
|
|
462
|
-
readonly labelWidth: string | number;
|
|
463
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
464
|
-
readonly inlineMessage: boolean;
|
|
465
|
-
readonly showMessage: boolean;
|
|
466
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
467
|
-
readonly labelSuffix: string;
|
|
468
|
-
readonly validateOnRuleChange: boolean;
|
|
469
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
470
|
-
readonly statusIcon: boolean;
|
|
471
|
-
readonly hideRequiredAsterisk: boolean;
|
|
472
|
-
readonly scrollToError: boolean;
|
|
473
|
-
}> & Omit<{
|
|
474
|
-
readonly disabled: boolean;
|
|
475
|
-
readonly labelWidth: string | number;
|
|
476
|
-
readonly inline: boolean;
|
|
477
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
478
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
479
|
-
readonly labelSuffix: string;
|
|
480
|
-
readonly inlineMessage: boolean;
|
|
481
|
-
readonly statusIcon: boolean;
|
|
482
|
-
readonly showMessage: boolean;
|
|
483
|
-
readonly validateOnRuleChange: boolean;
|
|
484
|
-
readonly hideRequiredAsterisk: boolean;
|
|
485
|
-
readonly scrollToError: boolean;
|
|
486
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
487
|
-
readonly size?: ("" | "small" | "default" | "large") | undefined;
|
|
488
|
-
readonly model?: Record<string, any> | undefined;
|
|
489
|
-
readonly rules?: Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>> | undefined;
|
|
490
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
491
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "labelWidth" | "inline" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
492
|
-
$attrs: {
|
|
493
|
-
[x: string]: unknown;
|
|
494
|
-
};
|
|
495
|
-
$refs: {
|
|
496
|
-
[x: string]: unknown;
|
|
497
|
-
};
|
|
498
|
-
$slots: Readonly<{
|
|
499
|
-
[name: string]: import('vue').Slot<any> | undefined;
|
|
500
|
-
}>;
|
|
501
|
-
$root: ComponentPublicInstance | null;
|
|
502
|
-
$parent: ComponentPublicInstance | null;
|
|
503
|
-
$host: Element | null;
|
|
504
|
-
$emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
505
|
-
$el: any;
|
|
506
|
-
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
507
|
-
readonly model: ObjectConstructor;
|
|
508
|
-
readonly rules: {
|
|
509
|
-
readonly type: PropType<Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>>>;
|
|
510
|
-
readonly required: false;
|
|
511
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
512
|
-
__epPropKey: true;
|
|
513
|
-
};
|
|
514
|
-
readonly labelPosition: {
|
|
515
|
-
readonly type: PropType<"right" | "top" | "left">;
|
|
516
|
-
readonly required: false;
|
|
517
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
518
|
-
__epPropKey: true;
|
|
519
|
-
} & {
|
|
520
|
-
readonly default: "right";
|
|
521
|
-
};
|
|
522
|
-
readonly requireAsteriskPosition: {
|
|
523
|
-
readonly type: PropType<"right" | "left">;
|
|
524
|
-
readonly required: false;
|
|
525
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
526
|
-
__epPropKey: true;
|
|
527
|
-
} & {
|
|
528
|
-
readonly default: "left";
|
|
529
|
-
};
|
|
530
|
-
readonly labelWidth: {
|
|
531
|
-
readonly type: PropType<string | number>;
|
|
532
|
-
readonly required: false;
|
|
533
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
534
|
-
__epPropKey: true;
|
|
535
|
-
} & {
|
|
536
|
-
readonly default: "";
|
|
537
|
-
};
|
|
538
|
-
readonly labelSuffix: {
|
|
539
|
-
readonly type: PropType<string>;
|
|
540
|
-
readonly required: false;
|
|
541
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
542
|
-
__epPropKey: true;
|
|
543
|
-
} & {
|
|
544
|
-
readonly default: "";
|
|
545
|
-
};
|
|
546
|
-
readonly inline: BooleanConstructor;
|
|
547
|
-
readonly inlineMessage: BooleanConstructor;
|
|
548
|
-
readonly statusIcon: BooleanConstructor;
|
|
549
|
-
readonly showMessage: {
|
|
550
|
-
readonly type: PropType<boolean>;
|
|
551
|
-
readonly required: false;
|
|
552
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
553
|
-
__epPropKey: true;
|
|
554
|
-
} & {
|
|
555
|
-
readonly default: true;
|
|
556
|
-
};
|
|
557
|
-
readonly validateOnRuleChange: {
|
|
558
|
-
readonly type: PropType<boolean>;
|
|
559
|
-
readonly required: false;
|
|
560
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
561
|
-
__epPropKey: true;
|
|
562
|
-
} & {
|
|
563
|
-
readonly default: true;
|
|
564
|
-
};
|
|
565
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
566
|
-
readonly scrollToError: BooleanConstructor;
|
|
567
|
-
readonly scrollIntoViewOptions: {
|
|
568
|
-
readonly type: PropType<boolean | Record<string, any>>;
|
|
569
|
-
readonly required: false;
|
|
570
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
571
|
-
__epPropKey: true;
|
|
572
|
-
} & {
|
|
573
|
-
readonly default: true;
|
|
574
|
-
};
|
|
575
|
-
readonly size: {
|
|
576
|
-
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
577
|
-
readonly required: false;
|
|
578
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
579
|
-
__epPropKey: true;
|
|
580
|
-
};
|
|
581
|
-
readonly disabled: BooleanConstructor;
|
|
582
|
-
}>> & {
|
|
583
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
584
|
-
}, {
|
|
585
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
586
|
-
validateField: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[], callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
587
|
-
resetFields: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
588
|
-
clearValidate: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
589
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
590
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
591
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
592
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
593
|
-
validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
|
|
594
|
-
}, string, {
|
|
595
|
-
readonly disabled: boolean;
|
|
596
|
-
readonly inline: boolean;
|
|
597
|
-
readonly labelWidth: string | number;
|
|
598
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
599
|
-
readonly inlineMessage: boolean;
|
|
600
|
-
readonly showMessage: boolean;
|
|
601
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
602
|
-
readonly labelSuffix: string;
|
|
603
|
-
readonly validateOnRuleChange: boolean;
|
|
604
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
605
|
-
readonly statusIcon: boolean;
|
|
606
|
-
readonly hideRequiredAsterisk: boolean;
|
|
607
|
-
readonly scrollToError: boolean;
|
|
608
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
609
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
610
|
-
created?: (() => void) | (() => void)[];
|
|
611
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
612
|
-
mounted?: (() => void) | (() => void)[];
|
|
613
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
614
|
-
updated?: (() => void) | (() => void)[];
|
|
615
|
-
activated?: (() => void) | (() => void)[];
|
|
616
|
-
deactivated?: (() => void) | (() => void)[];
|
|
617
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
618
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
619
|
-
destroyed?: (() => void) | (() => void)[];
|
|
620
|
-
unmounted?: (() => void) | (() => void)[];
|
|
621
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
622
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
623
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
624
|
-
};
|
|
625
|
-
$forceUpdate: () => void;
|
|
626
|
-
$nextTick: typeof import('vue').nextTick;
|
|
627
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
628
|
-
} & Readonly<{
|
|
629
|
-
readonly disabled: boolean;
|
|
630
|
-
readonly inline: boolean;
|
|
631
|
-
readonly labelWidth: string | number;
|
|
632
|
-
readonly labelPosition: "right" | "top" | "left";
|
|
633
|
-
readonly inlineMessage: boolean;
|
|
634
|
-
readonly showMessage: boolean;
|
|
635
|
-
readonly requireAsteriskPosition: "right" | "left";
|
|
636
|
-
readonly labelSuffix: string;
|
|
637
|
-
readonly validateOnRuleChange: boolean;
|
|
638
|
-
readonly scrollIntoViewOptions: boolean | Record<string, any>;
|
|
639
|
-
readonly statusIcon: boolean;
|
|
640
|
-
readonly hideRequiredAsterisk: boolean;
|
|
641
|
-
readonly scrollToError: boolean;
|
|
642
|
-
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
643
|
-
readonly model: ObjectConstructor;
|
|
644
|
-
readonly rules: {
|
|
645
|
-
readonly type: PropType<Partial<Record<string, import('element-plus').FormItemRule | import('element-plus').FormItemRule[]>>>;
|
|
646
|
-
readonly required: false;
|
|
647
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
648
|
-
__epPropKey: true;
|
|
649
|
-
};
|
|
650
|
-
readonly labelPosition: {
|
|
651
|
-
readonly type: PropType<"right" | "top" | "left">;
|
|
652
|
-
readonly required: false;
|
|
653
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
654
|
-
__epPropKey: true;
|
|
655
|
-
} & {
|
|
656
|
-
readonly default: "right";
|
|
657
|
-
};
|
|
658
|
-
readonly requireAsteriskPosition: {
|
|
659
|
-
readonly type: PropType<"right" | "left">;
|
|
660
|
-
readonly required: false;
|
|
661
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
662
|
-
__epPropKey: true;
|
|
663
|
-
} & {
|
|
664
|
-
readonly default: "left";
|
|
665
|
-
};
|
|
666
|
-
readonly labelWidth: {
|
|
667
|
-
readonly type: PropType<string | number>;
|
|
668
|
-
readonly required: false;
|
|
669
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
670
|
-
__epPropKey: true;
|
|
671
|
-
} & {
|
|
672
|
-
readonly default: "";
|
|
673
|
-
};
|
|
674
|
-
readonly labelSuffix: {
|
|
675
|
-
readonly type: PropType<string>;
|
|
676
|
-
readonly required: false;
|
|
677
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
678
|
-
__epPropKey: true;
|
|
679
|
-
} & {
|
|
680
|
-
readonly default: "";
|
|
681
|
-
};
|
|
682
|
-
readonly inline: BooleanConstructor;
|
|
683
|
-
readonly inlineMessage: BooleanConstructor;
|
|
684
|
-
readonly statusIcon: BooleanConstructor;
|
|
685
|
-
readonly showMessage: {
|
|
686
|
-
readonly type: PropType<boolean>;
|
|
687
|
-
readonly required: false;
|
|
688
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
689
|
-
__epPropKey: true;
|
|
690
|
-
} & {
|
|
691
|
-
readonly default: true;
|
|
692
|
-
};
|
|
693
|
-
readonly validateOnRuleChange: {
|
|
694
|
-
readonly type: PropType<boolean>;
|
|
695
|
-
readonly required: false;
|
|
696
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
697
|
-
__epPropKey: true;
|
|
698
|
-
} & {
|
|
699
|
-
readonly default: true;
|
|
700
|
-
};
|
|
701
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
702
|
-
readonly scrollToError: BooleanConstructor;
|
|
703
|
-
readonly scrollIntoViewOptions: {
|
|
704
|
-
readonly type: PropType<boolean | Record<string, any>>;
|
|
705
|
-
readonly required: false;
|
|
706
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
707
|
-
__epPropKey: true;
|
|
708
|
-
} & {
|
|
709
|
-
readonly default: true;
|
|
710
|
-
};
|
|
711
|
-
readonly size: {
|
|
712
|
-
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
713
|
-
readonly required: false;
|
|
714
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
715
|
-
__epPropKey: true;
|
|
716
|
-
};
|
|
717
|
-
readonly disabled: BooleanConstructor;
|
|
718
|
-
}>> & {
|
|
719
|
-
onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
720
|
-
}, "disabled" | "labelWidth" | "inline" | "resetFields" | "labelPosition" | "requireAsteriskPosition" | "labelSuffix" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validate" | "validateField" | "clearValidate" | "scrollToField" | "getField" | "fields"> & import('vue').ShallowUnwrapRef<{
|
|
721
|
-
validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
722
|
-
validateField: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[], callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
|
|
723
|
-
resetFields: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
724
|
-
clearValidate: (props?: import('element-plus').FormItemProp | import('element-plus').FormItemProp[]) => void;
|
|
725
|
-
scrollToField: (prop: import('element-plus').FormItemProp) => void;
|
|
726
|
-
getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
|
|
727
|
-
fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
|
|
728
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
729
|
-
$slots: {
|
|
730
|
-
default?(_: {}): any;
|
|
731
|
-
};
|
|
732
|
-
}) | null;
|
|
733
|
-
}, any>;
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
734
58
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
735
59
|
export default _default;
|
|
736
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|