yc-pro-components 0.0.17 → 0.0.18
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/es/components/check-card/index.d.ts +38 -38
- package/es/components/check-card/src/index.vue.d.ts +2 -2
- package/es/components/check-card-group/index.d.ts +19 -19
- package/es/components/check-card-group/src/index.vue.d.ts +1 -1
- package/es/components/dialog/src/index.vue2.mjs +6 -3
- package/es/components/dialog-form/index.d.ts +1154 -0
- package/es/components/dialog-form/src/index.vue.d.ts +493 -0
- package/es/components/dialog-form/src/index.vue2.mjs +7 -4
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/drawer-form/index.d.ts +3467 -0
- package/es/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/es/components/drawer-form/src/index.vue2.mjs +7 -4
- package/es/components/form/index.d.ts +1665 -1
- package/es/components/form/src/form-content.vue.d.ts +20 -20
- package/es/components/form/src/index.vue.d.ts +652 -0
- package/es/components/form/src/index.vue2.mjs +7 -4
- package/es/components/form-item/index.d.ts +32 -32
- package/es/components/form-item/src/index.vue.d.ts +12 -12
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/input-tag/index.d.ts +9 -9
- package/es/components/input-tag/src/index.vue.d.ts +1 -1
- package/es/components/page/index.d.ts +15386 -0
- package/es/components/page/src/index.vue.d.ts +5306 -0
- package/es/components/popover/src/index.vue2.mjs +6 -3
- package/es/components/radio/index.d.ts +25 -25
- package/es/components/radio/src/index.vue.d.ts +25 -25
- package/es/components/render/index.d.ts +6 -6
- package/es/components/render/src/index.vue.d.ts +2 -2
- package/es/components/search/index.d.ts +4514 -0
- package/es/components/search/src/index.vue.d.ts +1539 -0
- package/es/components/table/index.d.ts +54 -54
- package/es/components/table/src/index.vue.d.ts +18 -18
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/yc-count-to/index.d.ts +1 -1
- package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/src/index.vue.d.ts +12804 -0
- package/es/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-status-dialog/src/index.vue.mjs +1 -1
- package/es/components/yc-status-dialog/src/index.vue2.mjs +6 -3
- package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/usePlusFormReset.d.ts +9833 -5
- package/es/index.css +1 -1
- package/index.css +7 -7
- package/index.js +41 -23
- package/index.min.css +1 -1
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +41 -23
- package/lib/components/check-card/index.d.ts +38 -38
- package/lib/components/check-card/src/index.vue.d.ts +2 -2
- package/lib/components/check-card-group/index.d.ts +19 -19
- package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
- package/lib/components/dialog/src/index.vue2.js +6 -3
- package/lib/components/dialog-form/index.d.ts +1154 -0
- package/lib/components/dialog-form/src/index.vue.d.ts +493 -0
- package/lib/components/dialog-form/src/index.vue2.js +7 -4
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/drawer-form/index.d.ts +3467 -0
- package/lib/components/drawer-form/src/index.vue.d.ts +1254 -0
- package/lib/components/drawer-form/src/index.vue2.js +7 -4
- package/lib/components/form/index.d.ts +1665 -1
- package/lib/components/form/src/form-content.vue.d.ts +20 -20
- package/lib/components/form/src/index.vue.d.ts +652 -0
- package/lib/components/form/src/index.vue2.js +7 -4
- package/lib/components/form-item/index.d.ts +32 -32
- package/lib/components/form-item/src/index.vue.d.ts +12 -12
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/input-tag/index.d.ts +9 -9
- package/lib/components/input-tag/src/index.vue.d.ts +1 -1
- package/lib/components/page/index.d.ts +15386 -0
- package/lib/components/page/src/index.vue.d.ts +5306 -0
- package/lib/components/popover/src/index.vue2.js +6 -3
- package/lib/components/radio/index.d.ts +25 -25
- package/lib/components/radio/src/index.vue.d.ts +25 -25
- package/lib/components/render/index.d.ts +6 -6
- package/lib/components/render/src/index.vue.d.ts +2 -2
- package/lib/components/search/index.d.ts +4514 -0
- package/lib/components/search/src/index.vue.d.ts +1539 -0
- package/lib/components/table/index.d.ts +54 -54
- package/lib/components/table/src/index.vue.d.ts +18 -18
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
- package/lib/components/table/src/table-column.vue.d.ts +37 -37
- package/lib/components/yc-count-to/index.d.ts +1 -1
- package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/src/index.vue.d.ts +12804 -0
- package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-status-dialog/src/index.vue.js +1 -1
- package/lib/components/yc-status-dialog/src/index.vue2.js +6 -3
- package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/usePlusFormReset.d.ts +9833 -5
- package/lib/index.css +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
2
|
+
import { PlusFormItemProps, PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'packages/yc-components';
|
|
3
|
+
import { LooseRequired } from '@vue/shared';
|
|
4
|
+
import { FormItemRule, FormItemProp, FormItemContext, FormValidateCallback, FormValidationResult, RowProps, ColProps, CardProps, ElTooltipProps, FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
5
|
+
import { Arrayable, EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils';
|
|
6
|
+
import { DefineComponent, Ref, CreateComponentPublicInstance, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, CSSProperties, Component } from 'vue';
|
|
7
|
+
import { PlusFormSelfProps, PlusFormGroupRow } from './type';
|
|
8
|
+
import { PlusColumn, FieldValues, RecordType, Mutable, PropsItemType, OmitTypes, CascaderProps, OptionsType, RenderTypes, TableValueType, FormItemValueType, FieldValueType, OptionsRow } from 'yc-pro-components/es/types';
|
|
9
|
+
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormSelfProps>, {
|
|
11
|
+
modelValue: () => {};
|
|
12
|
+
defaultValues: () => {};
|
|
13
|
+
labelWidth: string;
|
|
14
|
+
labelPosition: string;
|
|
15
|
+
rowProps: () => {};
|
|
16
|
+
colProps: () => {};
|
|
17
|
+
labelSuffix: string;
|
|
18
|
+
hasErrorTip: boolean;
|
|
19
|
+
hasFooter: boolean;
|
|
20
|
+
hasReset: boolean;
|
|
21
|
+
hasLabel: boolean;
|
|
22
|
+
submitLoading: boolean;
|
|
23
|
+
submitText: string;
|
|
24
|
+
resetText: string;
|
|
25
|
+
footerAlign: string;
|
|
26
|
+
rules: () => {};
|
|
27
|
+
columns: () => never[];
|
|
28
|
+
group: boolean;
|
|
29
|
+
cardProps: () => {};
|
|
30
|
+
prevent: boolean;
|
|
31
|
+
collapseDuration: undefined;
|
|
32
|
+
collapseTransition: undefined;
|
|
33
|
+
clearable: boolean;
|
|
34
|
+
}>, {
|
|
35
|
+
formInstance: Ref< CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
36
|
+
readonly model: ObjectConstructor;
|
|
37
|
+
readonly rules: {
|
|
38
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
44
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
45
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
46
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
47
|
+
readonly inline: BooleanConstructor;
|
|
48
|
+
readonly inlineMessage: BooleanConstructor;
|
|
49
|
+
readonly statusIcon: BooleanConstructor;
|
|
50
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
51
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
52
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
53
|
+
readonly scrollToError: BooleanConstructor;
|
|
54
|
+
readonly scrollIntoViewOptions: {
|
|
55
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
readonly size: {
|
|
61
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
62
|
+
readonly required: false;
|
|
63
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
+
__epPropKey: true;
|
|
65
|
+
};
|
|
66
|
+
readonly disabled: BooleanConstructor;
|
|
67
|
+
}>> & {
|
|
68
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
COMPONENT_NAME: string;
|
|
71
|
+
props: Readonly< LooseRequired<Readonly< ExtractPropTypes<{
|
|
72
|
+
readonly model: ObjectConstructor;
|
|
73
|
+
readonly rules: {
|
|
74
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
75
|
+
readonly required: false;
|
|
76
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
77
|
+
__epPropKey: true;
|
|
78
|
+
};
|
|
79
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
80
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
81
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
82
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
83
|
+
readonly inline: BooleanConstructor;
|
|
84
|
+
readonly inlineMessage: BooleanConstructor;
|
|
85
|
+
readonly statusIcon: BooleanConstructor;
|
|
86
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
87
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
88
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
89
|
+
readonly scrollToError: BooleanConstructor;
|
|
90
|
+
readonly scrollIntoViewOptions: {
|
|
91
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
+
__epPropKey: true;
|
|
95
|
+
};
|
|
96
|
+
readonly size: {
|
|
97
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
|
+
__epPropKey: true;
|
|
101
|
+
};
|
|
102
|
+
readonly disabled: BooleanConstructor;
|
|
103
|
+
}>> & {
|
|
104
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
105
|
+
}>>;
|
|
106
|
+
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
107
|
+
fields: FormItemContext[];
|
|
108
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
109
|
+
ns: {
|
|
110
|
+
namespace: ComputedRef<string>;
|
|
111
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
112
|
+
e: (element?: string | undefined) => string;
|
|
113
|
+
m: (modifier?: string | undefined) => string;
|
|
114
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
115
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
116
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
117
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
118
|
+
is: {
|
|
119
|
+
(name: string, state: boolean | undefined): string;
|
|
120
|
+
(name: string): string;
|
|
121
|
+
};
|
|
122
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
123
|
+
cssVarName: (name: string) => string;
|
|
124
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
125
|
+
cssVarBlockName: (name: string) => string;
|
|
126
|
+
};
|
|
127
|
+
formClasses: ComputedRef<(string | {
|
|
128
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
129
|
+
})[]>;
|
|
130
|
+
getField: (prop: string) => FormItemContext | undefined;
|
|
131
|
+
addField: (field: FormItemContext) => void;
|
|
132
|
+
removeField: (field: FormItemContext) => void;
|
|
133
|
+
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
134
|
+
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
135
|
+
isValidatable: ComputedRef<boolean>;
|
|
136
|
+
obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
|
|
137
|
+
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
138
|
+
doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
|
|
139
|
+
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
140
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
141
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
142
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => boolean;
|
|
143
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
144
|
+
readonly model: ObjectConstructor;
|
|
145
|
+
readonly rules: {
|
|
146
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
147
|
+
readonly required: false;
|
|
148
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
149
|
+
__epPropKey: true;
|
|
150
|
+
};
|
|
151
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
152
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
153
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
154
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
155
|
+
readonly inline: BooleanConstructor;
|
|
156
|
+
readonly inlineMessage: BooleanConstructor;
|
|
157
|
+
readonly statusIcon: BooleanConstructor;
|
|
158
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
159
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
160
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
161
|
+
readonly scrollToError: BooleanConstructor;
|
|
162
|
+
readonly scrollIntoViewOptions: {
|
|
163
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
164
|
+
readonly required: false;
|
|
165
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
166
|
+
__epPropKey: true;
|
|
167
|
+
};
|
|
168
|
+
readonly size: {
|
|
169
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
170
|
+
readonly required: false;
|
|
171
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
+
__epPropKey: true;
|
|
173
|
+
};
|
|
174
|
+
readonly disabled: BooleanConstructor;
|
|
175
|
+
}>> & {
|
|
176
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
readonly disabled: boolean;
|
|
179
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
180
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
181
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
182
|
+
readonly labelSuffix: string;
|
|
183
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
184
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
185
|
+
readonly inline: boolean;
|
|
186
|
+
readonly inlineMessage: boolean;
|
|
187
|
+
readonly statusIcon: boolean;
|
|
188
|
+
readonly hideRequiredAsterisk: boolean;
|
|
189
|
+
readonly scrollToError: boolean;
|
|
190
|
+
}, true, {}, {}, {
|
|
191
|
+
P: {};
|
|
192
|
+
B: {};
|
|
193
|
+
D: {};
|
|
194
|
+
C: {};
|
|
195
|
+
M: {};
|
|
196
|
+
Defaults: {};
|
|
197
|
+
}, Readonly< ExtractPropTypes<{
|
|
198
|
+
readonly model: ObjectConstructor;
|
|
199
|
+
readonly rules: {
|
|
200
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
201
|
+
readonly required: false;
|
|
202
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
203
|
+
__epPropKey: true;
|
|
204
|
+
};
|
|
205
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
206
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
207
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
208
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
209
|
+
readonly inline: BooleanConstructor;
|
|
210
|
+
readonly inlineMessage: BooleanConstructor;
|
|
211
|
+
readonly statusIcon: BooleanConstructor;
|
|
212
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
213
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
214
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
215
|
+
readonly scrollToError: BooleanConstructor;
|
|
216
|
+
readonly scrollIntoViewOptions: {
|
|
217
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
218
|
+
readonly required: false;
|
|
219
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
220
|
+
__epPropKey: true;
|
|
221
|
+
};
|
|
222
|
+
readonly size: {
|
|
223
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
224
|
+
readonly required: false;
|
|
225
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
226
|
+
__epPropKey: true;
|
|
227
|
+
};
|
|
228
|
+
readonly disabled: BooleanConstructor;
|
|
229
|
+
}>> & {
|
|
230
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
231
|
+
}, {
|
|
232
|
+
COMPONENT_NAME: string;
|
|
233
|
+
props: Readonly< LooseRequired<Readonly< ExtractPropTypes<{
|
|
234
|
+
readonly model: ObjectConstructor;
|
|
235
|
+
readonly rules: {
|
|
236
|
+
readonly type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
237
|
+
readonly required: false;
|
|
238
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
239
|
+
__epPropKey: true;
|
|
240
|
+
};
|
|
241
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "top" | "right" | "left", unknown, "right", boolean>;
|
|
242
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "right" | "left", unknown, "left", boolean>;
|
|
243
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
244
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
245
|
+
readonly inline: BooleanConstructor;
|
|
246
|
+
readonly inlineMessage: BooleanConstructor;
|
|
247
|
+
readonly statusIcon: BooleanConstructor;
|
|
248
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
249
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
250
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
251
|
+
readonly scrollToError: BooleanConstructor;
|
|
252
|
+
readonly scrollIntoViewOptions: {
|
|
253
|
+
readonly type: PropType<EpPropMergeType<readonly [ObjectConstructor, BooleanConstructor], unknown, unknown>>;
|
|
254
|
+
readonly required: false;
|
|
255
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
256
|
+
__epPropKey: true;
|
|
257
|
+
};
|
|
258
|
+
readonly size: {
|
|
259
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", unknown>>;
|
|
260
|
+
readonly required: false;
|
|
261
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
262
|
+
__epPropKey: true;
|
|
263
|
+
};
|
|
264
|
+
readonly disabled: BooleanConstructor;
|
|
265
|
+
}>> & {
|
|
266
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
267
|
+
}>>;
|
|
268
|
+
emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
269
|
+
fields: FormItemContext[];
|
|
270
|
+
formSize: ComputedRef<"" | "default" | "small" | "large">;
|
|
271
|
+
ns: {
|
|
272
|
+
namespace: ComputedRef<string>;
|
|
273
|
+
b: (blockSuffix?: string | undefined) => string;
|
|
274
|
+
e: (element?: string | undefined) => string;
|
|
275
|
+
m: (modifier?: string | undefined) => string;
|
|
276
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
277
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
278
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
279
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
280
|
+
is: {
|
|
281
|
+
(name: string, state: boolean | undefined): string;
|
|
282
|
+
(name: string): string;
|
|
283
|
+
};
|
|
284
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
285
|
+
cssVarName: (name: string) => string;
|
|
286
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
287
|
+
cssVarBlockName: (name: string) => string;
|
|
288
|
+
};
|
|
289
|
+
formClasses: ComputedRef<(string | {
|
|
290
|
+
[x: string]: boolean | EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
291
|
+
})[]>;
|
|
292
|
+
getField: (prop: string) => FormItemContext | undefined;
|
|
293
|
+
addField: (field: FormItemContext) => void;
|
|
294
|
+
removeField: (field: FormItemContext) => void;
|
|
295
|
+
resetFields: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
296
|
+
clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
|
|
297
|
+
isValidatable: ComputedRef<boolean>;
|
|
298
|
+
obtainValidateFields: (props: Arrayable<FormItemProp>) => FormItemContext[];
|
|
299
|
+
validate: (callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
300
|
+
doValidateField: (props?: Arrayable<FormItemProp> | undefined) => Promise<boolean>;
|
|
301
|
+
validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => FormValidationResult;
|
|
302
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
303
|
+
}, {}, {}, {}, {
|
|
304
|
+
readonly disabled: boolean;
|
|
305
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "right" | "left", unknown>;
|
|
306
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "right" | "left", unknown>;
|
|
307
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
308
|
+
readonly labelSuffix: string;
|
|
309
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
310
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
311
|
+
readonly inline: boolean;
|
|
312
|
+
readonly inlineMessage: boolean;
|
|
313
|
+
readonly statusIcon: boolean;
|
|
314
|
+
readonly hideRequiredAsterisk: boolean;
|
|
315
|
+
readonly scrollToError: boolean;
|
|
316
|
+
}> | null>;
|
|
317
|
+
handleSubmit: () => void;
|
|
318
|
+
handleReset: () => void;
|
|
319
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
320
|
+
"update:modelValue": (values: FieldValues) => void;
|
|
321
|
+
submit: (values: FieldValues) => void;
|
|
322
|
+
change: (values: FieldValues, column: PlusColumn) => void;
|
|
323
|
+
reset: (values: FieldValues) => void;
|
|
324
|
+
submitError: (errors: unknown) => void;
|
|
325
|
+
validate: (...args: any[]) => void;
|
|
326
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlusFormSelfProps>, {
|
|
327
|
+
modelValue: () => {};
|
|
328
|
+
defaultValues: () => {};
|
|
329
|
+
labelWidth: string;
|
|
330
|
+
labelPosition: string;
|
|
331
|
+
rowProps: () => {};
|
|
332
|
+
colProps: () => {};
|
|
333
|
+
labelSuffix: string;
|
|
334
|
+
hasErrorTip: boolean;
|
|
335
|
+
hasFooter: boolean;
|
|
336
|
+
hasReset: boolean;
|
|
337
|
+
hasLabel: boolean;
|
|
338
|
+
submitLoading: boolean;
|
|
339
|
+
submitText: string;
|
|
340
|
+
resetText: string;
|
|
341
|
+
footerAlign: string;
|
|
342
|
+
rules: () => {};
|
|
343
|
+
columns: () => never[];
|
|
344
|
+
group: boolean;
|
|
345
|
+
cardProps: () => {};
|
|
346
|
+
prevent: boolean;
|
|
347
|
+
collapseDuration: undefined;
|
|
348
|
+
collapseTransition: undefined;
|
|
349
|
+
clearable: boolean;
|
|
350
|
+
}>>> & {
|
|
351
|
+
onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
|
|
352
|
+
onReset?: ((values: FieldValues) => any) | undefined;
|
|
353
|
+
onSubmit?: ((values: FieldValues) => any) | undefined;
|
|
354
|
+
"onUpdate:modelValue"?: ((values: FieldValues) => any) | undefined;
|
|
355
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
356
|
+
onSubmitError?: ((errors: unknown) => any) | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
collapseDuration: number;
|
|
359
|
+
collapseTransition: boolean;
|
|
360
|
+
columns: PlusColumn[];
|
|
361
|
+
group: false | PlusFormGroupRow[];
|
|
362
|
+
modelValue: FieldValues;
|
|
363
|
+
rules: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
364
|
+
labelPosition: "top" | "right" | "left";
|
|
365
|
+
labelWidth: string | number;
|
|
366
|
+
labelSuffix: string;
|
|
367
|
+
hasLabel: boolean;
|
|
368
|
+
defaultValues: FieldValues;
|
|
369
|
+
rowProps: Partial< Mutable<RowProps> & {
|
|
370
|
+
style?: CSSProperties | undefined;
|
|
371
|
+
class?: any;
|
|
372
|
+
} & RecordType>;
|
|
373
|
+
colProps: Partial< Mutable<ColProps> & {
|
|
374
|
+
style?: CSSProperties | undefined;
|
|
375
|
+
class?: any;
|
|
376
|
+
} & RecordType>;
|
|
377
|
+
hasErrorTip: boolean;
|
|
378
|
+
hasFooter: boolean;
|
|
379
|
+
hasReset: boolean;
|
|
380
|
+
submitText: string;
|
|
381
|
+
resetText: string;
|
|
382
|
+
submitLoading: boolean;
|
|
383
|
+
footerAlign: "right" | "left" | "center";
|
|
384
|
+
cardProps: Partial< Mutable<CardProps> & {
|
|
385
|
+
style?: CSSProperties | undefined;
|
|
386
|
+
class?: any;
|
|
387
|
+
} & RecordType>;
|
|
388
|
+
prevent: boolean;
|
|
389
|
+
clearable: boolean;
|
|
390
|
+
}, {}>, Partial<Record<string, (_: {
|
|
391
|
+
index: number;
|
|
392
|
+
title: string | ComputedRef<string>;
|
|
393
|
+
name?: string | undefined;
|
|
394
|
+
icon?: Component | undefined;
|
|
395
|
+
cardProps?: Partial< Mutable<CardProps> & {
|
|
396
|
+
style?: CSSProperties | undefined;
|
|
397
|
+
class?: any;
|
|
398
|
+
} & RecordType> | undefined;
|
|
399
|
+
hideInGroup?: boolean | ComputedRef<boolean> | undefined;
|
|
400
|
+
columns?: PlusColumn[] | undefined;
|
|
401
|
+
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
402
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
403
|
+
readonly label: string | ComputedRef<string>;
|
|
404
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
405
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
406
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
407
|
+
style?: CSSProperties | undefined;
|
|
408
|
+
class?: any;
|
|
409
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
410
|
+
style?: CSSProperties | undefined;
|
|
411
|
+
class?: any;
|
|
412
|
+
} & RecordType>>;
|
|
413
|
+
readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
414
|
+
[key: string]: any;
|
|
415
|
+
style?: CSSProperties | undefined;
|
|
416
|
+
}>;
|
|
417
|
+
readonly fieldProps: PropsItemType<Partial<{
|
|
418
|
+
[index: string]: any;
|
|
419
|
+
[index: number]: any;
|
|
420
|
+
[index: symbol]: any;
|
|
421
|
+
class: any;
|
|
422
|
+
style: CSSProperties;
|
|
423
|
+
modelModifiers: {
|
|
424
|
+
[index: string]: any;
|
|
425
|
+
lazy?: boolean | undefined;
|
|
426
|
+
trim?: boolean | undefined;
|
|
427
|
+
number?: boolean | undefined;
|
|
428
|
+
};
|
|
429
|
+
rows: number;
|
|
430
|
+
autocomplete: string;
|
|
431
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
432
|
+
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
433
|
+
step: string | number;
|
|
434
|
+
format: string | ProgressFn | undefined;
|
|
435
|
+
filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined;
|
|
436
|
+
id: string | [string, string];
|
|
437
|
+
effect: string;
|
|
438
|
+
height: string | number;
|
|
439
|
+
autosize: InputAutoSize;
|
|
440
|
+
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
441
|
+
readonly options: OptionsType;
|
|
442
|
+
readonly fieldSlots: {
|
|
443
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
444
|
+
};
|
|
445
|
+
readonly valueType: TableValueType | FormItemValueType;
|
|
446
|
+
readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
|
|
447
|
+
readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
448
|
+
readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
|
|
449
|
+
readonly renderErrorMessage: ((props: PlusColumn & {
|
|
450
|
+
value?: FieldValueType;
|
|
451
|
+
error?: string | undefined;
|
|
452
|
+
label?: string | undefined;
|
|
453
|
+
}) => RenderTypes) | undefined;
|
|
454
|
+
readonly optionsMap: {
|
|
455
|
+
label?: string | undefined;
|
|
456
|
+
value?: string | undefined;
|
|
457
|
+
} | undefined;
|
|
458
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
459
|
+
store?: any;
|
|
460
|
+
method?: string | undefined;
|
|
461
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
462
|
+
dictCode?: string | undefined;
|
|
463
|
+
} | undefined;
|
|
464
|
+
readonly clearable: boolean;
|
|
465
|
+
readonly index: number;
|
|
466
|
+
} & {
|
|
467
|
+
readonly clearable: boolean;
|
|
468
|
+
};
|
|
469
|
+
label: string;
|
|
470
|
+
fieldProps: RecordType;
|
|
471
|
+
formItemProps: RecordType;
|
|
472
|
+
options: OptionsRow<undefined>[];
|
|
473
|
+
fieldInstance?: any;
|
|
474
|
+
valueIsReady?: Ref<boolean> | undefined;
|
|
475
|
+
prop: string;
|
|
476
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
477
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
478
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
479
|
+
style?: CSSProperties | undefined;
|
|
480
|
+
class?: any;
|
|
481
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
482
|
+
style?: CSSProperties | undefined;
|
|
483
|
+
class?: any;
|
|
484
|
+
} & RecordType>>;
|
|
485
|
+
fieldSlots: {
|
|
486
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
487
|
+
};
|
|
488
|
+
valueType: TableValueType | FormItemValueType;
|
|
489
|
+
renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
|
|
490
|
+
renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
491
|
+
fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
|
|
492
|
+
renderErrorMessage: ((props: PlusColumn & {
|
|
493
|
+
value?: FieldValueType;
|
|
494
|
+
error?: string | undefined;
|
|
495
|
+
label?: string | undefined;
|
|
496
|
+
}) => RenderTypes) | undefined;
|
|
497
|
+
optionsMap: {
|
|
498
|
+
label?: string | undefined;
|
|
499
|
+
value?: string | undefined;
|
|
500
|
+
} | undefined;
|
|
501
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
502
|
+
store?: any;
|
|
503
|
+
method?: string | undefined;
|
|
504
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
505
|
+
dictCode?: string | undefined;
|
|
506
|
+
} | undefined;
|
|
507
|
+
clearable: boolean;
|
|
508
|
+
index: number;
|
|
509
|
+
}) => any>> & Partial<Record<NonNullable<string | number>, (_: {
|
|
510
|
+
column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
|
|
511
|
+
readonly label: string | ComputedRef<string>;
|
|
512
|
+
readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
513
|
+
readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
514
|
+
readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
515
|
+
style?: CSSProperties | undefined;
|
|
516
|
+
class?: any;
|
|
517
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
518
|
+
style?: CSSProperties | undefined;
|
|
519
|
+
class?: any;
|
|
520
|
+
} & RecordType>>;
|
|
521
|
+
readonly formItemProps: PropsItemType< Mutable<FormItemProps> & {
|
|
522
|
+
[key: string]: any;
|
|
523
|
+
style?: CSSProperties | undefined;
|
|
524
|
+
}>;
|
|
525
|
+
readonly fieldProps: PropsItemType<Partial<{
|
|
526
|
+
[index: string]: any;
|
|
527
|
+
[index: number]: any;
|
|
528
|
+
[index: symbol]: any;
|
|
529
|
+
class: any;
|
|
530
|
+
style: CSSProperties;
|
|
531
|
+
modelModifiers: {
|
|
532
|
+
[index: string]: any;
|
|
533
|
+
lazy?: boolean | undefined;
|
|
534
|
+
trim?: boolean | undefined;
|
|
535
|
+
number?: boolean | undefined;
|
|
536
|
+
};
|
|
537
|
+
rows: number;
|
|
538
|
+
autocomplete: string;
|
|
539
|
+
type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
540
|
+
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
541
|
+
step: string | number;
|
|
542
|
+
format: string | ProgressFn | undefined;
|
|
543
|
+
filterMethod: Function | ((node: CascaderNode, keyword: string) => boolean) | undefined;
|
|
544
|
+
id: string | [string, string];
|
|
545
|
+
effect: string;
|
|
546
|
+
height: string | number;
|
|
547
|
+
autosize: InputAutoSize;
|
|
548
|
+
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>>;
|
|
549
|
+
readonly options: OptionsType;
|
|
550
|
+
readonly fieldSlots: {
|
|
551
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
552
|
+
};
|
|
553
|
+
readonly valueType: TableValueType | FormItemValueType;
|
|
554
|
+
readonly renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
|
|
555
|
+
readonly renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
556
|
+
readonly fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
|
|
557
|
+
readonly renderErrorMessage: ((props: PlusColumn & {
|
|
558
|
+
value?: FieldValueType;
|
|
559
|
+
error?: string | undefined;
|
|
560
|
+
label?: string | undefined;
|
|
561
|
+
}) => RenderTypes) | undefined;
|
|
562
|
+
readonly optionsMap: {
|
|
563
|
+
label?: string | undefined;
|
|
564
|
+
value?: string | undefined;
|
|
565
|
+
} | undefined;
|
|
566
|
+
readonly autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
567
|
+
store?: any;
|
|
568
|
+
method?: string | undefined;
|
|
569
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
570
|
+
dictCode?: string | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
readonly clearable: boolean;
|
|
573
|
+
readonly index: number;
|
|
574
|
+
} & {
|
|
575
|
+
readonly clearable: boolean;
|
|
576
|
+
};
|
|
577
|
+
label: string;
|
|
578
|
+
fieldProps: RecordType;
|
|
579
|
+
formItemProps: RecordType;
|
|
580
|
+
options: OptionsRow<undefined>[];
|
|
581
|
+
fieldInstance?: any;
|
|
582
|
+
valueIsReady?: Ref<boolean> | undefined;
|
|
583
|
+
prop: string;
|
|
584
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
585
|
+
hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
|
|
586
|
+
tooltip: string | Partial< Mutable<ElTooltipProps> & {
|
|
587
|
+
style?: CSSProperties | undefined;
|
|
588
|
+
class?: any;
|
|
589
|
+
} & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
|
|
590
|
+
style?: CSSProperties | undefined;
|
|
591
|
+
class?: any;
|
|
592
|
+
} & RecordType>>;
|
|
593
|
+
fieldSlots: {
|
|
594
|
+
[slotName: string]: (data?: any) => RenderTypes;
|
|
595
|
+
};
|
|
596
|
+
valueType: TableValueType | FormItemValueType;
|
|
597
|
+
renderField: ((value: FieldValueType, onChange: (value: FieldValueType) => void, props: PlusColumn) => RenderTypes) | undefined;
|
|
598
|
+
renderLabel: ((label: string, props: PlusColumn) => RenderTypes) | undefined;
|
|
599
|
+
fieldChildrenSlot: ((option?: OptionsRow<undefined> | undefined) => RenderTypes) | undefined;
|
|
600
|
+
renderErrorMessage: ((props: PlusColumn & {
|
|
601
|
+
value?: FieldValueType;
|
|
602
|
+
error?: string | undefined;
|
|
603
|
+
label?: string | undefined;
|
|
604
|
+
}) => RenderTypes) | undefined;
|
|
605
|
+
optionsMap: {
|
|
606
|
+
label?: string | undefined;
|
|
607
|
+
value?: string | undefined;
|
|
608
|
+
} | undefined;
|
|
609
|
+
autoDict: boolean | ((column: PlusColumn) => OptionsRow<undefined>[] | Promise< OptionsRow<undefined>[]>) | {
|
|
610
|
+
store?: any;
|
|
611
|
+
method?: string | undefined;
|
|
612
|
+
transform?: ((data: any) => OptionsRow<undefined>[]) | undefined;
|
|
613
|
+
dictCode?: string | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
clearable: boolean;
|
|
616
|
+
index: number;
|
|
617
|
+
}) => any>> & {
|
|
618
|
+
default?(_: {}): any;
|
|
619
|
+
"group-header"?(_: {
|
|
620
|
+
title: string;
|
|
621
|
+
columns: PlusColumn[] | undefined;
|
|
622
|
+
icon: Component | undefined;
|
|
623
|
+
index: number;
|
|
624
|
+
}): any;
|
|
625
|
+
footer?(_: {
|
|
626
|
+
handleReset: () => void;
|
|
627
|
+
handleSubmit: () => void;
|
|
628
|
+
}): any;
|
|
629
|
+
}>;
|
|
630
|
+
export default _default;
|
|
631
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
632
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
633
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
634
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
635
|
+
} : {
|
|
636
|
+
type: PropType<T[K]>;
|
|
637
|
+
required: true;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
type __VLS_WithDefaults<P, D> = {
|
|
641
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
642
|
+
default: D[K];
|
|
643
|
+
}> : P[K];
|
|
644
|
+
};
|
|
645
|
+
type __VLS_Prettify<T> = {
|
|
646
|
+
[K in keyof T]: T[K];
|
|
647
|
+
} & {};
|
|
648
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
649
|
+
new (): {
|
|
650
|
+
$slots: S;
|
|
651
|
+
};
|
|
652
|
+
};
|