@vtj/ui 0.10.6 → 0.10.8
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 +9 -8
- package/dist/index.umd.js +3 -3
- package/package.json +5 -5
- package/types/components/action/Action.d.ts +10 -3
- package/types/components/attachment/Attachment.d.ts +805 -274
- package/types/components/container/Container.d.ts +15 -178
- package/types/components/data-item/DataItem.d.ts +18 -517
- package/types/components/dialog/Dialog.d.ts +1203 -432
- package/types/components/dialog-form/DialogForm.d.ts +3049 -104
- package/types/components/dialog-grid/DialogGrid.d.ts +4907 -69
- package/types/components/field/Field.d.ts +353 -222
- package/types/components/field/editors/SelectEditor.d.ts +12 -21
- package/types/components/form/Form.d.ts +389 -116
- package/types/components/grid/Grid.d.ts +57 -787
- package/types/components/grid/renderers/components/DateEdit.d.ts +255 -2
- package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/GridEdit.d.ts +410 -2
- package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/PickerEdit.d.ts +1926 -2
- package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +375 -2
- package/types/components/header/Header.d.ts +14 -76
- package/types/components/icon/Icon.d.ts +74 -0
- package/types/components/import-button/ImportButton.d.ts +10 -47
- package/types/components/list/List.d.ts +30 -155
- package/types/components/mask/Mask.d.ts +562 -546
- package/types/components/mask/components/Avatar.d.ts +11 -16
- package/types/components/mask/components/Brand.d.ts +12 -17
- package/types/components/mask/components/Content.d.ts +12 -13
- package/types/components/mask/components/Sidebar.d.ts +12 -15
- package/types/components/mask/components/Tabs.d.ts +255 -2
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +13 -55
- package/types/components/panel/Panel.d.ts +521 -124
- package/types/components/picker/Dialog.d.ts +1291 -2
- package/types/components/picker/Picker.d.ts +1730 -2
- package/types/components/qr-code/QrCode.d.ts +13 -35
- package/types/components/query-form/QueryForm.d.ts +1105 -418
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +53 -297
- package/types/components/test/Test.d.ts +41 -268
- package/types/utils/auto-update.d.ts +1 -1
- package/types/version.d.ts +2 -2
@@ -1,189 +1,703 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { QueryFormItem, QueryFormItems } from './types';
|
4
|
-
import { Ref, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedRef, DefineComponent, PublicProps } from 'vue';
|
5
|
-
import { ElTooltipProps } from 'element-plus';
|
1
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, DefineComponent, PublicProps } from 'vue';
|
2
|
+
import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext } from 'element-plus';
|
6
3
|
import { FormModel } from '../form';
|
4
|
+
import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
5
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
7
6
|
import { OnCleanup } from '@vue/reactivity';
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
inline: boolean;
|
14
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
15
|
-
model: Record<string, any>;
|
16
|
-
submitText: string | null;
|
17
|
-
resetText: string | null;
|
18
|
-
enterSubmit: boolean;
|
19
|
-
}> & Omit<{
|
20
|
-
readonly footer: boolean;
|
21
|
-
readonly inline: boolean;
|
22
|
-
readonly submitText: string | null;
|
23
|
-
readonly resetText: string | null;
|
24
|
-
readonly enterSubmit: boolean;
|
25
|
-
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
26
|
-
readonly model?: Record<string, any> | undefined;
|
27
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
28
|
-
readonly inlineColumns?: number | undefined;
|
29
|
-
readonly onReset?: (() => any) | undefined;
|
30
|
-
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
31
|
-
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
32
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit">;
|
33
|
-
$attrs: {
|
34
|
-
[x: string]: unknown;
|
35
|
-
};
|
36
|
-
$refs: {
|
37
|
-
[x: string]: unknown;
|
38
|
-
};
|
39
|
-
$slots: Readonly<{
|
40
|
-
[name: string]: Slot<any> | undefined;
|
41
|
-
}>;
|
42
|
-
$root: ComponentPublicInstance | null;
|
43
|
-
$parent: ComponentPublicInstance | null;
|
44
|
-
$host: Element | null;
|
45
|
-
$emit: ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void) & ((event: "change", model: Record<string, any>) => void);
|
46
|
-
$el: any;
|
47
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
48
|
-
model: {
|
49
|
-
type: PropType<Record<string, any>>;
|
50
|
-
default(): any;
|
51
|
-
};
|
52
|
-
inline: {
|
53
|
-
type: BooleanConstructor;
|
54
|
-
};
|
55
|
-
inlineColumns: {
|
56
|
-
type: NumberConstructor;
|
57
|
-
};
|
58
|
-
footer: {
|
59
|
-
type: BooleanConstructor;
|
60
|
-
default: boolean;
|
61
|
-
};
|
62
|
-
submitText: {
|
63
|
-
type: PropType<string | null>;
|
64
|
-
default: string;
|
65
|
-
};
|
66
|
-
resetText: {
|
67
|
-
type: PropType<string | null>;
|
68
|
-
default: string;
|
69
|
-
};
|
70
|
-
submitMethod: {
|
71
|
-
type: PropType<(model: FormModel) => Promise<any>>;
|
72
|
-
};
|
73
|
-
tooltipMessage: {
|
74
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
75
|
-
default: undefined;
|
76
|
-
};
|
77
|
-
enterSubmit: {
|
78
|
-
type: BooleanConstructor;
|
79
|
-
default: boolean;
|
80
|
-
};
|
81
|
-
}>> & Readonly<{
|
82
|
-
onReset?: (() => any) | undefined;
|
83
|
-
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
84
|
-
onChange?: ((model: Record<string, any>) => any) | undefined;
|
85
|
-
}>, {
|
86
|
-
formRef: Ref<any, any>;
|
87
|
-
model: FormModel;
|
88
|
-
submit: () => Promise<void>;
|
89
|
-
reset: (fields?: string[] | string) => void;
|
90
|
-
validate: () => Promise<any>;
|
91
|
-
clearValidate: () => void;
|
92
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
93
|
-
reset: () => any;
|
94
|
-
submit: (model: Record<string, any>) => any;
|
95
|
-
change: (model: Record<string, any>) => any;
|
96
|
-
}, string, {
|
97
|
-
footer: boolean;
|
98
|
-
inline: boolean;
|
99
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
100
|
-
model: Record<string, any>;
|
101
|
-
submitText: string | null;
|
102
|
-
resetText: string | null;
|
103
|
-
enterSubmit: boolean;
|
104
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
105
|
-
beforeCreate?: (() => void) | (() => void)[];
|
106
|
-
created?: (() => void) | (() => void)[];
|
107
|
-
beforeMount?: (() => void) | (() => void)[];
|
108
|
-
mounted?: (() => void) | (() => void)[];
|
109
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
110
|
-
updated?: (() => void) | (() => void)[];
|
111
|
-
activated?: (() => void) | (() => void)[];
|
112
|
-
deactivated?: (() => void) | (() => void)[];
|
113
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
114
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
115
|
-
destroyed?: (() => void) | (() => void)[];
|
116
|
-
unmounted?: (() => void) | (() => void)[];
|
117
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
118
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
119
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
120
|
-
};
|
121
|
-
$forceUpdate: () => void;
|
122
|
-
$nextTick: nextTick;
|
123
|
-
$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;
|
124
|
-
} & Readonly<{
|
125
|
-
footer: boolean;
|
126
|
-
inline: boolean;
|
127
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
128
|
-
model: Record<string, any>;
|
129
|
-
submitText: string | null;
|
130
|
-
resetText: string | null;
|
131
|
-
enterSubmit: boolean;
|
132
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
133
|
-
model: {
|
134
|
-
type: PropType<Record<string, any>>;
|
135
|
-
default(): any;
|
136
|
-
};
|
137
|
-
inline: {
|
138
|
-
type: BooleanConstructor;
|
7
|
+
import { QueryFormItems } from './types';
|
8
|
+
declare function __VLS_template(): {
|
9
|
+
attrs: Partial<{}>;
|
10
|
+
slots: Partial<Record<string, (_: {}) => any>> & {
|
11
|
+
default?(_: {}): any;
|
139
12
|
};
|
140
|
-
|
141
|
-
|
13
|
+
refs: {
|
14
|
+
formRef: ({
|
15
|
+
$: ComponentInternalInstance;
|
16
|
+
$data: {};
|
17
|
+
$props: Partial<{
|
18
|
+
footer: boolean;
|
19
|
+
inline: boolean;
|
20
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
21
|
+
model: Record<string, any>;
|
22
|
+
submitText: string | null;
|
23
|
+
resetText: string | null;
|
24
|
+
enterSubmit: boolean;
|
25
|
+
}> & Omit<{
|
26
|
+
readonly footer: boolean;
|
27
|
+
readonly inline: boolean;
|
28
|
+
readonly submitText: string | null;
|
29
|
+
readonly resetText: string | null;
|
30
|
+
readonly enterSubmit: boolean;
|
31
|
+
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
32
|
+
readonly model?: Record<string, any> | undefined;
|
33
|
+
readonly inlineColumns?: number | undefined;
|
34
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
35
|
+
readonly onReset?: (() => any) | undefined;
|
36
|
+
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
37
|
+
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
38
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit">;
|
39
|
+
$attrs: {
|
40
|
+
[x: string]: unknown;
|
41
|
+
};
|
42
|
+
$refs: {
|
43
|
+
[x: string]: unknown;
|
44
|
+
} & {
|
45
|
+
formRef: ({
|
46
|
+
$: ComponentInternalInstance;
|
47
|
+
$data: {};
|
48
|
+
$props: Partial<{
|
49
|
+
readonly disabled: boolean;
|
50
|
+
readonly inline: boolean;
|
51
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
52
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
53
|
+
readonly inlineMessage: boolean;
|
54
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
55
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
56
|
+
readonly labelSuffix: string;
|
57
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
58
|
+
readonly statusIcon: boolean;
|
59
|
+
readonly hideRequiredAsterisk: boolean;
|
60
|
+
readonly scrollToError: boolean;
|
61
|
+
}> & Omit<{
|
62
|
+
readonly disabled: boolean;
|
63
|
+
readonly inline: boolean;
|
64
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
65
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
66
|
+
readonly inlineMessage: boolean;
|
67
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
68
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
69
|
+
readonly labelSuffix: string;
|
70
|
+
readonly statusIcon: boolean;
|
71
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
72
|
+
readonly hideRequiredAsterisk: boolean;
|
73
|
+
readonly scrollToError: boolean;
|
74
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
75
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
76
|
+
readonly model?: Record<string, any> | undefined;
|
77
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
78
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
79
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
80
|
+
$attrs: {
|
81
|
+
[x: string]: unknown;
|
82
|
+
};
|
83
|
+
$refs: {
|
84
|
+
[x: string]: unknown;
|
85
|
+
};
|
86
|
+
$slots: Readonly<{
|
87
|
+
[name: string]: Slot<any> | undefined;
|
88
|
+
}>;
|
89
|
+
$root: ComponentPublicInstance | null;
|
90
|
+
$parent: ComponentPublicInstance | null;
|
91
|
+
$host: Element | null;
|
92
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
93
|
+
$el: any;
|
94
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
95
|
+
readonly model: ObjectConstructor;
|
96
|
+
readonly rules: {
|
97
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
98
|
+
readonly required: false;
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
100
|
+
__epPropKey: true;
|
101
|
+
};
|
102
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
103
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
104
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
105
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
106
|
+
readonly inline: BooleanConstructor;
|
107
|
+
readonly inlineMessage: BooleanConstructor;
|
108
|
+
readonly statusIcon: BooleanConstructor;
|
109
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
110
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
111
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
112
|
+
readonly scrollToError: BooleanConstructor;
|
113
|
+
readonly scrollIntoViewOptions: {
|
114
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
115
|
+
readonly required: false;
|
116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
117
|
+
__epPropKey: true;
|
118
|
+
};
|
119
|
+
readonly size: {
|
120
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
121
|
+
readonly required: false;
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
123
|
+
__epPropKey: true;
|
124
|
+
};
|
125
|
+
readonly disabled: BooleanConstructor;
|
126
|
+
}>> & {
|
127
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
128
|
+
}, {
|
129
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
130
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
131
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
132
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
133
|
+
scrollToField: (prop: FormItemProp) => void;
|
134
|
+
fields: FormItemContext[];
|
135
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
136
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
137
|
+
}, string, {
|
138
|
+
readonly disabled: boolean;
|
139
|
+
readonly inline: boolean;
|
140
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
141
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
142
|
+
readonly inlineMessage: boolean;
|
143
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
144
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
145
|
+
readonly labelSuffix: string;
|
146
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
147
|
+
readonly statusIcon: boolean;
|
148
|
+
readonly hideRequiredAsterisk: boolean;
|
149
|
+
readonly scrollToError: boolean;
|
150
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
151
|
+
beforeCreate?: (() => void) | (() => void)[];
|
152
|
+
created?: (() => void) | (() => void)[];
|
153
|
+
beforeMount?: (() => void) | (() => void)[];
|
154
|
+
mounted?: (() => void) | (() => void)[];
|
155
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
156
|
+
updated?: (() => void) | (() => void)[];
|
157
|
+
activated?: (() => void) | (() => void)[];
|
158
|
+
deactivated?: (() => void) | (() => void)[];
|
159
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
160
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
161
|
+
destroyed?: (() => void) | (() => void)[];
|
162
|
+
unmounted?: (() => void) | (() => void)[];
|
163
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
164
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
165
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
166
|
+
};
|
167
|
+
$forceUpdate: () => void;
|
168
|
+
$nextTick: nextTick;
|
169
|
+
$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;
|
170
|
+
} & Readonly<{
|
171
|
+
readonly disabled: boolean;
|
172
|
+
readonly inline: boolean;
|
173
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
174
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
175
|
+
readonly inlineMessage: boolean;
|
176
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
177
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
178
|
+
readonly labelSuffix: string;
|
179
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
180
|
+
readonly statusIcon: boolean;
|
181
|
+
readonly hideRequiredAsterisk: boolean;
|
182
|
+
readonly scrollToError: boolean;
|
183
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
184
|
+
readonly model: ObjectConstructor;
|
185
|
+
readonly rules: {
|
186
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
187
|
+
readonly required: false;
|
188
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
189
|
+
__epPropKey: true;
|
190
|
+
};
|
191
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
192
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
193
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
194
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
195
|
+
readonly inline: BooleanConstructor;
|
196
|
+
readonly inlineMessage: BooleanConstructor;
|
197
|
+
readonly statusIcon: BooleanConstructor;
|
198
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
199
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
200
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
201
|
+
readonly scrollToError: BooleanConstructor;
|
202
|
+
readonly scrollIntoViewOptions: {
|
203
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
204
|
+
readonly required: false;
|
205
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
206
|
+
__epPropKey: true;
|
207
|
+
};
|
208
|
+
readonly size: {
|
209
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
210
|
+
readonly required: false;
|
211
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
212
|
+
__epPropKey: true;
|
213
|
+
};
|
214
|
+
readonly disabled: BooleanConstructor;
|
215
|
+
}>> & {
|
216
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
217
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
218
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
219
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
220
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
221
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
222
|
+
scrollToField: (prop: FormItemProp) => void;
|
223
|
+
fields: FormItemContext[];
|
224
|
+
}> & {} & ComponentCustomProperties & {} & {
|
225
|
+
$slots: {
|
226
|
+
default?(_: {}): any;
|
227
|
+
};
|
228
|
+
}) | null;
|
229
|
+
};
|
230
|
+
$slots: Readonly<{
|
231
|
+
[name: string]: Slot<any> | undefined;
|
232
|
+
}>;
|
233
|
+
$root: ComponentPublicInstance | null;
|
234
|
+
$parent: ComponentPublicInstance | null;
|
235
|
+
$host: Element | null;
|
236
|
+
$emit: ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void) & ((event: "change", model: Record<string, any>) => void);
|
237
|
+
$el: any;
|
238
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
239
|
+
model: {
|
240
|
+
type: PropType<Record<string, any>>;
|
241
|
+
default(): any;
|
242
|
+
};
|
243
|
+
inline: {
|
244
|
+
type: BooleanConstructor;
|
245
|
+
};
|
246
|
+
inlineColumns: {
|
247
|
+
type: NumberConstructor;
|
248
|
+
};
|
249
|
+
footer: {
|
250
|
+
type: BooleanConstructor;
|
251
|
+
default: boolean;
|
252
|
+
};
|
253
|
+
submitText: {
|
254
|
+
type: PropType<string | null>;
|
255
|
+
default: string;
|
256
|
+
};
|
257
|
+
resetText: {
|
258
|
+
type: PropType<string | null>;
|
259
|
+
default: string;
|
260
|
+
};
|
261
|
+
submitMethod: {
|
262
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
263
|
+
};
|
264
|
+
tooltipMessage: {
|
265
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
266
|
+
default: undefined;
|
267
|
+
};
|
268
|
+
enterSubmit: {
|
269
|
+
type: BooleanConstructor;
|
270
|
+
default: boolean;
|
271
|
+
};
|
272
|
+
}>> & Readonly<{
|
273
|
+
onReset?: (() => any) | undefined;
|
274
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
275
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
276
|
+
}>, {
|
277
|
+
formRef: Ref<any, any>;
|
278
|
+
model: FormModel;
|
279
|
+
submit: () => Promise<void>;
|
280
|
+
reset: (fields?: string[] | string) => void;
|
281
|
+
validate: () => Promise<any>;
|
282
|
+
clearValidate: () => void;
|
283
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
284
|
+
reset: () => any;
|
285
|
+
submit: (model: Record<string, any>) => any;
|
286
|
+
change: (model: Record<string, any>) => any;
|
287
|
+
}, string, {
|
288
|
+
footer: boolean;
|
289
|
+
inline: boolean;
|
290
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
291
|
+
model: Record<string, any>;
|
292
|
+
submitText: string | null;
|
293
|
+
resetText: string | null;
|
294
|
+
enterSubmit: boolean;
|
295
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
296
|
+
beforeCreate?: (() => void) | (() => void)[];
|
297
|
+
created?: (() => void) | (() => void)[];
|
298
|
+
beforeMount?: (() => void) | (() => void)[];
|
299
|
+
mounted?: (() => void) | (() => void)[];
|
300
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
301
|
+
updated?: (() => void) | (() => void)[];
|
302
|
+
activated?: (() => void) | (() => void)[];
|
303
|
+
deactivated?: (() => void) | (() => void)[];
|
304
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
305
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
306
|
+
destroyed?: (() => void) | (() => void)[];
|
307
|
+
unmounted?: (() => void) | (() => void)[];
|
308
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
309
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
310
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
311
|
+
};
|
312
|
+
$forceUpdate: () => void;
|
313
|
+
$nextTick: nextTick;
|
314
|
+
$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;
|
315
|
+
} & Readonly<{
|
316
|
+
footer: boolean;
|
317
|
+
inline: boolean;
|
318
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
319
|
+
model: Record<string, any>;
|
320
|
+
submitText: string | null;
|
321
|
+
resetText: string | null;
|
322
|
+
enterSubmit: boolean;
|
323
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
324
|
+
model: {
|
325
|
+
type: PropType<Record<string, any>>;
|
326
|
+
default(): any;
|
327
|
+
};
|
328
|
+
inline: {
|
329
|
+
type: BooleanConstructor;
|
330
|
+
};
|
331
|
+
inlineColumns: {
|
332
|
+
type: NumberConstructor;
|
333
|
+
};
|
334
|
+
footer: {
|
335
|
+
type: BooleanConstructor;
|
336
|
+
default: boolean;
|
337
|
+
};
|
338
|
+
submitText: {
|
339
|
+
type: PropType<string | null>;
|
340
|
+
default: string;
|
341
|
+
};
|
342
|
+
resetText: {
|
343
|
+
type: PropType<string | null>;
|
344
|
+
default: string;
|
345
|
+
};
|
346
|
+
submitMethod: {
|
347
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
348
|
+
};
|
349
|
+
tooltipMessage: {
|
350
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
351
|
+
default: undefined;
|
352
|
+
};
|
353
|
+
enterSubmit: {
|
354
|
+
type: BooleanConstructor;
|
355
|
+
default: boolean;
|
356
|
+
};
|
357
|
+
}>> & Readonly<{
|
358
|
+
onReset?: (() => any) | undefined;
|
359
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
360
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
361
|
+
}>, "reset" | "submit" | "clearValidate" | "validate" | "formRef" | ("footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit")> & ShallowUnwrapRef<{
|
362
|
+
formRef: Ref<any, any>;
|
363
|
+
model: FormModel;
|
364
|
+
submit: () => Promise<void>;
|
365
|
+
reset: (fields?: string[] | string) => void;
|
366
|
+
validate: () => Promise<any>;
|
367
|
+
clearValidate: () => void;
|
368
|
+
}> & {} & ComponentCustomProperties & {} & {
|
369
|
+
$slots: {
|
370
|
+
default?(_: {}): any;
|
371
|
+
footer?(_: {}): any;
|
372
|
+
action?(_: {}): any;
|
373
|
+
};
|
374
|
+
}) | null;
|
142
375
|
};
|
143
|
-
|
376
|
+
rootEl: any;
|
377
|
+
};
|
378
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
379
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
380
|
+
collapsible: {
|
144
381
|
type: BooleanConstructor;
|
145
382
|
default: boolean;
|
146
383
|
};
|
147
|
-
|
148
|
-
type: PropType<
|
149
|
-
default: string;
|
150
|
-
};
|
151
|
-
resetText: {
|
152
|
-
type: PropType<string | null>;
|
153
|
-
default: string;
|
154
|
-
};
|
155
|
-
submitMethod: {
|
156
|
-
type: PropType<(model: FormModel) => Promise<any>>;
|
384
|
+
items: {
|
385
|
+
type: PropType<QueryFormItems>;
|
157
386
|
};
|
158
|
-
|
159
|
-
type:
|
160
|
-
default:
|
387
|
+
inlineColumns: {
|
388
|
+
type: NumberConstructor;
|
389
|
+
default: number;
|
161
390
|
};
|
162
|
-
|
391
|
+
disabled: {
|
163
392
|
type: BooleanConstructor;
|
164
|
-
default: boolean;
|
165
393
|
};
|
166
|
-
}
|
167
|
-
onReset?: (() => any) | undefined;
|
168
|
-
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
169
|
-
onChange?: ((model: Record<string, any>) => any) | undefined;
|
170
|
-
}>, "reset" | "submit" | "clearValidate" | "validate" | "formRef" | ("footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit")> & ShallowUnwrapRef<{
|
171
|
-
formRef: Ref<any, any>;
|
172
|
-
model: FormModel;
|
173
|
-
submit: () => Promise<void>;
|
174
|
-
reset: (fields?: string[] | string) => void;
|
394
|
+
}>, {
|
175
395
|
validate: () => Promise<any>;
|
176
396
|
clearValidate: () => void;
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
397
|
+
submit: () => Promise<void>;
|
398
|
+
reset: (fields?: string[] | string) => void;
|
399
|
+
formRef: Ref<({
|
400
|
+
$: ComponentInternalInstance;
|
401
|
+
$data: {};
|
402
|
+
$props: Partial<{
|
403
|
+
footer: boolean;
|
404
|
+
inline: boolean;
|
405
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
406
|
+
model: Record<string, any>;
|
407
|
+
submitText: string | null;
|
408
|
+
resetText: string | null;
|
409
|
+
enterSubmit: boolean;
|
410
|
+
}> & Omit<{
|
411
|
+
readonly footer: boolean;
|
412
|
+
readonly inline: boolean;
|
413
|
+
readonly submitText: string | null;
|
414
|
+
readonly resetText: string | null;
|
415
|
+
readonly enterSubmit: boolean;
|
416
|
+
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
417
|
+
readonly model?: Record<string, any> | undefined;
|
418
|
+
readonly inlineColumns?: number | undefined;
|
419
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
420
|
+
readonly onReset?: (() => any) | undefined;
|
421
|
+
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
422
|
+
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
423
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit">;
|
424
|
+
$attrs: {
|
425
|
+
[x: string]: unknown;
|
426
|
+
};
|
427
|
+
$refs: {
|
428
|
+
[x: string]: unknown;
|
429
|
+
} & {
|
430
|
+
formRef: ({
|
431
|
+
$: ComponentInternalInstance;
|
432
|
+
$data: {};
|
433
|
+
$props: Partial<{
|
434
|
+
readonly disabled: boolean;
|
435
|
+
readonly inline: boolean;
|
436
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
437
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
438
|
+
readonly inlineMessage: boolean;
|
439
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
440
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
441
|
+
readonly labelSuffix: string;
|
442
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
443
|
+
readonly statusIcon: boolean;
|
444
|
+
readonly hideRequiredAsterisk: boolean;
|
445
|
+
readonly scrollToError: boolean;
|
446
|
+
}> & Omit<{
|
447
|
+
readonly disabled: boolean;
|
448
|
+
readonly inline: boolean;
|
449
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
450
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
451
|
+
readonly inlineMessage: boolean;
|
452
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
453
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
454
|
+
readonly labelSuffix: string;
|
455
|
+
readonly statusIcon: boolean;
|
456
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
457
|
+
readonly hideRequiredAsterisk: boolean;
|
458
|
+
readonly scrollToError: boolean;
|
459
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
460
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
461
|
+
readonly model?: Record<string, any> | undefined;
|
462
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
463
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
464
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
465
|
+
$attrs: {
|
466
|
+
[x: string]: unknown;
|
467
|
+
};
|
468
|
+
$refs: {
|
469
|
+
[x: string]: unknown;
|
470
|
+
};
|
471
|
+
$slots: Readonly<{
|
472
|
+
[name: string]: Slot<any> | undefined;
|
473
|
+
}>;
|
474
|
+
$root: ComponentPublicInstance | null;
|
475
|
+
$parent: ComponentPublicInstance | null;
|
476
|
+
$host: Element | null;
|
477
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
478
|
+
$el: any;
|
479
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
480
|
+
readonly model: ObjectConstructor;
|
481
|
+
readonly rules: {
|
482
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
483
|
+
readonly required: false;
|
484
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
485
|
+
__epPropKey: true;
|
486
|
+
};
|
487
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
488
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
489
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
490
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
491
|
+
readonly inline: BooleanConstructor;
|
492
|
+
readonly inlineMessage: BooleanConstructor;
|
493
|
+
readonly statusIcon: BooleanConstructor;
|
494
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
495
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
496
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
497
|
+
readonly scrollToError: BooleanConstructor;
|
498
|
+
readonly scrollIntoViewOptions: {
|
499
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
500
|
+
readonly required: false;
|
501
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
502
|
+
__epPropKey: true;
|
503
|
+
};
|
504
|
+
readonly size: {
|
505
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
506
|
+
readonly required: false;
|
507
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
508
|
+
__epPropKey: true;
|
509
|
+
};
|
510
|
+
readonly disabled: BooleanConstructor;
|
511
|
+
}>> & {
|
512
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
513
|
+
}, {
|
514
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
515
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
516
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
517
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
518
|
+
scrollToField: (prop: FormItemProp) => void;
|
519
|
+
fields: FormItemContext[];
|
520
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
521
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
522
|
+
}, string, {
|
523
|
+
readonly disabled: boolean;
|
524
|
+
readonly inline: boolean;
|
525
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
526
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
527
|
+
readonly inlineMessage: boolean;
|
528
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
529
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
530
|
+
readonly labelSuffix: string;
|
531
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
532
|
+
readonly statusIcon: boolean;
|
533
|
+
readonly hideRequiredAsterisk: boolean;
|
534
|
+
readonly scrollToError: boolean;
|
535
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
536
|
+
beforeCreate?: (() => void) | (() => void)[];
|
537
|
+
created?: (() => void) | (() => void)[];
|
538
|
+
beforeMount?: (() => void) | (() => void)[];
|
539
|
+
mounted?: (() => void) | (() => void)[];
|
540
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
541
|
+
updated?: (() => void) | (() => void)[];
|
542
|
+
activated?: (() => void) | (() => void)[];
|
543
|
+
deactivated?: (() => void) | (() => void)[];
|
544
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
545
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
546
|
+
destroyed?: (() => void) | (() => void)[];
|
547
|
+
unmounted?: (() => void) | (() => void)[];
|
548
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
549
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
550
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
551
|
+
};
|
552
|
+
$forceUpdate: () => void;
|
553
|
+
$nextTick: nextTick;
|
554
|
+
$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;
|
555
|
+
} & Readonly<{
|
556
|
+
readonly disabled: boolean;
|
557
|
+
readonly inline: boolean;
|
558
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
559
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
560
|
+
readonly inlineMessage: boolean;
|
561
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
562
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
563
|
+
readonly labelSuffix: string;
|
564
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
565
|
+
readonly statusIcon: boolean;
|
566
|
+
readonly hideRequiredAsterisk: boolean;
|
567
|
+
readonly scrollToError: boolean;
|
568
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
569
|
+
readonly model: ObjectConstructor;
|
570
|
+
readonly rules: {
|
571
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
572
|
+
readonly required: false;
|
573
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
574
|
+
__epPropKey: true;
|
575
|
+
};
|
576
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
577
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
578
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
579
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
580
|
+
readonly inline: BooleanConstructor;
|
581
|
+
readonly inlineMessage: BooleanConstructor;
|
582
|
+
readonly statusIcon: BooleanConstructor;
|
583
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
584
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
585
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
586
|
+
readonly scrollToError: BooleanConstructor;
|
587
|
+
readonly scrollIntoViewOptions: {
|
588
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
589
|
+
readonly required: false;
|
590
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
591
|
+
__epPropKey: true;
|
592
|
+
};
|
593
|
+
readonly size: {
|
594
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
595
|
+
readonly required: false;
|
596
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
597
|
+
__epPropKey: true;
|
598
|
+
};
|
599
|
+
readonly disabled: BooleanConstructor;
|
600
|
+
}>> & {
|
601
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
602
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
603
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
604
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
605
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
606
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
607
|
+
scrollToField: (prop: FormItemProp) => void;
|
608
|
+
fields: FormItemContext[];
|
609
|
+
}> & {} & ComponentCustomProperties & {} & {
|
610
|
+
$slots: {
|
611
|
+
default?(_: {}): any;
|
612
|
+
};
|
613
|
+
}) | null;
|
614
|
+
};
|
615
|
+
$slots: Readonly<{
|
616
|
+
[name: string]: Slot<any> | undefined;
|
617
|
+
}>;
|
618
|
+
$root: ComponentPublicInstance | null;
|
619
|
+
$parent: ComponentPublicInstance | null;
|
620
|
+
$host: Element | null;
|
621
|
+
$emit: ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void) & ((event: "change", model: Record<string, any>) => void);
|
622
|
+
$el: any;
|
623
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
624
|
+
model: {
|
625
|
+
type: PropType<Record<string, any>>;
|
626
|
+
default(): any;
|
627
|
+
};
|
628
|
+
inline: {
|
629
|
+
type: BooleanConstructor;
|
630
|
+
};
|
631
|
+
inlineColumns: {
|
632
|
+
type: NumberConstructor;
|
633
|
+
};
|
634
|
+
footer: {
|
635
|
+
type: BooleanConstructor;
|
636
|
+
default: boolean;
|
637
|
+
};
|
638
|
+
submitText: {
|
639
|
+
type: PropType<string | null>;
|
640
|
+
default: string;
|
641
|
+
};
|
642
|
+
resetText: {
|
643
|
+
type: PropType<string | null>;
|
644
|
+
default: string;
|
645
|
+
};
|
646
|
+
submitMethod: {
|
647
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
648
|
+
};
|
649
|
+
tooltipMessage: {
|
650
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
651
|
+
default: undefined;
|
652
|
+
};
|
653
|
+
enterSubmit: {
|
654
|
+
type: BooleanConstructor;
|
655
|
+
default: boolean;
|
656
|
+
};
|
657
|
+
}>> & Readonly<{
|
658
|
+
onReset?: (() => any) | undefined;
|
659
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
660
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
661
|
+
}>, {
|
662
|
+
formRef: Ref<any, any>;
|
663
|
+
model: FormModel;
|
664
|
+
submit: () => Promise<void>;
|
665
|
+
reset: (fields?: string[] | string) => void;
|
666
|
+
validate: () => Promise<any>;
|
667
|
+
clearValidate: () => void;
|
668
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
669
|
+
reset: () => any;
|
670
|
+
submit: (model: Record<string, any>) => any;
|
671
|
+
change: (model: Record<string, any>) => any;
|
672
|
+
}, string, {
|
673
|
+
footer: boolean;
|
674
|
+
inline: boolean;
|
675
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
676
|
+
model: Record<string, any>;
|
677
|
+
submitText: string | null;
|
678
|
+
resetText: string | null;
|
679
|
+
enterSubmit: boolean;
|
680
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
681
|
+
beforeCreate?: (() => void) | (() => void)[];
|
682
|
+
created?: (() => void) | (() => void)[];
|
683
|
+
beforeMount?: (() => void) | (() => void)[];
|
684
|
+
mounted?: (() => void) | (() => void)[];
|
685
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
686
|
+
updated?: (() => void) | (() => void)[];
|
687
|
+
activated?: (() => void) | (() => void)[];
|
688
|
+
deactivated?: (() => void) | (() => void)[];
|
689
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
690
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
691
|
+
destroyed?: (() => void) | (() => void)[];
|
692
|
+
unmounted?: (() => void) | (() => void)[];
|
693
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
694
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
695
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
696
|
+
};
|
697
|
+
$forceUpdate: () => void;
|
698
|
+
$nextTick: nextTick;
|
699
|
+
$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;
|
700
|
+
} & Readonly<{
|
187
701
|
footer: boolean;
|
188
702
|
inline: boolean;
|
189
703
|
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
@@ -191,35 +705,7 @@ declare const formRef: Ref<({
|
|
191
705
|
submitText: string | null;
|
192
706
|
resetText: string | null;
|
193
707
|
enterSubmit: boolean;
|
194
|
-
}> & Omit<{
|
195
|
-
readonly footer: boolean;
|
196
|
-
readonly inline: boolean;
|
197
|
-
readonly submitText: string | null;
|
198
|
-
readonly resetText: string | null;
|
199
|
-
readonly enterSubmit: boolean;
|
200
|
-
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
201
|
-
readonly model?: Record<string, any> | undefined;
|
202
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
203
|
-
readonly inlineColumns?: number | undefined;
|
204
|
-
readonly onReset?: (() => any) | undefined;
|
205
|
-
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
206
|
-
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
207
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit">;
|
208
|
-
$attrs: {
|
209
|
-
[x: string]: unknown;
|
210
|
-
};
|
211
|
-
$refs: {
|
212
|
-
[x: string]: unknown;
|
213
|
-
};
|
214
|
-
$slots: Readonly<{
|
215
|
-
[name: string]: Slot<any> | undefined;
|
216
|
-
}>;
|
217
|
-
$root: ComponentPublicInstance | null;
|
218
|
-
$parent: ComponentPublicInstance | null;
|
219
|
-
$host: Element | null;
|
220
|
-
$emit: ((event: "reset") => void) & ((event: "submit", model: Record<string, any>) => void) & ((event: "change", model: Record<string, any>) => void);
|
221
|
-
$el: any;
|
222
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
708
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
223
709
|
model: {
|
224
710
|
type: PropType<Record<string, any>>;
|
225
711
|
default(): any;
|
@@ -257,191 +743,20 @@ declare const formRef: Ref<({
|
|
257
743
|
onReset?: (() => any) | undefined;
|
258
744
|
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
259
745
|
onChange?: ((model: Record<string, any>) => any) | undefined;
|
260
|
-
}>, {
|
746
|
+
}>, "reset" | "submit" | "clearValidate" | "validate" | "formRef" | ("footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit")> & ShallowUnwrapRef<{
|
261
747
|
formRef: Ref<any, any>;
|
262
748
|
model: FormModel;
|
263
749
|
submit: () => Promise<void>;
|
264
750
|
reset: (fields?: string[] | string) => void;
|
265
751
|
validate: () => Promise<any>;
|
266
752
|
clearValidate: () => void;
|
267
|
-
}
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
275
|
-
model: Record<string, any>;
|
276
|
-
submitText: string | null;
|
277
|
-
resetText: string | null;
|
278
|
-
enterSubmit: boolean;
|
279
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
280
|
-
beforeCreate?: (() => void) | (() => void)[];
|
281
|
-
created?: (() => void) | (() => void)[];
|
282
|
-
beforeMount?: (() => void) | (() => void)[];
|
283
|
-
mounted?: (() => void) | (() => void)[];
|
284
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
285
|
-
updated?: (() => void) | (() => void)[];
|
286
|
-
activated?: (() => void) | (() => void)[];
|
287
|
-
deactivated?: (() => void) | (() => void)[];
|
288
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
289
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
290
|
-
destroyed?: (() => void) | (() => void)[];
|
291
|
-
unmounted?: (() => void) | (() => void)[];
|
292
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
293
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
294
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
295
|
-
};
|
296
|
-
$forceUpdate: () => void;
|
297
|
-
$nextTick: nextTick;
|
298
|
-
$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;
|
299
|
-
} & Readonly<{
|
300
|
-
footer: boolean;
|
301
|
-
inline: boolean;
|
302
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
303
|
-
model: Record<string, any>;
|
304
|
-
submitText: string | null;
|
305
|
-
resetText: string | null;
|
306
|
-
enterSubmit: boolean;
|
307
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
308
|
-
model: {
|
309
|
-
type: PropType<Record<string, any>>;
|
310
|
-
default(): any;
|
311
|
-
};
|
312
|
-
inline: {
|
313
|
-
type: BooleanConstructor;
|
314
|
-
};
|
315
|
-
inlineColumns: {
|
316
|
-
type: NumberConstructor;
|
317
|
-
};
|
318
|
-
footer: {
|
319
|
-
type: BooleanConstructor;
|
320
|
-
default: boolean;
|
321
|
-
};
|
322
|
-
submitText: {
|
323
|
-
type: PropType<string | null>;
|
324
|
-
default: string;
|
325
|
-
};
|
326
|
-
resetText: {
|
327
|
-
type: PropType<string | null>;
|
328
|
-
default: string;
|
329
|
-
};
|
330
|
-
submitMethod: {
|
331
|
-
type: PropType<(model: FormModel) => Promise<any>>;
|
332
|
-
};
|
333
|
-
tooltipMessage: {
|
334
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
335
|
-
default: undefined;
|
336
|
-
};
|
337
|
-
enterSubmit: {
|
338
|
-
type: BooleanConstructor;
|
339
|
-
default: boolean;
|
340
|
-
};
|
341
|
-
}>> & Readonly<{
|
342
|
-
onReset?: (() => any) | undefined;
|
343
|
-
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
344
|
-
onChange?: ((model: Record<string, any>) => any) | undefined;
|
345
|
-
}>, "reset" | "submit" | "clearValidate" | "validate" | "formRef" | ("footer" | "inline" | "tooltipMessage" | "model" | "submitText" | "resetText" | "enterSubmit")> & ShallowUnwrapRef<{
|
346
|
-
formRef: Ref<any, any>;
|
347
|
-
model: FormModel;
|
348
|
-
submit: () => Promise<void>;
|
349
|
-
reset: (fields?: string[] | string) => void;
|
350
|
-
validate: () => Promise<any>;
|
351
|
-
clearValidate: () => void;
|
352
|
-
}> & {} & ComponentCustomProperties & {} & {
|
353
|
-
$slots: {
|
354
|
-
default?: ((props: {}) => any) | undefined;
|
355
|
-
footer?: ((props: {}) => any) | undefined;
|
356
|
-
action?: ((props: {}) => any) | undefined;
|
357
|
-
};
|
358
|
-
}) | undefined>;
|
359
|
-
declare const collapsed: Ref<boolean, boolean>, toggleCollapsed: () => Promise<void>, collapsedClass: ComputedRef<{
|
360
|
-
'is-collapsed': boolean | undefined;
|
361
|
-
}>, collapsedStyle: ComputedRef<{
|
362
|
-
height: string;
|
363
|
-
} | null>, showCollapsible: ComputedRef<boolean | undefined>;
|
364
|
-
declare const isSlotField: (item: QueryFormItem) => item is string;
|
365
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
366
|
-
declare var __VLS_7: {}, __VLS_10: string, __VLS_11: {};
|
367
|
-
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
368
|
-
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
369
|
-
} & {
|
370
|
-
default?: (props: typeof __VLS_7) => any;
|
371
|
-
}>;
|
372
|
-
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
373
|
-
collapsible: {
|
374
|
-
type: BooleanConstructor;
|
375
|
-
default: boolean;
|
376
|
-
};
|
377
|
-
items: {
|
378
|
-
type: PropType<QueryFormItems>;
|
379
|
-
};
|
380
|
-
inlineColumns: {
|
381
|
-
type: NumberConstructor;
|
382
|
-
default: number;
|
383
|
-
};
|
384
|
-
disabled: {
|
385
|
-
type: BooleanConstructor;
|
386
|
-
};
|
387
|
-
}>, {
|
388
|
-
XForm: typeof XForm;
|
389
|
-
XAction: typeof XAction;
|
390
|
-
XField: typeof XField;
|
391
|
-
CaretBottom: typeof CaretBottom;
|
392
|
-
CaretTop: typeof CaretTop;
|
393
|
-
formRef: typeof formRef;
|
394
|
-
collapsed: typeof collapsed;
|
395
|
-
toggleCollapsed: typeof toggleCollapsed;
|
396
|
-
collapsedClass: typeof collapsedClass;
|
397
|
-
collapsedStyle: typeof collapsedStyle;
|
398
|
-
showCollapsible: typeof showCollapsible;
|
399
|
-
isSlotField: typeof isSlotField;
|
400
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
401
|
-
collapsed: (Collapsed: boolean) => any;
|
402
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
403
|
-
collapsible: {
|
404
|
-
type: BooleanConstructor;
|
405
|
-
default: boolean;
|
406
|
-
};
|
407
|
-
items: {
|
408
|
-
type: PropType<QueryFormItems>;
|
409
|
-
};
|
410
|
-
inlineColumns: {
|
411
|
-
type: NumberConstructor;
|
412
|
-
default: number;
|
413
|
-
};
|
414
|
-
disabled: {
|
415
|
-
type: BooleanConstructor;
|
416
|
-
};
|
417
|
-
}>> & Readonly<{
|
418
|
-
onCollapsed?: ((Collapsed: boolean) => any) | undefined;
|
419
|
-
}>, {
|
420
|
-
disabled: boolean;
|
421
|
-
collapsible: boolean;
|
422
|
-
inlineColumns: number;
|
423
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
424
|
-
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
425
|
-
collapsible: {
|
426
|
-
type: BooleanConstructor;
|
427
|
-
default: boolean;
|
428
|
-
};
|
429
|
-
items: {
|
430
|
-
type: PropType<QueryFormItems>;
|
431
|
-
};
|
432
|
-
inlineColumns: {
|
433
|
-
type: NumberConstructor;
|
434
|
-
default: number;
|
435
|
-
};
|
436
|
-
disabled: {
|
437
|
-
type: BooleanConstructor;
|
438
|
-
};
|
439
|
-
}>, {
|
440
|
-
validate: () => Promise<any>;
|
441
|
-
clearValidate: () => void;
|
442
|
-
submit: () => Promise<void>;
|
443
|
-
reset: (fields?: string[] | string) => void;
|
444
|
-
formRef: Ref<({
|
753
|
+
}> & {} & ComponentCustomProperties & {} & {
|
754
|
+
$slots: {
|
755
|
+
default?(_: {}): any;
|
756
|
+
footer?(_: {}): any;
|
757
|
+
action?(_: {}): any;
|
758
|
+
};
|
759
|
+
}) | undefined, ({
|
445
760
|
$: ComponentInternalInstance;
|
446
761
|
$data: {};
|
447
762
|
$props: Partial<{
|
@@ -460,8 +775,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
460
775
|
readonly enterSubmit: boolean;
|
461
776
|
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
462
777
|
readonly model?: Record<string, any> | undefined;
|
463
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
464
778
|
readonly inlineColumns?: number | undefined;
|
779
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
465
780
|
readonly onReset?: (() => any) | undefined;
|
466
781
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
467
782
|
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
@@ -471,6 +786,191 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
471
786
|
};
|
472
787
|
$refs: {
|
473
788
|
[x: string]: unknown;
|
789
|
+
} & {
|
790
|
+
formRef: ({
|
791
|
+
$: ComponentInternalInstance;
|
792
|
+
$data: {};
|
793
|
+
$props: Partial<{
|
794
|
+
readonly disabled: boolean;
|
795
|
+
readonly inline: boolean;
|
796
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
797
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
798
|
+
readonly inlineMessage: boolean;
|
799
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
800
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
801
|
+
readonly labelSuffix: string;
|
802
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
803
|
+
readonly statusIcon: boolean;
|
804
|
+
readonly hideRequiredAsterisk: boolean;
|
805
|
+
readonly scrollToError: boolean;
|
806
|
+
}> & Omit<{
|
807
|
+
readonly disabled: boolean;
|
808
|
+
readonly inline: boolean;
|
809
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
810
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
811
|
+
readonly inlineMessage: boolean;
|
812
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
813
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
814
|
+
readonly labelSuffix: string;
|
815
|
+
readonly statusIcon: boolean;
|
816
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
817
|
+
readonly hideRequiredAsterisk: boolean;
|
818
|
+
readonly scrollToError: boolean;
|
819
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
820
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
821
|
+
readonly model?: Record<string, any> | undefined;
|
822
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
823
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
824
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
825
|
+
$attrs: {
|
826
|
+
[x: string]: unknown;
|
827
|
+
};
|
828
|
+
$refs: {
|
829
|
+
[x: string]: unknown;
|
830
|
+
};
|
831
|
+
$slots: Readonly<{
|
832
|
+
[name: string]: Slot<any> | undefined;
|
833
|
+
}>;
|
834
|
+
$root: ComponentPublicInstance | null;
|
835
|
+
$parent: ComponentPublicInstance | null;
|
836
|
+
$host: Element | null;
|
837
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
838
|
+
$el: any;
|
839
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
840
|
+
readonly model: ObjectConstructor;
|
841
|
+
readonly rules: {
|
842
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
843
|
+
readonly required: false;
|
844
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
845
|
+
__epPropKey: true;
|
846
|
+
};
|
847
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
848
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
849
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
850
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
851
|
+
readonly inline: BooleanConstructor;
|
852
|
+
readonly inlineMessage: BooleanConstructor;
|
853
|
+
readonly statusIcon: BooleanConstructor;
|
854
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
855
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
856
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
857
|
+
readonly scrollToError: BooleanConstructor;
|
858
|
+
readonly scrollIntoViewOptions: {
|
859
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
860
|
+
readonly required: false;
|
861
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
862
|
+
__epPropKey: true;
|
863
|
+
};
|
864
|
+
readonly size: {
|
865
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
866
|
+
readonly required: false;
|
867
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
868
|
+
__epPropKey: true;
|
869
|
+
};
|
870
|
+
readonly disabled: BooleanConstructor;
|
871
|
+
}>> & {
|
872
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
873
|
+
}, {
|
874
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
875
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
876
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
877
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
878
|
+
scrollToField: (prop: FormItemProp) => void;
|
879
|
+
fields: FormItemContext[];
|
880
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
881
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
882
|
+
}, string, {
|
883
|
+
readonly disabled: boolean;
|
884
|
+
readonly inline: boolean;
|
885
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
886
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
887
|
+
readonly inlineMessage: boolean;
|
888
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
889
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
890
|
+
readonly labelSuffix: string;
|
891
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
892
|
+
readonly statusIcon: boolean;
|
893
|
+
readonly hideRequiredAsterisk: boolean;
|
894
|
+
readonly scrollToError: boolean;
|
895
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
896
|
+
beforeCreate?: (() => void) | (() => void)[];
|
897
|
+
created?: (() => void) | (() => void)[];
|
898
|
+
beforeMount?: (() => void) | (() => void)[];
|
899
|
+
mounted?: (() => void) | (() => void)[];
|
900
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
901
|
+
updated?: (() => void) | (() => void)[];
|
902
|
+
activated?: (() => void) | (() => void)[];
|
903
|
+
deactivated?: (() => void) | (() => void)[];
|
904
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
905
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
906
|
+
destroyed?: (() => void) | (() => void)[];
|
907
|
+
unmounted?: (() => void) | (() => void)[];
|
908
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
909
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
910
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
911
|
+
};
|
912
|
+
$forceUpdate: () => void;
|
913
|
+
$nextTick: nextTick;
|
914
|
+
$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;
|
915
|
+
} & Readonly<{
|
916
|
+
readonly disabled: boolean;
|
917
|
+
readonly inline: boolean;
|
918
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
919
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
920
|
+
readonly inlineMessage: boolean;
|
921
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
922
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
923
|
+
readonly labelSuffix: string;
|
924
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
925
|
+
readonly statusIcon: boolean;
|
926
|
+
readonly hideRequiredAsterisk: boolean;
|
927
|
+
readonly scrollToError: boolean;
|
928
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
929
|
+
readonly model: ObjectConstructor;
|
930
|
+
readonly rules: {
|
931
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
932
|
+
readonly required: false;
|
933
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
934
|
+
__epPropKey: true;
|
935
|
+
};
|
936
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
937
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
938
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
939
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
940
|
+
readonly inline: BooleanConstructor;
|
941
|
+
readonly inlineMessage: BooleanConstructor;
|
942
|
+
readonly statusIcon: BooleanConstructor;
|
943
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
944
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
945
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
946
|
+
readonly scrollToError: BooleanConstructor;
|
947
|
+
readonly scrollIntoViewOptions: {
|
948
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
949
|
+
readonly required: false;
|
950
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
951
|
+
__epPropKey: true;
|
952
|
+
};
|
953
|
+
readonly size: {
|
954
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
955
|
+
readonly required: false;
|
956
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
957
|
+
__epPropKey: true;
|
958
|
+
};
|
959
|
+
readonly disabled: BooleanConstructor;
|
960
|
+
}>> & {
|
961
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
962
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
963
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
964
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
965
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
966
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
967
|
+
scrollToField: (prop: FormItemProp) => void;
|
968
|
+
fields: FormItemContext[];
|
969
|
+
}> & {} & ComponentCustomProperties & {} & {
|
970
|
+
$slots: {
|
971
|
+
default?(_: {}): any;
|
972
|
+
};
|
973
|
+
}) | null;
|
474
974
|
};
|
475
975
|
$slots: Readonly<{
|
476
976
|
[name: string]: Slot<any> | undefined;
|
@@ -612,11 +1112,37 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
612
1112
|
clearValidate: () => void;
|
613
1113
|
}> & {} & ComponentCustomProperties & {} & {
|
614
1114
|
$slots: {
|
615
|
-
default
|
616
|
-
footer
|
617
|
-
action
|
1115
|
+
default?(_: {}): any;
|
1116
|
+
footer?(_: {}): any;
|
1117
|
+
action?(_: {}): any;
|
618
1118
|
};
|
619
|
-
}) | undefined
|
1119
|
+
}) | undefined>;
|
1120
|
+
$vtjDynamicSlots: () => boolean[];
|
1121
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
1122
|
+
collapsed: (Collapsed: boolean) => any;
|
1123
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
1124
|
+
collapsible: {
|
1125
|
+
type: BooleanConstructor;
|
1126
|
+
default: boolean;
|
1127
|
+
};
|
1128
|
+
items: {
|
1129
|
+
type: PropType<QueryFormItems>;
|
1130
|
+
};
|
1131
|
+
inlineColumns: {
|
1132
|
+
type: NumberConstructor;
|
1133
|
+
default: number;
|
1134
|
+
};
|
1135
|
+
disabled: {
|
1136
|
+
type: BooleanConstructor;
|
1137
|
+
};
|
1138
|
+
}>> & Readonly<{
|
1139
|
+
onCollapsed?: ((Collapsed: boolean) => any) | undefined;
|
1140
|
+
}>, {
|
1141
|
+
disabled: boolean;
|
1142
|
+
collapsible: boolean;
|
1143
|
+
inlineColumns: number;
|
1144
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
1145
|
+
formRef: ({
|
620
1146
|
$: ComponentInternalInstance;
|
621
1147
|
$data: {};
|
622
1148
|
$props: Partial<{
|
@@ -635,8 +1161,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
635
1161
|
readonly enterSubmit: boolean;
|
636
1162
|
readonly tooltipMessage?: boolean | Partial< ElTooltipProps> | undefined;
|
637
1163
|
readonly model?: Record<string, any> | undefined;
|
638
|
-
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
639
1164
|
readonly inlineColumns?: number | undefined;
|
1165
|
+
readonly submitMethod?: ((model: FormModel) => Promise<any>) | undefined;
|
640
1166
|
readonly onReset?: (() => any) | undefined;
|
641
1167
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
642
1168
|
readonly onChange?: ((model: Record<string, any>) => any) | undefined;
|
@@ -646,6 +1172,191 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
646
1172
|
};
|
647
1173
|
$refs: {
|
648
1174
|
[x: string]: unknown;
|
1175
|
+
} & {
|
1176
|
+
formRef: ({
|
1177
|
+
$: ComponentInternalInstance;
|
1178
|
+
$data: {};
|
1179
|
+
$props: Partial<{
|
1180
|
+
readonly disabled: boolean;
|
1181
|
+
readonly inline: boolean;
|
1182
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1183
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1184
|
+
readonly inlineMessage: boolean;
|
1185
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1186
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1187
|
+
readonly labelSuffix: string;
|
1188
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1189
|
+
readonly statusIcon: boolean;
|
1190
|
+
readonly hideRequiredAsterisk: boolean;
|
1191
|
+
readonly scrollToError: boolean;
|
1192
|
+
}> & Omit<{
|
1193
|
+
readonly disabled: boolean;
|
1194
|
+
readonly inline: boolean;
|
1195
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1196
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1197
|
+
readonly inlineMessage: boolean;
|
1198
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1199
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1200
|
+
readonly labelSuffix: string;
|
1201
|
+
readonly statusIcon: boolean;
|
1202
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1203
|
+
readonly hideRequiredAsterisk: boolean;
|
1204
|
+
readonly scrollToError: boolean;
|
1205
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
1206
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
1207
|
+
readonly model?: Record<string, any> | undefined;
|
1208
|
+
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
1209
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
1210
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
1211
|
+
$attrs: {
|
1212
|
+
[x: string]: unknown;
|
1213
|
+
};
|
1214
|
+
$refs: {
|
1215
|
+
[x: string]: unknown;
|
1216
|
+
};
|
1217
|
+
$slots: Readonly<{
|
1218
|
+
[name: string]: Slot<any> | undefined;
|
1219
|
+
}>;
|
1220
|
+
$root: ComponentPublicInstance | null;
|
1221
|
+
$parent: ComponentPublicInstance | null;
|
1222
|
+
$host: Element | null;
|
1223
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
1224
|
+
$el: any;
|
1225
|
+
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
1226
|
+
readonly model: ObjectConstructor;
|
1227
|
+
readonly rules: {
|
1228
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
1229
|
+
readonly required: false;
|
1230
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1231
|
+
__epPropKey: true;
|
1232
|
+
};
|
1233
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
1234
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
1235
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
1236
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
1237
|
+
readonly inline: BooleanConstructor;
|
1238
|
+
readonly inlineMessage: BooleanConstructor;
|
1239
|
+
readonly statusIcon: BooleanConstructor;
|
1240
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1241
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1242
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
1243
|
+
readonly scrollToError: BooleanConstructor;
|
1244
|
+
readonly scrollIntoViewOptions: {
|
1245
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
1246
|
+
readonly required: false;
|
1247
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1248
|
+
__epPropKey: true;
|
1249
|
+
};
|
1250
|
+
readonly size: {
|
1251
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
1252
|
+
readonly required: false;
|
1253
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1254
|
+
__epPropKey: true;
|
1255
|
+
};
|
1256
|
+
readonly disabled: BooleanConstructor;
|
1257
|
+
}>> & {
|
1258
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
1259
|
+
}, {
|
1260
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
1261
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
1262
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
1263
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
1264
|
+
scrollToField: (prop: FormItemProp) => void;
|
1265
|
+
fields: FormItemContext[];
|
1266
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
1267
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
1268
|
+
}, string, {
|
1269
|
+
readonly disabled: boolean;
|
1270
|
+
readonly inline: boolean;
|
1271
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1272
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1273
|
+
readonly inlineMessage: boolean;
|
1274
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1275
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1276
|
+
readonly labelSuffix: string;
|
1277
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1278
|
+
readonly statusIcon: boolean;
|
1279
|
+
readonly hideRequiredAsterisk: boolean;
|
1280
|
+
readonly scrollToError: boolean;
|
1281
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
1282
|
+
beforeCreate?: (() => void) | (() => void)[];
|
1283
|
+
created?: (() => void) | (() => void)[];
|
1284
|
+
beforeMount?: (() => void) | (() => void)[];
|
1285
|
+
mounted?: (() => void) | (() => void)[];
|
1286
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
1287
|
+
updated?: (() => void) | (() => void)[];
|
1288
|
+
activated?: (() => void) | (() => void)[];
|
1289
|
+
deactivated?: (() => void) | (() => void)[];
|
1290
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
1291
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
1292
|
+
destroyed?: (() => void) | (() => void)[];
|
1293
|
+
unmounted?: (() => void) | (() => void)[];
|
1294
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1295
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
1296
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
1297
|
+
};
|
1298
|
+
$forceUpdate: () => void;
|
1299
|
+
$nextTick: nextTick;
|
1300
|
+
$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;
|
1301
|
+
} & Readonly<{
|
1302
|
+
readonly disabled: boolean;
|
1303
|
+
readonly inline: boolean;
|
1304
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
1305
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
1306
|
+
readonly inlineMessage: boolean;
|
1307
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1308
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
1309
|
+
readonly labelSuffix: string;
|
1310
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
1311
|
+
readonly statusIcon: boolean;
|
1312
|
+
readonly hideRequiredAsterisk: boolean;
|
1313
|
+
readonly scrollToError: boolean;
|
1314
|
+
}> & Omit<Readonly< ExtractPropTypes<{
|
1315
|
+
readonly model: ObjectConstructor;
|
1316
|
+
readonly rules: {
|
1317
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
1318
|
+
readonly required: false;
|
1319
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1320
|
+
__epPropKey: true;
|
1321
|
+
};
|
1322
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
1323
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
1324
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
1325
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
1326
|
+
readonly inline: BooleanConstructor;
|
1327
|
+
readonly inlineMessage: BooleanConstructor;
|
1328
|
+
readonly statusIcon: BooleanConstructor;
|
1329
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1330
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
1331
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
1332
|
+
readonly scrollToError: BooleanConstructor;
|
1333
|
+
readonly scrollIntoViewOptions: {
|
1334
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
1335
|
+
readonly required: false;
|
1336
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1337
|
+
__epPropKey: true;
|
1338
|
+
};
|
1339
|
+
readonly size: {
|
1340
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
1341
|
+
readonly required: false;
|
1342
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
1343
|
+
__epPropKey: true;
|
1344
|
+
};
|
1345
|
+
readonly disabled: BooleanConstructor;
|
1346
|
+
}>> & {
|
1347
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
1348
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
1349
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
1350
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
1351
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
1352
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
1353
|
+
scrollToField: (prop: FormItemProp) => void;
|
1354
|
+
fields: FormItemContext[];
|
1355
|
+
}> & {} & ComponentCustomProperties & {} & {
|
1356
|
+
$slots: {
|
1357
|
+
default?(_: {}): any;
|
1358
|
+
};
|
1359
|
+
}) | null;
|
649
1360
|
};
|
650
1361
|
$slots: Readonly<{
|
651
1362
|
[name: string]: Slot<any> | undefined;
|
@@ -787,39 +1498,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
787
1498
|
clearValidate: () => void;
|
788
1499
|
}> & {} & ComponentCustomProperties & {} & {
|
789
1500
|
$slots: {
|
790
|
-
default
|
791
|
-
footer
|
792
|
-
action
|
1501
|
+
default?(_: {}): any;
|
1502
|
+
footer?(_: {}): any;
|
1503
|
+
action?(_: {}): any;
|
793
1504
|
};
|
794
|
-
}) |
|
795
|
-
|
796
|
-
|
797
|
-
collapsed: (Collapsed: boolean) => any;
|
798
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
799
|
-
collapsible: {
|
800
|
-
type: BooleanConstructor;
|
801
|
-
default: boolean;
|
802
|
-
};
|
803
|
-
items: {
|
804
|
-
type: PropType<QueryFormItems>;
|
805
|
-
};
|
806
|
-
inlineColumns: {
|
807
|
-
type: NumberConstructor;
|
808
|
-
default: number;
|
809
|
-
};
|
810
|
-
disabled: {
|
811
|
-
type: BooleanConstructor;
|
812
|
-
};
|
813
|
-
}>> & Readonly<{
|
814
|
-
onCollapsed?: ((Collapsed: boolean) => any) | undefined;
|
815
|
-
}>, {
|
816
|
-
disabled: boolean;
|
817
|
-
collapsible: boolean;
|
818
|
-
inlineColumns: number;
|
819
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
820
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
1505
|
+
}) | null;
|
1506
|
+
}, any>;
|
1507
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
821
1508
|
export default _default;
|
822
|
-
type
|
1509
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
823
1510
|
new (): {
|
824
1511
|
$slots: S;
|
825
1512
|
};
|