@vtj/ui 0.13.32 → 0.13.34
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 +1602 -1598
- package/dist/index.umd.js +4 -4
- package/package.json +4 -4
- package/types/components/action/Action.d.ts +573 -721
- package/types/components/action/hooks.d.ts +100 -123
- package/types/components/action-bar/ActionBar.d.ts +383 -481
- package/types/components/attachment/Attachment.d.ts +422 -731
- package/types/components/data-item/DataItem.d.ts +383 -481
- package/types/components/dialog-form/DialogForm.d.ts +138 -332
- package/types/components/field/Field.d.ts +86 -224
- package/types/components/form/Form.d.ts +138 -332
- package/types/components/grid/renderers/components/DateEdit.d.ts +235 -338
- package/types/components/grid/renderers/components/GridEdit.d.ts +81 -249
- package/types/components/grid-editor/GridEditor.d.ts +81 -249
- package/types/components/mask/Mask.d.ts +400 -498
- package/types/components/mask/components/Content.d.ts +1 -0
- package/types/components/query-form/QueryForm.d.ts +290 -672
- package/types/components/tabs/Tabs.d.ts +193 -241
- package/types/version.d.ts +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
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
2
|
import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext, ComponentSize, FormItemValidateState } from 'element-plus';
|
|
3
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';
|
|
4
6
|
import { RuleType, Rule, InternalRuleItem, ValidateError, Value, Values, ValidateOption, SyncValidateResult } from 'async-validator';
|
|
5
7
|
import { OnCleanup } from '@vue/reactivity';
|
|
6
8
|
import { QueryFormItems } from './types';
|
|
@@ -51,33 +53,33 @@ declare function __VLS_template(): {
|
|
|
51
53
|
$props: Partial<{
|
|
52
54
|
readonly disabled: boolean;
|
|
53
55
|
readonly inline: boolean;
|
|
54
|
-
readonly labelWidth:
|
|
55
|
-
readonly labelPosition: "
|
|
56
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
57
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
56
58
|
readonly inlineMessage: boolean;
|
|
57
|
-
readonly showMessage:
|
|
58
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
59
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
60
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
59
61
|
readonly labelSuffix: string;
|
|
60
|
-
readonly validateOnRuleChange:
|
|
61
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
62
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
63
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
62
64
|
readonly statusIcon: boolean;
|
|
63
65
|
readonly hideRequiredAsterisk: boolean;
|
|
64
66
|
readonly scrollToError: boolean;
|
|
65
67
|
}> & Omit<{
|
|
66
68
|
readonly disabled: boolean;
|
|
67
69
|
readonly inline: boolean;
|
|
68
|
-
readonly labelWidth:
|
|
69
|
-
readonly labelPosition: "top" | "left" | "right"
|
|
70
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
71
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
70
72
|
readonly inlineMessage: boolean;
|
|
71
|
-
readonly showMessage:
|
|
72
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
73
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
74
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
73
75
|
readonly labelSuffix: string;
|
|
74
76
|
readonly statusIcon: boolean;
|
|
75
|
-
readonly validateOnRuleChange:
|
|
77
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
76
78
|
readonly hideRequiredAsterisk: boolean;
|
|
77
79
|
readonly scrollToError: boolean;
|
|
78
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
79
|
-
readonly size?:
|
|
80
|
-
readonly rules?: Partial<Record<string, FormItemRule |
|
|
80
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
81
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
82
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
81
83
|
readonly model?: Record<string, any> | undefined;
|
|
82
84
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
83
85
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
@@ -98,74 +100,25 @@ declare function __VLS_template(): {
|
|
|
98
100
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
99
101
|
readonly model: ObjectConstructor;
|
|
100
102
|
readonly rules: {
|
|
101
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
103
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
102
104
|
readonly required: false;
|
|
103
105
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
106
|
__epPropKey: true;
|
|
105
107
|
};
|
|
106
|
-
readonly labelPosition:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
__epPropKey: true;
|
|
111
|
-
} & {
|
|
112
|
-
readonly default: "right";
|
|
113
|
-
};
|
|
114
|
-
readonly requireAsteriskPosition: {
|
|
115
|
-
readonly type: PropType<"left" | "right">;
|
|
116
|
-
readonly required: false;
|
|
117
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
-
__epPropKey: true;
|
|
119
|
-
} & {
|
|
120
|
-
readonly default: "left";
|
|
121
|
-
};
|
|
122
|
-
readonly labelWidth: {
|
|
123
|
-
readonly type: PropType<string | number>;
|
|
124
|
-
readonly required: false;
|
|
125
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
-
__epPropKey: true;
|
|
127
|
-
} & {
|
|
128
|
-
readonly default: "";
|
|
129
|
-
};
|
|
130
|
-
readonly labelSuffix: {
|
|
131
|
-
readonly type: PropType<string>;
|
|
132
|
-
readonly required: false;
|
|
133
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
-
__epPropKey: true;
|
|
135
|
-
} & {
|
|
136
|
-
readonly default: "";
|
|
137
|
-
};
|
|
108
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
109
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
110
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
111
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
138
112
|
readonly inline: BooleanConstructor;
|
|
139
113
|
readonly inlineMessage: BooleanConstructor;
|
|
140
114
|
readonly statusIcon: BooleanConstructor;
|
|
141
|
-
readonly showMessage:
|
|
142
|
-
|
|
143
|
-
readonly required: false;
|
|
144
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
|
-
__epPropKey: true;
|
|
146
|
-
} & {
|
|
147
|
-
readonly default: true;
|
|
148
|
-
};
|
|
149
|
-
readonly validateOnRuleChange: {
|
|
150
|
-
readonly type: PropType<boolean>;
|
|
151
|
-
readonly required: false;
|
|
152
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
-
__epPropKey: true;
|
|
154
|
-
} & {
|
|
155
|
-
readonly default: true;
|
|
156
|
-
};
|
|
115
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
116
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
157
117
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
158
118
|
readonly scrollToError: BooleanConstructor;
|
|
159
|
-
readonly scrollIntoViewOptions:
|
|
160
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
161
|
-
readonly required: false;
|
|
162
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
163
|
-
__epPropKey: true;
|
|
164
|
-
} & {
|
|
165
|
-
readonly default: true;
|
|
166
|
-
};
|
|
119
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
167
120
|
readonly size: {
|
|
168
|
-
readonly type: PropType<"" | "
|
|
121
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
169
122
|
readonly required: false;
|
|
170
123
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
171
124
|
__epPropKey: true;
|
|
@@ -175,9 +128,9 @@ declare function __VLS_template(): {
|
|
|
175
128
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
176
129
|
}, {
|
|
177
130
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
178
|
-
validateField: (props?: FormItemProp
|
|
179
|
-
resetFields: (props?: FormItemProp
|
|
180
|
-
clearValidate: (props?: FormItemProp
|
|
131
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
132
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
133
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
181
134
|
scrollToField: (prop: FormItemProp) => void;
|
|
182
135
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
183
136
|
fields: {
|
|
@@ -196,15 +149,15 @@ declare function __VLS_template(): {
|
|
|
196
149
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
197
150
|
resetField: () => void;
|
|
198
151
|
clearValidate: () => void;
|
|
199
|
-
readonly labelWidth:
|
|
200
|
-
readonly labelPosition: "" | "
|
|
201
|
-
readonly showMessage:
|
|
152
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
153
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
154
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
155
|
readonly label?: string | undefined;
|
|
203
|
-
readonly prop?: FormItemProp | undefined;
|
|
204
|
-
readonly required?:
|
|
156
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
157
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
205
158
|
readonly error?: string | undefined;
|
|
206
159
|
readonly rules?: {
|
|
207
|
-
trigger?:
|
|
160
|
+
trigger?: Arrayable<string> | undefined;
|
|
208
161
|
type?: RuleType | undefined;
|
|
209
162
|
required?: boolean | undefined;
|
|
210
163
|
pattern?: string | {
|
|
@@ -230,7 +183,8 @@ declare function __VLS_template(): {
|
|
|
230
183
|
} | undefined;
|
|
231
184
|
min?: number | undefined;
|
|
232
185
|
max?: number | undefined;
|
|
233
|
-
len
|
|
186
|
+
len
|
|
187
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
234
188
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
235
189
|
whitespace?: boolean | undefined;
|
|
236
190
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -475,7 +429,7 @@ declare function __VLS_template(): {
|
|
|
475
429
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
476
430
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
477
431
|
} | {
|
|
478
|
-
trigger?:
|
|
432
|
+
trigger?: Arrayable<string> | undefined;
|
|
479
433
|
type?: RuleType | undefined;
|
|
480
434
|
required?: boolean | undefined;
|
|
481
435
|
pattern?: string | {
|
|
@@ -746,8 +700,8 @@ declare function __VLS_template(): {
|
|
|
746
700
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
747
701
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
748
702
|
}[] | undefined;
|
|
749
|
-
readonly validateStatus?:
|
|
750
|
-
readonly inlineMessage?:
|
|
703
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
704
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
751
705
|
readonly for?: string | undefined;
|
|
752
706
|
}[];
|
|
753
707
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -755,14 +709,14 @@ declare function __VLS_template(): {
|
|
|
755
709
|
}, string, {
|
|
756
710
|
readonly disabled: boolean;
|
|
757
711
|
readonly inline: boolean;
|
|
758
|
-
readonly labelWidth:
|
|
759
|
-
readonly labelPosition: "
|
|
712
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
713
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
760
714
|
readonly inlineMessage: boolean;
|
|
761
|
-
readonly showMessage:
|
|
762
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
715
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
716
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
763
717
|
readonly labelSuffix: string;
|
|
764
|
-
readonly validateOnRuleChange:
|
|
765
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
718
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
719
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
766
720
|
readonly statusIcon: boolean;
|
|
767
721
|
readonly hideRequiredAsterisk: boolean;
|
|
768
722
|
readonly scrollToError: boolean;
|
|
@@ -789,88 +743,39 @@ declare function __VLS_template(): {
|
|
|
789
743
|
} & Readonly<{
|
|
790
744
|
readonly disabled: boolean;
|
|
791
745
|
readonly inline: boolean;
|
|
792
|
-
readonly labelWidth:
|
|
793
|
-
readonly labelPosition: "
|
|
746
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
747
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
794
748
|
readonly inlineMessage: boolean;
|
|
795
|
-
readonly showMessage:
|
|
796
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
749
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
750
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
797
751
|
readonly labelSuffix: string;
|
|
798
|
-
readonly validateOnRuleChange:
|
|
799
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
752
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
753
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
800
754
|
readonly statusIcon: boolean;
|
|
801
755
|
readonly hideRequiredAsterisk: boolean;
|
|
802
756
|
readonly scrollToError: boolean;
|
|
803
757
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
804
758
|
readonly model: ObjectConstructor;
|
|
805
759
|
readonly rules: {
|
|
806
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
760
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
807
761
|
readonly required: false;
|
|
808
762
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
809
763
|
__epPropKey: true;
|
|
810
764
|
};
|
|
811
|
-
readonly labelPosition:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
__epPropKey: true;
|
|
816
|
-
} & {
|
|
817
|
-
readonly default: "right";
|
|
818
|
-
};
|
|
819
|
-
readonly requireAsteriskPosition: {
|
|
820
|
-
readonly type: PropType<"left" | "right">;
|
|
821
|
-
readonly required: false;
|
|
822
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
823
|
-
__epPropKey: true;
|
|
824
|
-
} & {
|
|
825
|
-
readonly default: "left";
|
|
826
|
-
};
|
|
827
|
-
readonly labelWidth: {
|
|
828
|
-
readonly type: PropType<string | number>;
|
|
829
|
-
readonly required: false;
|
|
830
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
831
|
-
__epPropKey: true;
|
|
832
|
-
} & {
|
|
833
|
-
readonly default: "";
|
|
834
|
-
};
|
|
835
|
-
readonly labelSuffix: {
|
|
836
|
-
readonly type: PropType<string>;
|
|
837
|
-
readonly required: false;
|
|
838
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
839
|
-
__epPropKey: true;
|
|
840
|
-
} & {
|
|
841
|
-
readonly default: "";
|
|
842
|
-
};
|
|
765
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
766
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
767
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
768
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
843
769
|
readonly inline: BooleanConstructor;
|
|
844
770
|
readonly inlineMessage: BooleanConstructor;
|
|
845
771
|
readonly statusIcon: BooleanConstructor;
|
|
846
|
-
readonly showMessage:
|
|
847
|
-
|
|
848
|
-
readonly required: false;
|
|
849
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
850
|
-
__epPropKey: true;
|
|
851
|
-
} & {
|
|
852
|
-
readonly default: true;
|
|
853
|
-
};
|
|
854
|
-
readonly validateOnRuleChange: {
|
|
855
|
-
readonly type: PropType<boolean>;
|
|
856
|
-
readonly required: false;
|
|
857
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
858
|
-
__epPropKey: true;
|
|
859
|
-
} & {
|
|
860
|
-
readonly default: true;
|
|
861
|
-
};
|
|
772
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
773
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
862
774
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
863
775
|
readonly scrollToError: BooleanConstructor;
|
|
864
|
-
readonly scrollIntoViewOptions:
|
|
865
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
866
|
-
readonly required: false;
|
|
867
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
868
|
-
__epPropKey: true;
|
|
869
|
-
} & {
|
|
870
|
-
readonly default: true;
|
|
871
|
-
};
|
|
776
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
872
777
|
readonly size: {
|
|
873
|
-
readonly type: PropType<"" | "
|
|
778
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
874
779
|
readonly required: false;
|
|
875
780
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
876
781
|
__epPropKey: true;
|
|
@@ -880,9 +785,9 @@ declare function __VLS_template(): {
|
|
|
880
785
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
881
786
|
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
882
787
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
883
|
-
validateField: (props?: FormItemProp
|
|
884
|
-
resetFields: (props?: FormItemProp
|
|
885
|
-
clearValidate: (props?: FormItemProp
|
|
788
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
789
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
790
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
886
791
|
scrollToField: (prop: FormItemProp) => void;
|
|
887
792
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
888
793
|
fields: {
|
|
@@ -901,15 +806,15 @@ declare function __VLS_template(): {
|
|
|
901
806
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
902
807
|
resetField: () => void;
|
|
903
808
|
clearValidate: () => void;
|
|
904
|
-
readonly labelWidth:
|
|
905
|
-
readonly labelPosition: "" | "
|
|
906
|
-
readonly showMessage:
|
|
809
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
810
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
811
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
907
812
|
readonly label?: string | undefined;
|
|
908
|
-
readonly prop?: FormItemProp | undefined;
|
|
909
|
-
readonly required?:
|
|
813
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
814
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
910
815
|
readonly error?: string | undefined;
|
|
911
816
|
readonly rules?: {
|
|
912
|
-
trigger?:
|
|
817
|
+
trigger?: Arrayable<string> | undefined;
|
|
913
818
|
type?: RuleType | undefined;
|
|
914
819
|
required?: boolean | undefined;
|
|
915
820
|
pattern?: string | {
|
|
@@ -935,7 +840,8 @@ declare function __VLS_template(): {
|
|
|
935
840
|
} | undefined;
|
|
936
841
|
min?: number | undefined;
|
|
937
842
|
max?: number | undefined;
|
|
938
|
-
len
|
|
843
|
+
len
|
|
844
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
939
845
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
940
846
|
whitespace?: boolean | undefined;
|
|
941
847
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -1180,7 +1086,7 @@ declare function __VLS_template(): {
|
|
|
1180
1086
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
1181
1087
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
1182
1088
|
} | {
|
|
1183
|
-
trigger?:
|
|
1089
|
+
trigger?: Arrayable<string> | undefined;
|
|
1184
1090
|
type?: RuleType | undefined;
|
|
1185
1091
|
required?: boolean | undefined;
|
|
1186
1092
|
pattern?: string | {
|
|
@@ -1451,8 +1357,8 @@ declare function __VLS_template(): {
|
|
|
1451
1357
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
1452
1358
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
1453
1359
|
}[] | undefined;
|
|
1454
|
-
readonly validateStatus?:
|
|
1455
|
-
readonly inlineMessage?:
|
|
1360
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
1361
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
1456
1362
|
readonly for?: string | undefined;
|
|
1457
1363
|
}[];
|
|
1458
1364
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -1691,33 +1597,33 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1691
1597
|
$props: Partial<{
|
|
1692
1598
|
readonly disabled: boolean;
|
|
1693
1599
|
readonly inline: boolean;
|
|
1694
|
-
readonly labelWidth:
|
|
1695
|
-
readonly labelPosition: "
|
|
1600
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1601
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
1696
1602
|
readonly inlineMessage: boolean;
|
|
1697
|
-
readonly showMessage:
|
|
1698
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
1603
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1604
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
1699
1605
|
readonly labelSuffix: string;
|
|
1700
|
-
readonly validateOnRuleChange:
|
|
1701
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
1606
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1607
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
1702
1608
|
readonly statusIcon: boolean;
|
|
1703
1609
|
readonly hideRequiredAsterisk: boolean;
|
|
1704
1610
|
readonly scrollToError: boolean;
|
|
1705
1611
|
}> & Omit<{
|
|
1706
1612
|
readonly disabled: boolean;
|
|
1707
1613
|
readonly inline: boolean;
|
|
1708
|
-
readonly labelWidth:
|
|
1709
|
-
readonly labelPosition: "top" | "left" | "right"
|
|
1614
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1615
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
1710
1616
|
readonly inlineMessage: boolean;
|
|
1711
|
-
readonly showMessage:
|
|
1712
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
1617
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1618
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
1713
1619
|
readonly labelSuffix: string;
|
|
1714
1620
|
readonly statusIcon: boolean;
|
|
1715
|
-
readonly validateOnRuleChange:
|
|
1621
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1716
1622
|
readonly hideRequiredAsterisk: boolean;
|
|
1717
1623
|
readonly scrollToError: boolean;
|
|
1718
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
1719
|
-
readonly size?:
|
|
1720
|
-
readonly rules?: Partial<Record<string, FormItemRule |
|
|
1624
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
1625
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
1626
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
1721
1627
|
readonly model?: Record<string, any> | undefined;
|
|
1722
1628
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
1723
1629
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
@@ -1738,74 +1644,25 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1738
1644
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
1739
1645
|
readonly model: ObjectConstructor;
|
|
1740
1646
|
readonly rules: {
|
|
1741
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
1647
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
1742
1648
|
readonly required: false;
|
|
1743
1649
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1744
1650
|
__epPropKey: true;
|
|
1745
1651
|
};
|
|
1746
|
-
readonly labelPosition:
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
__epPropKey: true;
|
|
1751
|
-
} & {
|
|
1752
|
-
readonly default: "right";
|
|
1753
|
-
};
|
|
1754
|
-
readonly requireAsteriskPosition: {
|
|
1755
|
-
readonly type: PropType<"left" | "right">;
|
|
1756
|
-
readonly required: false;
|
|
1757
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1758
|
-
__epPropKey: true;
|
|
1759
|
-
} & {
|
|
1760
|
-
readonly default: "left";
|
|
1761
|
-
};
|
|
1762
|
-
readonly labelWidth: {
|
|
1763
|
-
readonly type: PropType<string | number>;
|
|
1764
|
-
readonly required: false;
|
|
1765
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1766
|
-
__epPropKey: true;
|
|
1767
|
-
} & {
|
|
1768
|
-
readonly default: "";
|
|
1769
|
-
};
|
|
1770
|
-
readonly labelSuffix: {
|
|
1771
|
-
readonly type: PropType<string>;
|
|
1772
|
-
readonly required: false;
|
|
1773
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1774
|
-
__epPropKey: true;
|
|
1775
|
-
} & {
|
|
1776
|
-
readonly default: "";
|
|
1777
|
-
};
|
|
1652
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
1653
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
1654
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
1655
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1778
1656
|
readonly inline: BooleanConstructor;
|
|
1779
1657
|
readonly inlineMessage: BooleanConstructor;
|
|
1780
1658
|
readonly statusIcon: BooleanConstructor;
|
|
1781
|
-
readonly showMessage:
|
|
1782
|
-
|
|
1783
|
-
readonly required: false;
|
|
1784
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1785
|
-
__epPropKey: true;
|
|
1786
|
-
} & {
|
|
1787
|
-
readonly default: true;
|
|
1788
|
-
};
|
|
1789
|
-
readonly validateOnRuleChange: {
|
|
1790
|
-
readonly type: PropType<boolean>;
|
|
1791
|
-
readonly required: false;
|
|
1792
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1793
|
-
__epPropKey: true;
|
|
1794
|
-
} & {
|
|
1795
|
-
readonly default: true;
|
|
1796
|
-
};
|
|
1659
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1660
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1797
1661
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
1798
1662
|
readonly scrollToError: BooleanConstructor;
|
|
1799
|
-
readonly scrollIntoViewOptions:
|
|
1800
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
1801
|
-
readonly required: false;
|
|
1802
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1803
|
-
__epPropKey: true;
|
|
1804
|
-
} & {
|
|
1805
|
-
readonly default: true;
|
|
1806
|
-
};
|
|
1663
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
1807
1664
|
readonly size: {
|
|
1808
|
-
readonly type: PropType<"" | "
|
|
1665
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
1809
1666
|
readonly required: false;
|
|
1810
1667
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1811
1668
|
__epPropKey: true;
|
|
@@ -1815,9 +1672,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1815
1672
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1816
1673
|
}, {
|
|
1817
1674
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
1818
|
-
validateField: (props?: FormItemProp
|
|
1819
|
-
resetFields: (props?: FormItemProp
|
|
1820
|
-
clearValidate: (props?: FormItemProp
|
|
1675
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
1676
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
1677
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
1821
1678
|
scrollToField: (prop: FormItemProp) => void;
|
|
1822
1679
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
1823
1680
|
fields: {
|
|
@@ -1836,15 +1693,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1836
1693
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
1837
1694
|
resetField: () => void;
|
|
1838
1695
|
clearValidate: () => void;
|
|
1839
|
-
readonly labelWidth:
|
|
1840
|
-
readonly labelPosition: "" | "
|
|
1841
|
-
readonly showMessage:
|
|
1696
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
1697
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
1698
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1842
1699
|
readonly label?: string | undefined;
|
|
1843
|
-
readonly prop?: FormItemProp | undefined;
|
|
1844
|
-
readonly required?:
|
|
1700
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
1701
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
1845
1702
|
readonly error?: string | undefined;
|
|
1846
1703
|
readonly rules?: {
|
|
1847
|
-
trigger?:
|
|
1704
|
+
trigger?: Arrayable<string> | undefined;
|
|
1848
1705
|
type?: RuleType | undefined;
|
|
1849
1706
|
required?: boolean | undefined;
|
|
1850
1707
|
pattern?: string | {
|
|
@@ -1870,7 +1727,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1870
1727
|
} | undefined;
|
|
1871
1728
|
min?: number | undefined;
|
|
1872
1729
|
max?: number | undefined;
|
|
1873
|
-
len
|
|
1730
|
+
len
|
|
1731
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
1874
1732
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
1875
1733
|
whitespace?: boolean | undefined;
|
|
1876
1734
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -2115,7 +1973,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2115
1973
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
2116
1974
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
2117
1975
|
} | {
|
|
2118
|
-
trigger?:
|
|
1976
|
+
trigger?: Arrayable<string> | undefined;
|
|
2119
1977
|
type?: RuleType | undefined;
|
|
2120
1978
|
required?: boolean | undefined;
|
|
2121
1979
|
pattern?: string | {
|
|
@@ -2386,8 +2244,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2386
2244
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
2387
2245
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
2388
2246
|
}[] | undefined;
|
|
2389
|
-
readonly validateStatus?:
|
|
2390
|
-
readonly inlineMessage?:
|
|
2247
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
2248
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
2391
2249
|
readonly for?: string | undefined;
|
|
2392
2250
|
}[];
|
|
2393
2251
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -2395,14 +2253,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2395
2253
|
}, string, {
|
|
2396
2254
|
readonly disabled: boolean;
|
|
2397
2255
|
readonly inline: boolean;
|
|
2398
|
-
readonly labelWidth:
|
|
2399
|
-
readonly labelPosition: "
|
|
2256
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
2257
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
2400
2258
|
readonly inlineMessage: boolean;
|
|
2401
|
-
readonly showMessage:
|
|
2402
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
2259
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2260
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
2403
2261
|
readonly labelSuffix: string;
|
|
2404
|
-
readonly validateOnRuleChange:
|
|
2405
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
2262
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2263
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
2406
2264
|
readonly statusIcon: boolean;
|
|
2407
2265
|
readonly hideRequiredAsterisk: boolean;
|
|
2408
2266
|
readonly scrollToError: boolean;
|
|
@@ -2429,88 +2287,39 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2429
2287
|
} & Readonly<{
|
|
2430
2288
|
readonly disabled: boolean;
|
|
2431
2289
|
readonly inline: boolean;
|
|
2432
|
-
readonly labelWidth:
|
|
2433
|
-
readonly labelPosition: "
|
|
2290
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
2291
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
2434
2292
|
readonly inlineMessage: boolean;
|
|
2435
|
-
readonly showMessage:
|
|
2436
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
2293
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2294
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
2437
2295
|
readonly labelSuffix: string;
|
|
2438
|
-
readonly validateOnRuleChange:
|
|
2439
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
2296
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2297
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
2440
2298
|
readonly statusIcon: boolean;
|
|
2441
2299
|
readonly hideRequiredAsterisk: boolean;
|
|
2442
2300
|
readonly scrollToError: boolean;
|
|
2443
2301
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
2444
2302
|
readonly model: ObjectConstructor;
|
|
2445
2303
|
readonly rules: {
|
|
2446
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
2304
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
2447
2305
|
readonly required: false;
|
|
2448
2306
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2449
2307
|
__epPropKey: true;
|
|
2450
2308
|
};
|
|
2451
|
-
readonly labelPosition:
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
__epPropKey: true;
|
|
2456
|
-
} & {
|
|
2457
|
-
readonly default: "right";
|
|
2458
|
-
};
|
|
2459
|
-
readonly requireAsteriskPosition: {
|
|
2460
|
-
readonly type: PropType<"left" | "right">;
|
|
2461
|
-
readonly required: false;
|
|
2462
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2463
|
-
__epPropKey: true;
|
|
2464
|
-
} & {
|
|
2465
|
-
readonly default: "left";
|
|
2466
|
-
};
|
|
2467
|
-
readonly labelWidth: {
|
|
2468
|
-
readonly type: PropType<string | number>;
|
|
2469
|
-
readonly required: false;
|
|
2470
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2471
|
-
__epPropKey: true;
|
|
2472
|
-
} & {
|
|
2473
|
-
readonly default: "";
|
|
2474
|
-
};
|
|
2475
|
-
readonly labelSuffix: {
|
|
2476
|
-
readonly type: PropType<string>;
|
|
2477
|
-
readonly required: false;
|
|
2478
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2479
|
-
__epPropKey: true;
|
|
2480
|
-
} & {
|
|
2481
|
-
readonly default: "";
|
|
2482
|
-
};
|
|
2309
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
2310
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
2311
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
2312
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
2483
2313
|
readonly inline: BooleanConstructor;
|
|
2484
2314
|
readonly inlineMessage: BooleanConstructor;
|
|
2485
2315
|
readonly statusIcon: BooleanConstructor;
|
|
2486
|
-
readonly showMessage:
|
|
2487
|
-
|
|
2488
|
-
readonly required: false;
|
|
2489
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2490
|
-
__epPropKey: true;
|
|
2491
|
-
} & {
|
|
2492
|
-
readonly default: true;
|
|
2493
|
-
};
|
|
2494
|
-
readonly validateOnRuleChange: {
|
|
2495
|
-
readonly type: PropType<boolean>;
|
|
2496
|
-
readonly required: false;
|
|
2497
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2498
|
-
__epPropKey: true;
|
|
2499
|
-
} & {
|
|
2500
|
-
readonly default: true;
|
|
2501
|
-
};
|
|
2316
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
2317
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
2502
2318
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
2503
2319
|
readonly scrollToError: BooleanConstructor;
|
|
2504
|
-
readonly scrollIntoViewOptions:
|
|
2505
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
2506
|
-
readonly required: false;
|
|
2507
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2508
|
-
__epPropKey: true;
|
|
2509
|
-
} & {
|
|
2510
|
-
readonly default: true;
|
|
2511
|
-
};
|
|
2320
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
2512
2321
|
readonly size: {
|
|
2513
|
-
readonly type: PropType<"" | "
|
|
2322
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
2514
2323
|
readonly required: false;
|
|
2515
2324
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
2516
2325
|
__epPropKey: true;
|
|
@@ -2520,9 +2329,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2520
2329
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
2521
2330
|
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
2522
2331
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
2523
|
-
validateField: (props?: FormItemProp
|
|
2524
|
-
resetFields: (props?: FormItemProp
|
|
2525
|
-
clearValidate: (props?: FormItemProp
|
|
2332
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
2333
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
2334
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
2526
2335
|
scrollToField: (prop: FormItemProp) => void;
|
|
2527
2336
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
2528
2337
|
fields: {
|
|
@@ -2541,15 +2350,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2541
2350
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
2542
2351
|
resetField: () => void;
|
|
2543
2352
|
clearValidate: () => void;
|
|
2544
|
-
readonly labelWidth:
|
|
2545
|
-
readonly labelPosition: "" | "
|
|
2546
|
-
readonly showMessage:
|
|
2353
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
2354
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
2355
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2547
2356
|
readonly label?: string | undefined;
|
|
2548
|
-
readonly prop?: FormItemProp | undefined;
|
|
2549
|
-
readonly required?:
|
|
2357
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
2358
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
2550
2359
|
readonly error?: string | undefined;
|
|
2551
2360
|
readonly rules?: {
|
|
2552
|
-
trigger?:
|
|
2361
|
+
trigger?: Arrayable<string> | undefined;
|
|
2553
2362
|
type?: RuleType | undefined;
|
|
2554
2363
|
required?: boolean | undefined;
|
|
2555
2364
|
pattern?: string | {
|
|
@@ -2575,7 +2384,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2575
2384
|
} | undefined;
|
|
2576
2385
|
min?: number | undefined;
|
|
2577
2386
|
max?: number | undefined;
|
|
2578
|
-
len
|
|
2387
|
+
len
|
|
2388
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
2579
2389
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
2580
2390
|
whitespace?: boolean | undefined;
|
|
2581
2391
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -2820,7 +2630,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
2820
2630
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
2821
2631
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
2822
2632
|
} | {
|
|
2823
|
-
trigger?:
|
|
2633
|
+
trigger?: Arrayable<string> | undefined;
|
|
2824
2634
|
type?: RuleType | undefined;
|
|
2825
2635
|
required?: boolean | undefined;
|
|
2826
2636
|
pattern?: string | {
|
|
@@ -3091,8 +2901,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3091
2901
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
3092
2902
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
3093
2903
|
}[] | undefined;
|
|
3094
|
-
readonly validateStatus?:
|
|
3095
|
-
readonly inlineMessage?:
|
|
2904
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
2905
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
3096
2906
|
readonly for?: string | undefined;
|
|
3097
2907
|
}[];
|
|
3098
2908
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -3306,33 +3116,33 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3306
3116
|
$props: Partial<{
|
|
3307
3117
|
readonly disabled: boolean;
|
|
3308
3118
|
readonly inline: boolean;
|
|
3309
|
-
readonly labelWidth:
|
|
3310
|
-
readonly labelPosition: "
|
|
3119
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3120
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
3311
3121
|
readonly inlineMessage: boolean;
|
|
3312
|
-
readonly showMessage:
|
|
3313
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
3122
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3123
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
3314
3124
|
readonly labelSuffix: string;
|
|
3315
|
-
readonly validateOnRuleChange:
|
|
3316
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
3125
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3126
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
3317
3127
|
readonly statusIcon: boolean;
|
|
3318
3128
|
readonly hideRequiredAsterisk: boolean;
|
|
3319
3129
|
readonly scrollToError: boolean;
|
|
3320
3130
|
}> & Omit<{
|
|
3321
3131
|
readonly disabled: boolean;
|
|
3322
3132
|
readonly inline: boolean;
|
|
3323
|
-
readonly labelWidth:
|
|
3324
|
-
readonly labelPosition: "top" | "left" | "right"
|
|
3133
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3134
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
3325
3135
|
readonly inlineMessage: boolean;
|
|
3326
|
-
readonly showMessage:
|
|
3327
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
3136
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3137
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
3328
3138
|
readonly labelSuffix: string;
|
|
3329
3139
|
readonly statusIcon: boolean;
|
|
3330
|
-
readonly validateOnRuleChange:
|
|
3140
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3331
3141
|
readonly hideRequiredAsterisk: boolean;
|
|
3332
3142
|
readonly scrollToError: boolean;
|
|
3333
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
3334
|
-
readonly size?:
|
|
3335
|
-
readonly rules?: Partial<Record<string, FormItemRule |
|
|
3143
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
3144
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
3145
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
3336
3146
|
readonly model?: Record<string, any> | undefined;
|
|
3337
3147
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
3338
3148
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
@@ -3353,74 +3163,25 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3353
3163
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
3354
3164
|
readonly model: ObjectConstructor;
|
|
3355
3165
|
readonly rules: {
|
|
3356
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
3166
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
3357
3167
|
readonly required: false;
|
|
3358
3168
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3359
3169
|
__epPropKey: true;
|
|
3360
3170
|
};
|
|
3361
|
-
readonly labelPosition:
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
__epPropKey: true;
|
|
3366
|
-
} & {
|
|
3367
|
-
readonly default: "right";
|
|
3368
|
-
};
|
|
3369
|
-
readonly requireAsteriskPosition: {
|
|
3370
|
-
readonly type: PropType<"left" | "right">;
|
|
3371
|
-
readonly required: false;
|
|
3372
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3373
|
-
__epPropKey: true;
|
|
3374
|
-
} & {
|
|
3375
|
-
readonly default: "left";
|
|
3376
|
-
};
|
|
3377
|
-
readonly labelWidth: {
|
|
3378
|
-
readonly type: PropType<string | number>;
|
|
3379
|
-
readonly required: false;
|
|
3380
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3381
|
-
__epPropKey: true;
|
|
3382
|
-
} & {
|
|
3383
|
-
readonly default: "";
|
|
3384
|
-
};
|
|
3385
|
-
readonly labelSuffix: {
|
|
3386
|
-
readonly type: PropType<string>;
|
|
3387
|
-
readonly required: false;
|
|
3388
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3389
|
-
__epPropKey: true;
|
|
3390
|
-
} & {
|
|
3391
|
-
readonly default: "";
|
|
3392
|
-
};
|
|
3171
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
3172
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
3173
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
3174
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
3393
3175
|
readonly inline: BooleanConstructor;
|
|
3394
3176
|
readonly inlineMessage: BooleanConstructor;
|
|
3395
3177
|
readonly statusIcon: BooleanConstructor;
|
|
3396
|
-
readonly showMessage:
|
|
3397
|
-
|
|
3398
|
-
readonly required: false;
|
|
3399
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3400
|
-
__epPropKey: true;
|
|
3401
|
-
} & {
|
|
3402
|
-
readonly default: true;
|
|
3403
|
-
};
|
|
3404
|
-
readonly validateOnRuleChange: {
|
|
3405
|
-
readonly type: PropType<boolean>;
|
|
3406
|
-
readonly required: false;
|
|
3407
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3408
|
-
__epPropKey: true;
|
|
3409
|
-
} & {
|
|
3410
|
-
readonly default: true;
|
|
3411
|
-
};
|
|
3178
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
3179
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
3412
3180
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
3413
3181
|
readonly scrollToError: BooleanConstructor;
|
|
3414
|
-
readonly scrollIntoViewOptions:
|
|
3415
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
3416
|
-
readonly required: false;
|
|
3417
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3418
|
-
__epPropKey: true;
|
|
3419
|
-
} & {
|
|
3420
|
-
readonly default: true;
|
|
3421
|
-
};
|
|
3182
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
3422
3183
|
readonly size: {
|
|
3423
|
-
readonly type: PropType<"" | "
|
|
3184
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
3424
3185
|
readonly required: false;
|
|
3425
3186
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
3426
3187
|
__epPropKey: true;
|
|
@@ -3430,9 +3191,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3430
3191
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
3431
3192
|
}, {
|
|
3432
3193
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
3433
|
-
validateField: (props?: FormItemProp
|
|
3434
|
-
resetFields: (props?: FormItemProp
|
|
3435
|
-
clearValidate: (props?: FormItemProp
|
|
3194
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
3195
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
3196
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
3436
3197
|
scrollToField: (prop: FormItemProp) => void;
|
|
3437
3198
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
3438
3199
|
fields: {
|
|
@@ -3451,15 +3212,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3451
3212
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
3452
3213
|
resetField: () => void;
|
|
3453
3214
|
clearValidate: () => void;
|
|
3454
|
-
readonly labelWidth:
|
|
3455
|
-
readonly labelPosition: "" | "
|
|
3456
|
-
readonly showMessage:
|
|
3215
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3216
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
3217
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3457
3218
|
readonly label?: string | undefined;
|
|
3458
|
-
readonly prop?: FormItemProp | undefined;
|
|
3459
|
-
readonly required?:
|
|
3219
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
3220
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
3460
3221
|
readonly error?: string | undefined;
|
|
3461
3222
|
readonly rules?: {
|
|
3462
|
-
trigger?:
|
|
3223
|
+
trigger?: Arrayable<string> | undefined;
|
|
3463
3224
|
type?: RuleType | undefined;
|
|
3464
3225
|
required?: boolean | undefined;
|
|
3465
3226
|
pattern?: string | {
|
|
@@ -3485,7 +3246,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3485
3246
|
} | undefined;
|
|
3486
3247
|
min?: number | undefined;
|
|
3487
3248
|
max?: number | undefined;
|
|
3488
|
-
len
|
|
3249
|
+
len
|
|
3250
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
3489
3251
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
3490
3252
|
whitespace?: boolean | undefined;
|
|
3491
3253
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -3730,7 +3492,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
3730
3492
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
3731
3493
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
3732
3494
|
} | {
|
|
3733
|
-
trigger?:
|
|
3495
|
+
trigger?: Arrayable<string> | undefined;
|
|
3734
3496
|
type?: RuleType | undefined;
|
|
3735
3497
|
required?: boolean | undefined;
|
|
3736
3498
|
pattern?: string | {
|
|
@@ -4001,8 +3763,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4001
3763
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
4002
3764
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
4003
3765
|
}[] | undefined;
|
|
4004
|
-
readonly validateStatus?:
|
|
4005
|
-
readonly inlineMessage?:
|
|
3766
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
3767
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
4006
3768
|
readonly for?: string | undefined;
|
|
4007
3769
|
}[];
|
|
4008
3770
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -4010,14 +3772,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4010
3772
|
}, string, {
|
|
4011
3773
|
readonly disabled: boolean;
|
|
4012
3774
|
readonly inline: boolean;
|
|
4013
|
-
readonly labelWidth:
|
|
4014
|
-
readonly labelPosition: "
|
|
3775
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3776
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
4015
3777
|
readonly inlineMessage: boolean;
|
|
4016
|
-
readonly showMessage:
|
|
4017
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
3778
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3779
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
4018
3780
|
readonly labelSuffix: string;
|
|
4019
|
-
readonly validateOnRuleChange:
|
|
4020
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
3781
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3782
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
4021
3783
|
readonly statusIcon: boolean;
|
|
4022
3784
|
readonly hideRequiredAsterisk: boolean;
|
|
4023
3785
|
readonly scrollToError: boolean;
|
|
@@ -4044,88 +3806,39 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4044
3806
|
} & Readonly<{
|
|
4045
3807
|
readonly disabled: boolean;
|
|
4046
3808
|
readonly inline: boolean;
|
|
4047
|
-
readonly labelWidth:
|
|
4048
|
-
readonly labelPosition: "
|
|
3809
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3810
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
4049
3811
|
readonly inlineMessage: boolean;
|
|
4050
|
-
readonly showMessage:
|
|
4051
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
3812
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3813
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
4052
3814
|
readonly labelSuffix: string;
|
|
4053
|
-
readonly validateOnRuleChange:
|
|
4054
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
3815
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
3816
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
4055
3817
|
readonly statusIcon: boolean;
|
|
4056
3818
|
readonly hideRequiredAsterisk: boolean;
|
|
4057
3819
|
readonly scrollToError: boolean;
|
|
4058
3820
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
4059
3821
|
readonly model: ObjectConstructor;
|
|
4060
3822
|
readonly rules: {
|
|
4061
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
3823
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
4062
3824
|
readonly required: false;
|
|
4063
3825
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4064
3826
|
__epPropKey: true;
|
|
4065
3827
|
};
|
|
4066
|
-
readonly labelPosition:
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
__epPropKey: true;
|
|
4071
|
-
} & {
|
|
4072
|
-
readonly default: "right";
|
|
4073
|
-
};
|
|
4074
|
-
readonly requireAsteriskPosition: {
|
|
4075
|
-
readonly type: PropType<"left" | "right">;
|
|
4076
|
-
readonly required: false;
|
|
4077
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4078
|
-
__epPropKey: true;
|
|
4079
|
-
} & {
|
|
4080
|
-
readonly default: "left";
|
|
4081
|
-
};
|
|
4082
|
-
readonly labelWidth: {
|
|
4083
|
-
readonly type: PropType<string | number>;
|
|
4084
|
-
readonly required: false;
|
|
4085
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4086
|
-
__epPropKey: true;
|
|
4087
|
-
} & {
|
|
4088
|
-
readonly default: "";
|
|
4089
|
-
};
|
|
4090
|
-
readonly labelSuffix: {
|
|
4091
|
-
readonly type: PropType<string>;
|
|
4092
|
-
readonly required: false;
|
|
4093
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4094
|
-
__epPropKey: true;
|
|
4095
|
-
} & {
|
|
4096
|
-
readonly default: "";
|
|
4097
|
-
};
|
|
3828
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
3829
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
3830
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
3831
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4098
3832
|
readonly inline: BooleanConstructor;
|
|
4099
3833
|
readonly inlineMessage: BooleanConstructor;
|
|
4100
3834
|
readonly statusIcon: BooleanConstructor;
|
|
4101
|
-
readonly showMessage:
|
|
4102
|
-
|
|
4103
|
-
readonly required: false;
|
|
4104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4105
|
-
__epPropKey: true;
|
|
4106
|
-
} & {
|
|
4107
|
-
readonly default: true;
|
|
4108
|
-
};
|
|
4109
|
-
readonly validateOnRuleChange: {
|
|
4110
|
-
readonly type: PropType<boolean>;
|
|
4111
|
-
readonly required: false;
|
|
4112
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4113
|
-
__epPropKey: true;
|
|
4114
|
-
} & {
|
|
4115
|
-
readonly default: true;
|
|
4116
|
-
};
|
|
3835
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
3836
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
4117
3837
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
4118
3838
|
readonly scrollToError: BooleanConstructor;
|
|
4119
|
-
readonly scrollIntoViewOptions:
|
|
4120
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
4121
|
-
readonly required: false;
|
|
4122
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4123
|
-
__epPropKey: true;
|
|
4124
|
-
} & {
|
|
4125
|
-
readonly default: true;
|
|
4126
|
-
};
|
|
3839
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
4127
3840
|
readonly size: {
|
|
4128
|
-
readonly type: PropType<"" | "
|
|
3841
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
4129
3842
|
readonly required: false;
|
|
4130
3843
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
4131
3844
|
__epPropKey: true;
|
|
@@ -4135,9 +3848,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4135
3848
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
4136
3849
|
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
4137
3850
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
4138
|
-
validateField: (props?: FormItemProp
|
|
4139
|
-
resetFields: (props?: FormItemProp
|
|
4140
|
-
clearValidate: (props?: FormItemProp
|
|
3851
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
3852
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
3853
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
4141
3854
|
scrollToField: (prop: FormItemProp) => void;
|
|
4142
3855
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
4143
3856
|
fields: {
|
|
@@ -4156,15 +3869,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4156
3869
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
4157
3870
|
resetField: () => void;
|
|
4158
3871
|
clearValidate: () => void;
|
|
4159
|
-
readonly labelWidth:
|
|
4160
|
-
readonly labelPosition: "" | "
|
|
4161
|
-
readonly showMessage:
|
|
3872
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
3873
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
3874
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4162
3875
|
readonly label?: string | undefined;
|
|
4163
|
-
readonly prop?: FormItemProp | undefined;
|
|
4164
|
-
readonly required?:
|
|
3876
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
3877
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
4165
3878
|
readonly error?: string | undefined;
|
|
4166
3879
|
readonly rules?: {
|
|
4167
|
-
trigger?:
|
|
3880
|
+
trigger?: Arrayable<string> | undefined;
|
|
4168
3881
|
type?: RuleType | undefined;
|
|
4169
3882
|
required?: boolean | undefined;
|
|
4170
3883
|
pattern?: string | {
|
|
@@ -4190,7 +3903,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4190
3903
|
} | undefined;
|
|
4191
3904
|
min?: number | undefined;
|
|
4192
3905
|
max?: number | undefined;
|
|
4193
|
-
len
|
|
3906
|
+
len
|
|
3907
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
4194
3908
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
4195
3909
|
whitespace?: boolean | undefined;
|
|
4196
3910
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -4435,7 +4149,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4435
4149
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
4436
4150
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
4437
4151
|
} | {
|
|
4438
|
-
trigger?:
|
|
4152
|
+
trigger?: Arrayable<string> | undefined;
|
|
4439
4153
|
type?: RuleType | undefined;
|
|
4440
4154
|
required?: boolean | undefined;
|
|
4441
4155
|
pattern?: string | {
|
|
@@ -4706,8 +4420,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4706
4420
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
4707
4421
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
4708
4422
|
}[] | undefined;
|
|
4709
|
-
readonly validateStatus?:
|
|
4710
|
-
readonly inlineMessage?:
|
|
4423
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
4424
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
4711
4425
|
readonly for?: string | undefined;
|
|
4712
4426
|
}[];
|
|
4713
4427
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -4947,33 +4661,33 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4947
4661
|
$props: Partial<{
|
|
4948
4662
|
readonly disabled: boolean;
|
|
4949
4663
|
readonly inline: boolean;
|
|
4950
|
-
readonly labelWidth:
|
|
4951
|
-
readonly labelPosition: "
|
|
4664
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
4665
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
4952
4666
|
readonly inlineMessage: boolean;
|
|
4953
|
-
readonly showMessage:
|
|
4954
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
4667
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4668
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
4955
4669
|
readonly labelSuffix: string;
|
|
4956
|
-
readonly validateOnRuleChange:
|
|
4957
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
4670
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4671
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
4958
4672
|
readonly statusIcon: boolean;
|
|
4959
4673
|
readonly hideRequiredAsterisk: boolean;
|
|
4960
4674
|
readonly scrollToError: boolean;
|
|
4961
4675
|
}> & Omit<{
|
|
4962
4676
|
readonly disabled: boolean;
|
|
4963
4677
|
readonly inline: boolean;
|
|
4964
|
-
readonly labelWidth:
|
|
4965
|
-
readonly labelPosition: "top" | "left" | "right"
|
|
4678
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
4679
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
4966
4680
|
readonly inlineMessage: boolean;
|
|
4967
|
-
readonly showMessage:
|
|
4968
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
4681
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4682
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
4969
4683
|
readonly labelSuffix: string;
|
|
4970
4684
|
readonly statusIcon: boolean;
|
|
4971
|
-
readonly validateOnRuleChange:
|
|
4685
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
4972
4686
|
readonly hideRequiredAsterisk: boolean;
|
|
4973
4687
|
readonly scrollToError: boolean;
|
|
4974
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
4975
|
-
readonly size?:
|
|
4976
|
-
readonly rules?: Partial<Record<string, FormItemRule |
|
|
4688
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
4689
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
|
4690
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>> | undefined;
|
|
4977
4691
|
readonly model?: Record<string, any> | undefined;
|
|
4978
4692
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
4979
4693
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "inline" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
@@ -4994,74 +4708,25 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
4994
4708
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
4995
4709
|
readonly model: ObjectConstructor;
|
|
4996
4710
|
readonly rules: {
|
|
4997
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
4711
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
4998
4712
|
readonly required: false;
|
|
4999
4713
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5000
4714
|
__epPropKey: true;
|
|
5001
4715
|
};
|
|
5002
|
-
readonly labelPosition:
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
__epPropKey: true;
|
|
5007
|
-
} & {
|
|
5008
|
-
readonly default: "right";
|
|
5009
|
-
};
|
|
5010
|
-
readonly requireAsteriskPosition: {
|
|
5011
|
-
readonly type: PropType<"left" | "right">;
|
|
5012
|
-
readonly required: false;
|
|
5013
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5014
|
-
__epPropKey: true;
|
|
5015
|
-
} & {
|
|
5016
|
-
readonly default: "left";
|
|
5017
|
-
};
|
|
5018
|
-
readonly labelWidth: {
|
|
5019
|
-
readonly type: PropType<string | number>;
|
|
5020
|
-
readonly required: false;
|
|
5021
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5022
|
-
__epPropKey: true;
|
|
5023
|
-
} & {
|
|
5024
|
-
readonly default: "";
|
|
5025
|
-
};
|
|
5026
|
-
readonly labelSuffix: {
|
|
5027
|
-
readonly type: PropType<string>;
|
|
5028
|
-
readonly required: false;
|
|
5029
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5030
|
-
__epPropKey: true;
|
|
5031
|
-
} & {
|
|
5032
|
-
readonly default: "";
|
|
5033
|
-
};
|
|
4716
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
4717
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
4718
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
4719
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5034
4720
|
readonly inline: BooleanConstructor;
|
|
5035
4721
|
readonly inlineMessage: BooleanConstructor;
|
|
5036
4722
|
readonly statusIcon: BooleanConstructor;
|
|
5037
|
-
readonly showMessage:
|
|
5038
|
-
|
|
5039
|
-
readonly required: false;
|
|
5040
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5041
|
-
__epPropKey: true;
|
|
5042
|
-
} & {
|
|
5043
|
-
readonly default: true;
|
|
5044
|
-
};
|
|
5045
|
-
readonly validateOnRuleChange: {
|
|
5046
|
-
readonly type: PropType<boolean>;
|
|
5047
|
-
readonly required: false;
|
|
5048
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5049
|
-
__epPropKey: true;
|
|
5050
|
-
} & {
|
|
5051
|
-
readonly default: true;
|
|
5052
|
-
};
|
|
4723
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
4724
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
5053
4725
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
5054
4726
|
readonly scrollToError: BooleanConstructor;
|
|
5055
|
-
readonly scrollIntoViewOptions:
|
|
5056
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
5057
|
-
readonly required: false;
|
|
5058
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5059
|
-
__epPropKey: true;
|
|
5060
|
-
} & {
|
|
5061
|
-
readonly default: true;
|
|
5062
|
-
};
|
|
4727
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
5063
4728
|
readonly size: {
|
|
5064
|
-
readonly type: PropType<"" | "
|
|
4729
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
5065
4730
|
readonly required: false;
|
|
5066
4731
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5067
4732
|
__epPropKey: true;
|
|
@@ -5071,9 +4736,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5071
4736
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
5072
4737
|
}, {
|
|
5073
4738
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
5074
|
-
validateField: (props?: FormItemProp
|
|
5075
|
-
resetFields: (props?: FormItemProp
|
|
5076
|
-
clearValidate: (props?: FormItemProp
|
|
4739
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
4740
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
4741
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
5077
4742
|
scrollToField: (prop: FormItemProp) => void;
|
|
5078
4743
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
5079
4744
|
fields: {
|
|
@@ -5092,15 +4757,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5092
4757
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
5093
4758
|
resetField: () => void;
|
|
5094
4759
|
clearValidate: () => void;
|
|
5095
|
-
readonly labelWidth:
|
|
5096
|
-
readonly labelPosition: "" | "
|
|
5097
|
-
readonly showMessage:
|
|
4760
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
4761
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
4762
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5098
4763
|
readonly label?: string | undefined;
|
|
5099
|
-
readonly prop?: FormItemProp | undefined;
|
|
5100
|
-
readonly required?:
|
|
4764
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
4765
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
5101
4766
|
readonly error?: string | undefined;
|
|
5102
4767
|
readonly rules?: {
|
|
5103
|
-
trigger?:
|
|
4768
|
+
trigger?: Arrayable<string> | undefined;
|
|
5104
4769
|
type?: RuleType | undefined;
|
|
5105
4770
|
required?: boolean | undefined;
|
|
5106
4771
|
pattern?: string | {
|
|
@@ -5126,7 +4791,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5126
4791
|
} | undefined;
|
|
5127
4792
|
min?: number | undefined;
|
|
5128
4793
|
max?: number | undefined;
|
|
5129
|
-
len
|
|
4794
|
+
len
|
|
4795
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
5130
4796
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
5131
4797
|
whitespace?: boolean | undefined;
|
|
5132
4798
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -5371,7 +5037,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5371
5037
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
5372
5038
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
5373
5039
|
} | {
|
|
5374
|
-
trigger?:
|
|
5040
|
+
trigger?: Arrayable<string> | undefined;
|
|
5375
5041
|
type?: RuleType | undefined;
|
|
5376
5042
|
required?: boolean | undefined;
|
|
5377
5043
|
pattern?: string | {
|
|
@@ -5642,8 +5308,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5642
5308
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
5643
5309
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
5644
5310
|
}[] | undefined;
|
|
5645
|
-
readonly validateStatus?:
|
|
5646
|
-
readonly inlineMessage?:
|
|
5311
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
5312
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
5647
5313
|
readonly for?: string | undefined;
|
|
5648
5314
|
}[];
|
|
5649
5315
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -5651,14 +5317,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5651
5317
|
}, string, {
|
|
5652
5318
|
readonly disabled: boolean;
|
|
5653
5319
|
readonly inline: boolean;
|
|
5654
|
-
readonly labelWidth:
|
|
5655
|
-
readonly labelPosition: "
|
|
5320
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
5321
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
5656
5322
|
readonly inlineMessage: boolean;
|
|
5657
|
-
readonly showMessage:
|
|
5658
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
5323
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5324
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
5659
5325
|
readonly labelSuffix: string;
|
|
5660
|
-
readonly validateOnRuleChange:
|
|
5661
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
5326
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5327
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
5662
5328
|
readonly statusIcon: boolean;
|
|
5663
5329
|
readonly hideRequiredAsterisk: boolean;
|
|
5664
5330
|
readonly scrollToError: boolean;
|
|
@@ -5685,88 +5351,39 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5685
5351
|
} & Readonly<{
|
|
5686
5352
|
readonly disabled: boolean;
|
|
5687
5353
|
readonly inline: boolean;
|
|
5688
|
-
readonly labelWidth:
|
|
5689
|
-
readonly labelPosition: "
|
|
5354
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
5355
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
5690
5356
|
readonly inlineMessage: boolean;
|
|
5691
|
-
readonly showMessage:
|
|
5692
|
-
readonly requireAsteriskPosition: "left" | "right"
|
|
5357
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5358
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
5693
5359
|
readonly labelSuffix: string;
|
|
5694
|
-
readonly validateOnRuleChange:
|
|
5695
|
-
readonly scrollIntoViewOptions: boolean | ScrollIntoViewOptions
|
|
5360
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5361
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
5696
5362
|
readonly statusIcon: boolean;
|
|
5697
5363
|
readonly hideRequiredAsterisk: boolean;
|
|
5698
5364
|
readonly scrollToError: boolean;
|
|
5699
5365
|
}> & Omit<Readonly< ExtractPropTypes<{
|
|
5700
5366
|
readonly model: ObjectConstructor;
|
|
5701
5367
|
readonly rules: {
|
|
5702
|
-
readonly type: PropType<Partial<Record<string, FormItemRule
|
|
5368
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
5703
5369
|
readonly required: false;
|
|
5704
5370
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5705
5371
|
__epPropKey: true;
|
|
5706
5372
|
};
|
|
5707
|
-
readonly labelPosition:
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
__epPropKey: true;
|
|
5712
|
-
} & {
|
|
5713
|
-
readonly default: "right";
|
|
5714
|
-
};
|
|
5715
|
-
readonly requireAsteriskPosition: {
|
|
5716
|
-
readonly type: PropType<"left" | "right">;
|
|
5717
|
-
readonly required: false;
|
|
5718
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5719
|
-
__epPropKey: true;
|
|
5720
|
-
} & {
|
|
5721
|
-
readonly default: "left";
|
|
5722
|
-
};
|
|
5723
|
-
readonly labelWidth: {
|
|
5724
|
-
readonly type: PropType<string | number>;
|
|
5725
|
-
readonly required: false;
|
|
5726
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5727
|
-
__epPropKey: true;
|
|
5728
|
-
} & {
|
|
5729
|
-
readonly default: "";
|
|
5730
|
-
};
|
|
5731
|
-
readonly labelSuffix: {
|
|
5732
|
-
readonly type: PropType<string>;
|
|
5733
|
-
readonly required: false;
|
|
5734
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5735
|
-
__epPropKey: true;
|
|
5736
|
-
} & {
|
|
5737
|
-
readonly default: "";
|
|
5738
|
-
};
|
|
5373
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
5374
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
5375
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
5376
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5739
5377
|
readonly inline: BooleanConstructor;
|
|
5740
5378
|
readonly inlineMessage: BooleanConstructor;
|
|
5741
5379
|
readonly statusIcon: BooleanConstructor;
|
|
5742
|
-
readonly showMessage:
|
|
5743
|
-
|
|
5744
|
-
readonly required: false;
|
|
5745
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5746
|
-
__epPropKey: true;
|
|
5747
|
-
} & {
|
|
5748
|
-
readonly default: true;
|
|
5749
|
-
};
|
|
5750
|
-
readonly validateOnRuleChange: {
|
|
5751
|
-
readonly type: PropType<boolean>;
|
|
5752
|
-
readonly required: false;
|
|
5753
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5754
|
-
__epPropKey: true;
|
|
5755
|
-
} & {
|
|
5756
|
-
readonly default: true;
|
|
5757
|
-
};
|
|
5380
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
5381
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
5758
5382
|
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
5759
5383
|
readonly scrollToError: BooleanConstructor;
|
|
5760
|
-
readonly scrollIntoViewOptions:
|
|
5761
|
-
readonly type: PropType<boolean | ScrollIntoViewOptions>;
|
|
5762
|
-
readonly required: false;
|
|
5763
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5764
|
-
__epPropKey: true;
|
|
5765
|
-
} & {
|
|
5766
|
-
readonly default: true;
|
|
5767
|
-
};
|
|
5384
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
5768
5385
|
readonly size: {
|
|
5769
|
-
readonly type: PropType<"" | "
|
|
5386
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
5770
5387
|
readonly required: false;
|
|
5771
5388
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
5772
5389
|
__epPropKey: true;
|
|
@@ -5776,9 +5393,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5776
5393
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
5777
5394
|
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
5778
5395
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
5779
|
-
validateField: (props?: FormItemProp
|
|
5780
|
-
resetFields: (props?: FormItemProp
|
|
5781
|
-
clearValidate: (props?: FormItemProp
|
|
5396
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
5397
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
5398
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
5782
5399
|
scrollToField: (prop: FormItemProp) => void;
|
|
5783
5400
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
5784
5401
|
fields: {
|
|
@@ -5797,15 +5414,15 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5797
5414
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
5798
5415
|
resetField: () => void;
|
|
5799
5416
|
clearValidate: () => void;
|
|
5800
|
-
readonly labelWidth:
|
|
5801
|
-
readonly labelPosition: "" | "
|
|
5802
|
-
readonly showMessage:
|
|
5417
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
5418
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
5419
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
5803
5420
|
readonly label?: string | undefined;
|
|
5804
|
-
readonly prop?: FormItemProp | undefined;
|
|
5805
|
-
readonly required?:
|
|
5421
|
+
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
|
5422
|
+
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
5806
5423
|
readonly error?: string | undefined;
|
|
5807
5424
|
readonly rules?: {
|
|
5808
|
-
trigger?:
|
|
5425
|
+
trigger?: Arrayable<string> | undefined;
|
|
5809
5426
|
type?: RuleType | undefined;
|
|
5810
5427
|
required?: boolean | undefined;
|
|
5811
5428
|
pattern?: string | {
|
|
@@ -5831,7 +5448,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
5831
5448
|
} | undefined;
|
|
5832
5449
|
min?: number | undefined;
|
|
5833
5450
|
max?: number | undefined;
|
|
5834
|
-
len
|
|
5451
|
+
len
|
|
5452
|
+
/** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */ ? /** @type { [typeof __VLS_components.XField, typeof __VLS_components.XField, ] } */: number | undefined;
|
|
5835
5453
|
enum?: Array<string | number | boolean | null | undefined> | undefined;
|
|
5836
5454
|
whitespace?: boolean | undefined;
|
|
5837
5455
|
fields?: Record<string, Rule> | undefined;
|
|
@@ -6076,7 +5694,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
6076
5694
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
6077
5695
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
6078
5696
|
} | {
|
|
6079
|
-
trigger?:
|
|
5697
|
+
trigger?: Arrayable<string> | undefined;
|
|
6080
5698
|
type?: RuleType | undefined;
|
|
6081
5699
|
required?: boolean | undefined;
|
|
6082
5700
|
pattern?: string | {
|
|
@@ -6347,8 +5965,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
6347
5965
|
asyncValidator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => void | Promise<void>) | undefined;
|
|
6348
5966
|
validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
|
|
6349
5967
|
}[] | undefined;
|
|
6350
|
-
readonly validateStatus?:
|
|
6351
|
-
readonly inlineMessage?:
|
|
5968
|
+
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown> | undefined;
|
|
5969
|
+
readonly inlineMessage?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
6352
5970
|
readonly for?: string | undefined;
|
|
6353
5971
|
}[];
|
|
6354
5972
|
}> & {} & ComponentCustomProperties & {} & {
|