@vtj/ui 0.10.5 → 0.10.6
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 +3 -10
- package/types/components/attachment/Attachment.d.ts +274 -805
- package/types/components/container/Container.d.ts +178 -15
- package/types/components/data-item/DataItem.d.ts +517 -18
- package/types/components/dialog/Dialog.d.ts +372 -1143
- package/types/components/dialog-form/DialogForm.d.ts +104 -3049
- package/types/components/dialog-grid/DialogGrid.d.ts +69 -4907
- package/types/components/field/Field.d.ts +222 -353
- package/types/components/field/editors/SelectEditor.d.ts +21 -12
- package/types/components/form/Form.d.ts +116 -389
- package/types/components/grid/Grid.d.ts +787 -57
- package/types/components/grid/renderers/components/DateEdit.d.ts +2 -255
- package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
- package/types/components/grid/renderers/components/GridEdit.d.ts +2 -410
- 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 +2 -1926
- package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
- package/types/components/grid-editor/GridEditor.d.ts +2 -375
- package/types/components/header/Header.d.ts +76 -14
- package/types/components/import-button/ImportButton.d.ts +47 -10
- package/types/components/list/List.d.ts +155 -30
- package/types/components/mask/Mask.d.ts +546 -562
- package/types/components/mask/components/Avatar.d.ts +16 -11
- package/types/components/mask/components/Brand.d.ts +17 -12
- package/types/components/mask/components/Content.d.ts +13 -12
- package/types/components/mask/components/Sidebar.d.ts +15 -12
- package/types/components/mask/components/Tabs.d.ts +2 -255
- package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
- package/types/components/mask/components/Toolbar.d.ts +55 -13
- package/types/components/panel/Panel.d.ts +124 -521
- package/types/components/picker/Dialog.d.ts +2 -1291
- package/types/components/picker/Picker.d.ts +2 -1730
- package/types/components/qr-code/QrCode.d.ts +35 -13
- package/types/components/query-form/QueryForm.d.ts +418 -1105
- package/types/components/startup/Startup.d.ts +1 -1
- package/types/components/tabs/Tabs.d.ts +297 -53
- package/types/components/test/Test.d.ts +268 -41
- package/types/version.d.ts +2 -2
- package/types/components/icon/Icon.d.ts +0 -74
@@ -1,19 +1,28 @@
|
|
1
|
+
import { ElSelect, ElOption } from 'element-plus';
|
1
2
|
import { FieldOption } from '../types';
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
4
|
export interface Props {
|
4
5
|
options?: FieldOption[];
|
5
6
|
}
|
6
|
-
declare
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
option: FieldOption;
|
11
|
-
}): any;
|
12
|
-
};
|
13
|
-
refs: {};
|
14
|
-
rootEl: any;
|
7
|
+
declare const onChange: (v: any) => void;
|
8
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
9
|
+
declare var __VLS_14: {
|
10
|
+
option: FieldOption;
|
15
11
|
};
|
16
|
-
type
|
12
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
13
|
+
option?: (props: typeof __VLS_14) => any;
|
14
|
+
}>;
|
15
|
+
declare const __VLS_self: DefineComponent<Props, {
|
16
|
+
ElSelect: typeof ElSelect;
|
17
|
+
ElOption: typeof ElOption;
|
18
|
+
onChange: typeof onChange;
|
19
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
20
|
+
change: (...args: any[]) => void;
|
21
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
22
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
23
|
+
}>, {
|
24
|
+
options: FieldOption[];
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
17
26
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
18
27
|
change: (...args: any[]) => void;
|
19
28
|
}, string, PublicProps, Readonly<Props> & Readonly<{
|
@@ -21,9 +30,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
21
30
|
}>, {
|
22
31
|
options: FieldOption[];
|
23
32
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
24
|
-
declare const _default:
|
33
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
25
34
|
export default _default;
|
26
|
-
type
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
27
36
|
new (): {
|
28
37
|
$slots: S;
|
29
38
|
};
|
@@ -1,205 +1,117 @@
|
|
1
|
+
import { ElForm, ElButton, ElTooltipProps } from 'element-plus';
|
1
2
|
import { FormModel } from './types';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
declare
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
115
|
-
readonly labelSuffix: string;
|
116
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
117
|
-
readonly statusIcon: boolean;
|
118
|
-
readonly hideRequiredAsterisk: boolean;
|
119
|
-
readonly scrollToError: boolean;
|
120
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
121
|
-
beforeCreate?: (() => void) | (() => void)[];
|
122
|
-
created?: (() => void) | (() => void)[];
|
123
|
-
beforeMount?: (() => void) | (() => void)[];
|
124
|
-
mounted?: (() => void) | (() => void)[];
|
125
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
126
|
-
updated?: (() => void) | (() => void)[];
|
127
|
-
activated?: (() => void) | (() => void)[];
|
128
|
-
deactivated?: (() => void) | (() => void)[];
|
129
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
130
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
131
|
-
destroyed?: (() => void) | (() => void)[];
|
132
|
-
unmounted?: (() => void) | (() => void)[];
|
133
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
134
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
135
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
136
|
-
};
|
137
|
-
$forceUpdate: () => void;
|
138
|
-
$nextTick: nextTick;
|
139
|
-
$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;
|
140
|
-
} & Readonly<{
|
141
|
-
readonly disabled: boolean;
|
142
|
-
readonly inline: boolean;
|
143
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
144
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
145
|
-
readonly inlineMessage: boolean;
|
146
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
147
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
148
|
-
readonly labelSuffix: string;
|
149
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
150
|
-
readonly statusIcon: boolean;
|
151
|
-
readonly hideRequiredAsterisk: boolean;
|
152
|
-
readonly scrollToError: boolean;
|
153
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
154
|
-
readonly model: ObjectConstructor;
|
155
|
-
readonly rules: {
|
156
|
-
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
157
|
-
readonly required: false;
|
158
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
159
|
-
__epPropKey: true;
|
160
|
-
};
|
161
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
162
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
163
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
164
|
-
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
165
|
-
readonly inline: BooleanConstructor;
|
166
|
-
readonly inlineMessage: BooleanConstructor;
|
167
|
-
readonly statusIcon: BooleanConstructor;
|
168
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
169
|
-
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
170
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
171
|
-
readonly scrollToError: BooleanConstructor;
|
172
|
-
readonly scrollIntoViewOptions: {
|
173
|
-
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
174
|
-
readonly required: false;
|
175
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
176
|
-
__epPropKey: true;
|
177
|
-
};
|
178
|
-
readonly size: {
|
179
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
180
|
-
readonly required: false;
|
181
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
182
|
-
__epPropKey: true;
|
183
|
-
};
|
184
|
-
readonly disabled: BooleanConstructor;
|
185
|
-
}>> & {
|
186
|
-
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
187
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
188
|
-
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
189
|
-
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
190
|
-
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
191
|
-
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
192
|
-
scrollToField: (prop: FormItemProp) => void;
|
193
|
-
fields: FormItemContext[];
|
194
|
-
}> & {} & ComponentCustomProperties & {} & {
|
195
|
-
$slots: {
|
196
|
-
default?(_: {}): any;
|
197
|
-
};
|
198
|
-
}) | null;
|
199
|
-
};
|
200
|
-
rootEl: any;
|
201
|
-
};
|
202
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
3
|
+
import { XField } from '../../';
|
4
|
+
import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
5
|
+
declare const formRef: Ref<any, any>;
|
6
|
+
declare const model: FormModel;
|
7
|
+
declare const loading: Ref<boolean, boolean>;
|
8
|
+
declare const submit: () => Promise<void>;
|
9
|
+
declare const onEnter: () => void;
|
10
|
+
declare const reset: (fields?: string[] | string) => void;
|
11
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
12
|
+
declare var __VLS_12: {}, __VLS_18: {}, __VLS_36: {};
|
13
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
14
|
+
default?: (props: typeof __VLS_12) => any;
|
15
|
+
} & {
|
16
|
+
footer?: (props: typeof __VLS_18) => any;
|
17
|
+
} & {
|
18
|
+
action?: (props: typeof __VLS_36) => any;
|
19
|
+
}>;
|
20
|
+
declare const __VLS_self: DefineComponent<ExtractPropTypes<{
|
21
|
+
model: {
|
22
|
+
type: PropType<Record<string, any>>;
|
23
|
+
default(): any;
|
24
|
+
};
|
25
|
+
inline: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
};
|
28
|
+
inlineColumns: {
|
29
|
+
type: NumberConstructor;
|
30
|
+
};
|
31
|
+
footer: {
|
32
|
+
type: BooleanConstructor;
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
submitText: {
|
36
|
+
type: PropType<string | null>;
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
resetText: {
|
40
|
+
type: PropType<string | null>;
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
submitMethod: {
|
44
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
45
|
+
};
|
46
|
+
tooltipMessage: {
|
47
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
48
|
+
default: undefined;
|
49
|
+
};
|
50
|
+
enterSubmit: {
|
51
|
+
type: BooleanConstructor;
|
52
|
+
default: boolean;
|
53
|
+
};
|
54
|
+
}>, {
|
55
|
+
ElForm: typeof ElForm;
|
56
|
+
ElButton: typeof ElButton;
|
57
|
+
XField: typeof XField;
|
58
|
+
formRef: typeof formRef;
|
59
|
+
model: typeof model;
|
60
|
+
loading: typeof loading;
|
61
|
+
submit: typeof submit;
|
62
|
+
onEnter: typeof onEnter;
|
63
|
+
reset: typeof reset;
|
64
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
65
|
+
reset: () => any;
|
66
|
+
submit: (model: Record<string, any>) => any;
|
67
|
+
change: (model: Record<string, any>) => any;
|
68
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
69
|
+
model: {
|
70
|
+
type: PropType<Record<string, any>>;
|
71
|
+
default(): any;
|
72
|
+
};
|
73
|
+
inline: {
|
74
|
+
type: BooleanConstructor;
|
75
|
+
};
|
76
|
+
inlineColumns: {
|
77
|
+
type: NumberConstructor;
|
78
|
+
};
|
79
|
+
footer: {
|
80
|
+
type: BooleanConstructor;
|
81
|
+
default: boolean;
|
82
|
+
};
|
83
|
+
submitText: {
|
84
|
+
type: PropType<string | null>;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
resetText: {
|
88
|
+
type: PropType<string | null>;
|
89
|
+
default: string;
|
90
|
+
};
|
91
|
+
submitMethod: {
|
92
|
+
type: PropType<(model: FormModel) => Promise<any>>;
|
93
|
+
};
|
94
|
+
tooltipMessage: {
|
95
|
+
type: PropType<boolean | Partial< ElTooltipProps>>;
|
96
|
+
default: undefined;
|
97
|
+
};
|
98
|
+
enterSubmit: {
|
99
|
+
type: BooleanConstructor;
|
100
|
+
default: boolean;
|
101
|
+
};
|
102
|
+
}>> & Readonly<{
|
103
|
+
onReset?: (() => any) | undefined;
|
104
|
+
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
105
|
+
onChange?: ((model: Record<string, any>) => any) | undefined;
|
106
|
+
}>, {
|
107
|
+
footer: boolean;
|
108
|
+
inline: boolean;
|
109
|
+
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
110
|
+
model: Record<string, any>;
|
111
|
+
submitText: string | null;
|
112
|
+
resetText: string | null;
|
113
|
+
enterSubmit: boolean;
|
114
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
203
115
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
204
116
|
model: {
|
205
117
|
type: PropType<Record<string, any>>;
|
@@ -291,195 +203,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
291
203
|
submitText: string | null;
|
292
204
|
resetText: string | null;
|
293
205
|
enterSubmit: boolean;
|
294
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
295
|
-
|
296
|
-
$: ComponentInternalInstance;
|
297
|
-
$data: {};
|
298
|
-
$props: Partial<{
|
299
|
-
readonly disabled: boolean;
|
300
|
-
readonly inline: boolean;
|
301
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
302
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
303
|
-
readonly inlineMessage: boolean;
|
304
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
305
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
306
|
-
readonly labelSuffix: string;
|
307
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
308
|
-
readonly statusIcon: boolean;
|
309
|
-
readonly hideRequiredAsterisk: boolean;
|
310
|
-
readonly scrollToError: boolean;
|
311
|
-
}> & Omit<{
|
312
|
-
readonly disabled: boolean;
|
313
|
-
readonly inline: boolean;
|
314
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
315
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
316
|
-
readonly inlineMessage: boolean;
|
317
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
318
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
319
|
-
readonly labelSuffix: string;
|
320
|
-
readonly statusIcon: boolean;
|
321
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
322
|
-
readonly hideRequiredAsterisk: boolean;
|
323
|
-
readonly scrollToError: boolean;
|
324
|
-
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
325
|
-
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
326
|
-
readonly model?: Record<string, any> | undefined;
|
327
|
-
readonly scrollIntoViewOptions?: EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown> | undefined;
|
328
|
-
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
329
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError">;
|
330
|
-
$attrs: {
|
331
|
-
[x: string]: unknown;
|
332
|
-
};
|
333
|
-
$refs: {
|
334
|
-
[x: string]: unknown;
|
335
|
-
};
|
336
|
-
$slots: Readonly<{
|
337
|
-
[name: string]: Slot<any> | undefined;
|
338
|
-
}>;
|
339
|
-
$root: ComponentPublicInstance | null;
|
340
|
-
$parent: ComponentPublicInstance | null;
|
341
|
-
$host: Element | null;
|
342
|
-
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
343
|
-
$el: any;
|
344
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
345
|
-
readonly model: ObjectConstructor;
|
346
|
-
readonly rules: {
|
347
|
-
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
348
|
-
readonly required: false;
|
349
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
350
|
-
__epPropKey: true;
|
351
|
-
};
|
352
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
353
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
354
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
355
|
-
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
356
|
-
readonly inline: BooleanConstructor;
|
357
|
-
readonly inlineMessage: BooleanConstructor;
|
358
|
-
readonly statusIcon: BooleanConstructor;
|
359
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
360
|
-
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
361
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
362
|
-
readonly scrollToError: BooleanConstructor;
|
363
|
-
readonly scrollIntoViewOptions: {
|
364
|
-
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
365
|
-
readonly required: false;
|
366
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
367
|
-
__epPropKey: true;
|
368
|
-
};
|
369
|
-
readonly size: {
|
370
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
371
|
-
readonly required: false;
|
372
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
373
|
-
__epPropKey: true;
|
374
|
-
};
|
375
|
-
readonly disabled: BooleanConstructor;
|
376
|
-
}>> & {
|
377
|
-
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
378
|
-
}, {
|
379
|
-
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
380
|
-
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
381
|
-
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
382
|
-
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
383
|
-
scrollToField: (prop: FormItemProp) => void;
|
384
|
-
fields: FormItemContext[];
|
385
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
386
|
-
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
387
|
-
}, string, {
|
388
|
-
readonly disabled: boolean;
|
389
|
-
readonly inline: boolean;
|
390
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
391
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
392
|
-
readonly inlineMessage: boolean;
|
393
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
394
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
395
|
-
readonly labelSuffix: string;
|
396
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
397
|
-
readonly statusIcon: boolean;
|
398
|
-
readonly hideRequiredAsterisk: boolean;
|
399
|
-
readonly scrollToError: boolean;
|
400
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
401
|
-
beforeCreate?: (() => void) | (() => void)[];
|
402
|
-
created?: (() => void) | (() => void)[];
|
403
|
-
beforeMount?: (() => void) | (() => void)[];
|
404
|
-
mounted?: (() => void) | (() => void)[];
|
405
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
406
|
-
updated?: (() => void) | (() => void)[];
|
407
|
-
activated?: (() => void) | (() => void)[];
|
408
|
-
deactivated?: (() => void) | (() => void)[];
|
409
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
410
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
411
|
-
destroyed?: (() => void) | (() => void)[];
|
412
|
-
unmounted?: (() => void) | (() => void)[];
|
413
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
414
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
415
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
416
|
-
};
|
417
|
-
$forceUpdate: () => void;
|
418
|
-
$nextTick: nextTick;
|
419
|
-
$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;
|
420
|
-
} & Readonly<{
|
421
|
-
readonly disabled: boolean;
|
422
|
-
readonly inline: boolean;
|
423
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
424
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
425
|
-
readonly inlineMessage: boolean;
|
426
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
427
|
-
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
428
|
-
readonly labelSuffix: string;
|
429
|
-
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
430
|
-
readonly statusIcon: boolean;
|
431
|
-
readonly hideRequiredAsterisk: boolean;
|
432
|
-
readonly scrollToError: boolean;
|
433
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
434
|
-
readonly model: ObjectConstructor;
|
435
|
-
readonly rules: {
|
436
|
-
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
437
|
-
readonly required: false;
|
438
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
439
|
-
__epPropKey: true;
|
440
|
-
};
|
441
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "left" | "right", unknown, "right", boolean>;
|
442
|
-
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
443
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
444
|
-
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
445
|
-
readonly inline: BooleanConstructor;
|
446
|
-
readonly inlineMessage: BooleanConstructor;
|
447
|
-
readonly statusIcon: BooleanConstructor;
|
448
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
449
|
-
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
450
|
-
readonly hideRequiredAsterisk: BooleanConstructor;
|
451
|
-
readonly scrollToError: BooleanConstructor;
|
452
|
-
readonly scrollIntoViewOptions: {
|
453
|
-
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
454
|
-
readonly required: false;
|
455
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
456
|
-
__epPropKey: true;
|
457
|
-
};
|
458
|
-
readonly size: {
|
459
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
460
|
-
readonly required: false;
|
461
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
462
|
-
__epPropKey: true;
|
463
|
-
};
|
464
|
-
readonly disabled: BooleanConstructor;
|
465
|
-
}>> & {
|
466
|
-
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
467
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
|
468
|
-
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
469
|
-
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
470
|
-
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
471
|
-
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
472
|
-
scrollToField: (prop: FormItemProp) => void;
|
473
|
-
fields: FormItemContext[];
|
474
|
-
}> & {} & ComponentCustomProperties & {} & {
|
475
|
-
$slots: {
|
476
|
-
default?(_: {}): any;
|
477
|
-
};
|
478
|
-
}) | null;
|
479
|
-
}, any>;
|
480
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
206
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
207
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
481
208
|
export default _default;
|
482
|
-
type
|
209
|
+
type __VLS_WithSlots<T, S> = T & {
|
483
210
|
new (): {
|
484
211
|
$slots: S;
|
485
212
|
};
|