@vtj/ui 0.15.1 → 0.16.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/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +13 -13
- package/types/components/action/hooks.d.ts +4 -4
- package/types/components/action-bar/ActionBar.d.ts +9 -9
- package/types/components/attachment/Attachment.d.ts +553 -634
- package/types/components/container/Container.d.ts +4 -4
- package/types/components/container/types.d.ts +2 -2
- package/types/components/data-item/DataItem.d.ts +13 -13
- package/types/components/data-item/types.d.ts +2 -2
- package/types/components/dialog/Dialog.d.ts +32 -32
- package/types/components/dialog/types.d.ts +4 -4
- package/types/components/dialog-form/DialogForm.d.ts +357 -278
- package/types/components/dialog-grid/DialogGrid.d.ts +44 -44
- package/types/components/field/Field.d.ts +186 -175
- package/types/components/field/types.d.ts +1 -1
- package/types/components/form/Form.d.ts +294 -215
- package/types/components/grid/renderers/components/GridEdit.d.ts +275 -273
- package/types/components/grid-editor/GridEditor.d.ts +275 -273
- package/types/components/input-unit/InputUnit.d.ts +2 -2
- package/types/components/input-unit/types.d.ts +1 -1
- package/types/components/list/List.d.ts +4 -4
- package/types/components/list/types.d.ts +2 -2
- package/types/components/mask/Mask.d.ts +18 -18
- package/types/components/mask/components/Tabs.d.ts +4 -4
- package/types/components/panel/Panel.d.ts +12 -12
- package/types/components/panel/types.d.ts +2 -2
- package/types/components/picker/props.d.ts +1 -1
- package/types/components/query-form/QueryForm.d.ts +623 -464
- package/types/components/tabs/Tabs.d.ts +5 -5
- package/types/components/test/Test.d.ts +2 -2
- package/types/version.d.ts +2 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FormModel } from './types';
|
|
2
2
|
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, Reactive, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, Ref, PublicProps } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { ComponentSize, FormRules, FormItemProp, FormItemRule, FormValidateCallback, FormValidationResult, FormItemContext, ElTooltipProps, UseTooltipProps } from 'element-plus';
|
|
4
4
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
5
|
-
import { FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext, ElTooltipProps } from 'element-plus';
|
|
6
5
|
import { OnCleanup } from '@vue/reactivity';
|
|
7
6
|
declare function __VLS_template(): {
|
|
8
7
|
attrs: Partial<{}>;
|
|
@@ -16,38 +15,32 @@ declare function __VLS_template(): {
|
|
|
16
15
|
$: ComponentInternalInstance;
|
|
17
16
|
$data: {};
|
|
18
17
|
$props: Partial<{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
readonly labelSuffix: string;
|
|
27
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
28
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
29
|
-
readonly statusIcon: boolean;
|
|
30
|
-
readonly hideRequiredAsterisk: boolean;
|
|
31
|
-
readonly scrollToError: boolean;
|
|
18
|
+
labelWidth: string | number;
|
|
19
|
+
labelPosition: "left" | "right" | "top";
|
|
20
|
+
showMessage: boolean;
|
|
21
|
+
requireAsteriskPosition: "left" | "right";
|
|
22
|
+
labelSuffix: string;
|
|
23
|
+
validateOnRuleChange: boolean;
|
|
24
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
32
25
|
}> & Omit<{
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly inlineMessage: boolean;
|
|
38
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
26
|
+
readonly labelWidth: string | number;
|
|
27
|
+
readonly labelPosition: "left" | "right" | "top";
|
|
28
|
+
readonly showMessage: boolean;
|
|
29
|
+
readonly requireAsteriskPosition: "left" | "right";
|
|
40
30
|
readonly labelSuffix: string;
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
47
|
-
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
31
|
+
readonly validateOnRuleChange: boolean;
|
|
32
|
+
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
33
|
+
readonly size?: ComponentSize | undefined;
|
|
34
|
+
readonly disabled?: boolean | undefined;
|
|
35
|
+
readonly inline?: boolean | undefined;
|
|
48
36
|
readonly model?: Record<string, any> | undefined;
|
|
37
|
+
readonly rules?: FormRules | undefined;
|
|
38
|
+
readonly inlineMessage?: boolean | undefined;
|
|
39
|
+
readonly statusIcon?: boolean | undefined;
|
|
40
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
41
|
+
readonly scrollToError?: boolean | undefined;
|
|
49
42
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
50
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
43
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
51
44
|
$attrs: {
|
|
52
45
|
[x: string]: unknown;
|
|
53
46
|
};
|
|
@@ -63,32 +56,61 @@ declare function __VLS_template(): {
|
|
|
63
56
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
64
57
|
$el: any;
|
|
65
58
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
59
|
+
size: {
|
|
60
|
+
type: PropType<"" | "default" | "large" | "small">;
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
type: PropType<boolean>;
|
|
64
|
+
};
|
|
65
|
+
inline: {
|
|
66
|
+
type: PropType<boolean>;
|
|
67
|
+
};
|
|
68
|
+
model: {
|
|
69
|
+
type: PropType<Record<string, any>>;
|
|
70
|
+
};
|
|
71
|
+
labelWidth: {
|
|
72
|
+
type: PropType<string | number>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
labelPosition: {
|
|
76
|
+
type: PropType<"left" | "right" | "top">;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
rules: {
|
|
80
|
+
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
81
|
+
};
|
|
82
|
+
inlineMessage: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
};
|
|
85
|
+
showMessage: {
|
|
86
|
+
type: PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
72
88
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
requireAsteriskPosition: {
|
|
90
|
+
type: PropType<"left" | "right">;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
labelSuffix: {
|
|
94
|
+
type: PropType<string>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
statusIcon: {
|
|
98
|
+
type: PropType<boolean>;
|
|
99
|
+
};
|
|
100
|
+
validateOnRuleChange: {
|
|
101
|
+
type: PropType<boolean>;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
hideRequiredAsterisk: {
|
|
105
|
+
type: PropType<boolean>;
|
|
106
|
+
};
|
|
107
|
+
scrollToError: {
|
|
108
|
+
type: PropType<boolean>;
|
|
109
|
+
};
|
|
110
|
+
scrollIntoViewOptions: {
|
|
111
|
+
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
112
|
+
default: boolean;
|
|
90
113
|
};
|
|
91
|
-
readonly disabled: BooleanConstructor;
|
|
92
114
|
}>> & {
|
|
93
115
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
94
116
|
}, {
|
|
@@ -103,19 +125,13 @@ declare function __VLS_template(): {
|
|
|
103
125
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
104
126
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
105
127
|
}, string, {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
readonly labelSuffix: string;
|
|
114
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
115
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
116
|
-
readonly statusIcon: boolean;
|
|
117
|
-
readonly hideRequiredAsterisk: boolean;
|
|
118
|
-
readonly scrollToError: boolean;
|
|
128
|
+
labelWidth: string | number;
|
|
129
|
+
labelPosition: "left" | "right" | "top";
|
|
130
|
+
showMessage: boolean;
|
|
131
|
+
requireAsteriskPosition: "left" | "right";
|
|
132
|
+
labelSuffix: string;
|
|
133
|
+
validateOnRuleChange: boolean;
|
|
134
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
119
135
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
120
136
|
beforeCreate?: (() => void) | (() => void)[];
|
|
121
137
|
created?: (() => void) | (() => void)[];
|
|
@@ -137,49 +153,72 @@ declare function __VLS_template(): {
|
|
|
137
153
|
$nextTick: nextTick;
|
|
138
154
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
139
155
|
} & Readonly<{
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
readonly labelSuffix: string;
|
|
148
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
149
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
150
|
-
readonly statusIcon: boolean;
|
|
151
|
-
readonly hideRequiredAsterisk: boolean;
|
|
152
|
-
readonly scrollToError: boolean;
|
|
156
|
+
labelWidth: string | number;
|
|
157
|
+
labelPosition: "left" | "right" | "top";
|
|
158
|
+
showMessage: boolean;
|
|
159
|
+
requireAsteriskPosition: "left" | "right";
|
|
160
|
+
labelSuffix: string;
|
|
161
|
+
validateOnRuleChange: boolean;
|
|
162
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
153
163
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
164
|
+
size: {
|
|
165
|
+
type: PropType<"" | "default" | "large" | "small">;
|
|
166
|
+
};
|
|
167
|
+
disabled: {
|
|
168
|
+
type: PropType<boolean>;
|
|
169
|
+
};
|
|
170
|
+
inline: {
|
|
171
|
+
type: PropType<boolean>;
|
|
172
|
+
};
|
|
173
|
+
model: {
|
|
174
|
+
type: PropType<Record<string, any>>;
|
|
175
|
+
};
|
|
176
|
+
labelWidth: {
|
|
177
|
+
type: PropType<string | number>;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
labelPosition: {
|
|
181
|
+
type: PropType<"left" | "right" | "top">;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
rules: {
|
|
185
|
+
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
186
|
+
};
|
|
187
|
+
inlineMessage: {
|
|
188
|
+
type: PropType<boolean>;
|
|
189
|
+
};
|
|
190
|
+
showMessage: {
|
|
191
|
+
type: PropType<boolean>;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
194
|
+
requireAsteriskPosition: {
|
|
195
|
+
type: PropType<"left" | "right">;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
labelSuffix: {
|
|
199
|
+
type: PropType<string>;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
statusIcon: {
|
|
203
|
+
type: PropType<boolean>;
|
|
204
|
+
};
|
|
205
|
+
validateOnRuleChange: {
|
|
206
|
+
type: PropType<boolean>;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
hideRequiredAsterisk: {
|
|
210
|
+
type: PropType<boolean>;
|
|
211
|
+
};
|
|
212
|
+
scrollToError: {
|
|
213
|
+
type: PropType<boolean>;
|
|
214
|
+
};
|
|
215
|
+
scrollIntoViewOptions: {
|
|
216
|
+
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
180
219
|
}>> & {
|
|
181
220
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
182
|
-
}, "
|
|
221
|
+
}, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
183
222
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
184
223
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
185
224
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -247,9 +286,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
247
286
|
validate: () => Promise<any>;
|
|
248
287
|
clearValidate: () => void;
|
|
249
288
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
289
|
+
change: (model: Record<string, any>) => any;
|
|
250
290
|
reset: () => any;
|
|
251
291
|
submit: (model: Record<string, any>) => any;
|
|
252
|
-
change: (model: Record<string, any>) => any;
|
|
253
292
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
254
293
|
model: {
|
|
255
294
|
type: PropType<Record<string, any>>;
|
|
@@ -293,14 +332,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
293
332
|
default: string;
|
|
294
333
|
};
|
|
295
334
|
}>> & Readonly<{
|
|
335
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
296
336
|
onReset?: (() => any) | undefined;
|
|
297
337
|
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
298
|
-
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
299
338
|
}>, {
|
|
300
339
|
footer: boolean;
|
|
301
340
|
inline: boolean;
|
|
302
341
|
footerAlign: "left" | "right" | "center";
|
|
303
|
-
tooltipMessage: boolean | Partial<
|
|
342
|
+
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
304
343
|
model: Record<string, any>;
|
|
305
344
|
submitText: string | null;
|
|
306
345
|
resetText: string | null;
|
|
@@ -311,38 +350,32 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
311
350
|
$: ComponentInternalInstance;
|
|
312
351
|
$data: {};
|
|
313
352
|
$props: Partial<{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
readonly labelSuffix: string;
|
|
322
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
323
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
324
|
-
readonly statusIcon: boolean;
|
|
325
|
-
readonly hideRequiredAsterisk: boolean;
|
|
326
|
-
readonly scrollToError: boolean;
|
|
353
|
+
labelWidth: string | number;
|
|
354
|
+
labelPosition: "left" | "right" | "top";
|
|
355
|
+
showMessage: boolean;
|
|
356
|
+
requireAsteriskPosition: "left" | "right";
|
|
357
|
+
labelSuffix: string;
|
|
358
|
+
validateOnRuleChange: boolean;
|
|
359
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
327
360
|
}> & Omit<{
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
readonly inlineMessage: boolean;
|
|
333
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
334
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
361
|
+
readonly labelWidth: string | number;
|
|
362
|
+
readonly labelPosition: "left" | "right" | "top";
|
|
363
|
+
readonly showMessage: boolean;
|
|
364
|
+
readonly requireAsteriskPosition: "left" | "right";
|
|
335
365
|
readonly labelSuffix: string;
|
|
336
|
-
readonly
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
339
|
-
readonly
|
|
340
|
-
readonly
|
|
341
|
-
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
342
|
-
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
366
|
+
readonly validateOnRuleChange: boolean;
|
|
367
|
+
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
368
|
+
readonly size?: ComponentSize | undefined;
|
|
369
|
+
readonly disabled?: boolean | undefined;
|
|
370
|
+
readonly inline?: boolean | undefined;
|
|
343
371
|
readonly model?: Record<string, any> | undefined;
|
|
372
|
+
readonly rules?: FormRules | undefined;
|
|
373
|
+
readonly inlineMessage?: boolean | undefined;
|
|
374
|
+
readonly statusIcon?: boolean | undefined;
|
|
375
|
+
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
376
|
+
readonly scrollToError?: boolean | undefined;
|
|
344
377
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
345
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
378
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions">;
|
|
346
379
|
$attrs: {
|
|
347
380
|
[x: string]: unknown;
|
|
348
381
|
};
|
|
@@ -358,32 +391,61 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
358
391
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
359
392
|
$el: any;
|
|
360
393
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
394
|
+
size: {
|
|
395
|
+
type: PropType<"" | "default" | "large" | "small">;
|
|
396
|
+
};
|
|
397
|
+
disabled: {
|
|
398
|
+
type: PropType<boolean>;
|
|
399
|
+
};
|
|
400
|
+
inline: {
|
|
401
|
+
type: PropType<boolean>;
|
|
402
|
+
};
|
|
403
|
+
model: {
|
|
404
|
+
type: PropType<Record<string, any>>;
|
|
405
|
+
};
|
|
406
|
+
labelWidth: {
|
|
407
|
+
type: PropType<string | number>;
|
|
408
|
+
default: string;
|
|
409
|
+
};
|
|
410
|
+
labelPosition: {
|
|
411
|
+
type: PropType<"left" | "right" | "top">;
|
|
412
|
+
default: string;
|
|
413
|
+
};
|
|
414
|
+
rules: {
|
|
415
|
+
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
416
|
+
};
|
|
417
|
+
inlineMessage: {
|
|
418
|
+
type: PropType<boolean>;
|
|
419
|
+
};
|
|
420
|
+
showMessage: {
|
|
421
|
+
type: PropType<boolean>;
|
|
422
|
+
default: boolean;
|
|
423
|
+
};
|
|
424
|
+
requireAsteriskPosition: {
|
|
425
|
+
type: PropType<"left" | "right">;
|
|
426
|
+
default: string;
|
|
427
|
+
};
|
|
428
|
+
labelSuffix: {
|
|
429
|
+
type: PropType<string>;
|
|
430
|
+
default: string;
|
|
431
|
+
};
|
|
432
|
+
statusIcon: {
|
|
433
|
+
type: PropType<boolean>;
|
|
434
|
+
};
|
|
435
|
+
validateOnRuleChange: {
|
|
436
|
+
type: PropType<boolean>;
|
|
437
|
+
default: boolean;
|
|
438
|
+
};
|
|
439
|
+
hideRequiredAsterisk: {
|
|
440
|
+
type: PropType<boolean>;
|
|
441
|
+
};
|
|
442
|
+
scrollToError: {
|
|
443
|
+
type: PropType<boolean>;
|
|
444
|
+
};
|
|
445
|
+
scrollIntoViewOptions: {
|
|
446
|
+
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
387
449
|
}>> & {
|
|
388
450
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
389
451
|
}, {
|
|
@@ -398,19 +460,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
398
460
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
399
461
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
400
462
|
}, string, {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
readonly labelSuffix: string;
|
|
409
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
410
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
411
|
-
readonly statusIcon: boolean;
|
|
412
|
-
readonly hideRequiredAsterisk: boolean;
|
|
413
|
-
readonly scrollToError: boolean;
|
|
463
|
+
labelWidth: string | number;
|
|
464
|
+
labelPosition: "left" | "right" | "top";
|
|
465
|
+
showMessage: boolean;
|
|
466
|
+
requireAsteriskPosition: "left" | "right";
|
|
467
|
+
labelSuffix: string;
|
|
468
|
+
validateOnRuleChange: boolean;
|
|
469
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
414
470
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
415
471
|
beforeCreate?: (() => void) | (() => void)[];
|
|
416
472
|
created?: (() => void) | (() => void)[];
|
|
@@ -432,49 +488,72 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
432
488
|
$nextTick: nextTick;
|
|
433
489
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
434
490
|
} & Readonly<{
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
readonly labelSuffix: string;
|
|
443
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
444
|
-
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
445
|
-
readonly statusIcon: boolean;
|
|
446
|
-
readonly hideRequiredAsterisk: boolean;
|
|
447
|
-
readonly scrollToError: boolean;
|
|
491
|
+
labelWidth: string | number;
|
|
492
|
+
labelPosition: "left" | "right" | "top";
|
|
493
|
+
showMessage: boolean;
|
|
494
|
+
requireAsteriskPosition: "left" | "right";
|
|
495
|
+
labelSuffix: string;
|
|
496
|
+
validateOnRuleChange: boolean;
|
|
497
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
448
498
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
499
|
+
size: {
|
|
500
|
+
type: PropType<"" | "default" | "large" | "small">;
|
|
501
|
+
};
|
|
502
|
+
disabled: {
|
|
503
|
+
type: PropType<boolean>;
|
|
504
|
+
};
|
|
505
|
+
inline: {
|
|
506
|
+
type: PropType<boolean>;
|
|
507
|
+
};
|
|
508
|
+
model: {
|
|
509
|
+
type: PropType<Record<string, any>>;
|
|
510
|
+
};
|
|
511
|
+
labelWidth: {
|
|
512
|
+
type: PropType<string | number>;
|
|
513
|
+
default: string;
|
|
514
|
+
};
|
|
515
|
+
labelPosition: {
|
|
516
|
+
type: PropType<"left" | "right" | "top">;
|
|
517
|
+
default: string;
|
|
518
|
+
};
|
|
519
|
+
rules: {
|
|
520
|
+
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
521
|
+
};
|
|
522
|
+
inlineMessage: {
|
|
523
|
+
type: PropType<boolean>;
|
|
524
|
+
};
|
|
525
|
+
showMessage: {
|
|
526
|
+
type: PropType<boolean>;
|
|
527
|
+
default: boolean;
|
|
528
|
+
};
|
|
529
|
+
requireAsteriskPosition: {
|
|
530
|
+
type: PropType<"left" | "right">;
|
|
531
|
+
default: string;
|
|
532
|
+
};
|
|
533
|
+
labelSuffix: {
|
|
534
|
+
type: PropType<string>;
|
|
535
|
+
default: string;
|
|
536
|
+
};
|
|
537
|
+
statusIcon: {
|
|
538
|
+
type: PropType<boolean>;
|
|
539
|
+
};
|
|
540
|
+
validateOnRuleChange: {
|
|
541
|
+
type: PropType<boolean>;
|
|
542
|
+
default: boolean;
|
|
543
|
+
};
|
|
544
|
+
hideRequiredAsterisk: {
|
|
545
|
+
type: PropType<boolean>;
|
|
546
|
+
};
|
|
547
|
+
scrollToError: {
|
|
548
|
+
type: PropType<boolean>;
|
|
455
549
|
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
460
|
-
readonly inline: BooleanConstructor;
|
|
461
|
-
readonly inlineMessage: BooleanConstructor;
|
|
462
|
-
readonly statusIcon: BooleanConstructor;
|
|
463
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
464
|
-
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
465
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
466
|
-
readonly scrollToError: BooleanConstructor;
|
|
467
|
-
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
468
|
-
readonly size: {
|
|
469
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
470
|
-
readonly required: false;
|
|
471
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
472
|
-
__epPropKey: true;
|
|
550
|
+
scrollIntoViewOptions: {
|
|
551
|
+
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
552
|
+
default: boolean;
|
|
473
553
|
};
|
|
474
|
-
readonly disabled: BooleanConstructor;
|
|
475
554
|
}>> & {
|
|
476
555
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
477
|
-
}, "
|
|
556
|
+
}, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
478
557
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
479
558
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
480
559
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|