erp-plus 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -3
- package/dist/types/App.vue.d.ts +1 -1
- package/dist/types/erp-plus.css +1 -1
- package/dist/types/erp-plus.es.js +86 -60
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/packages/Avatar/Avatar.vue.d.ts +87 -0
- package/dist/types/packages/Avatar/index.d.ts +4 -0
- package/dist/types/packages/Button/Button.vue.d.ts +151 -16
- package/dist/types/packages/Button/index.d.ts +0 -2
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +307 -0
- package/dist/types/packages/DatePicker/index.d.ts +4 -0
- package/dist/types/packages/Form/Form.vue.d.ts +173 -0
- package/dist/types/packages/Form/index.d.ts +4 -0
- package/dist/types/packages/FormItem/FormItem.vue.d.ts +144 -0
- package/dist/types/packages/FormItem/index.d.ts +4 -0
- package/dist/types/packages/Input/Input.vue.d.ts +339 -0
- package/dist/types/packages/Input/index.d.ts +4 -0
- package/dist/types/packages/Select/Select.vue.d.ts +430 -0
- package/dist/types/packages/Select/index.d.ts +4 -0
- package/dist/types/packages/SvgIcon/index.vue.d.ts +32 -0
- package/package.json +12 -10
- package/dist/types/packages/Button/types.d.ts +0 -24
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type sizeType = 'large' | 'default' | 'small' | undefined;
|
|
3
|
+
type typeType = "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
4
|
+
type placementType = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<string | number | Date | [Date, Date]>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
readonly: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: PropType<sizeType>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
editable: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
clearable: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
startPlaceholder: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
endPlaceholder: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
type: {
|
|
43
|
+
type: PropType<typeType>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
format: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
popperClass: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
popperOptions: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
rangeSeparator: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
defaultTime: PropType<Date | [Date, Date]>;
|
|
63
|
+
defaultValue: {
|
|
64
|
+
type: PropType<Date | [Date, Date]>;
|
|
65
|
+
default: () => string;
|
|
66
|
+
};
|
|
67
|
+
id: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
name: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
unlinkPanels: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
prefixIcon: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
85
|
+
clearIcon: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
validateEvent: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
disabledDate: {
|
|
96
|
+
type: FunctionConstructor;
|
|
97
|
+
default: () => boolean;
|
|
98
|
+
};
|
|
99
|
+
shortcuts: {
|
|
100
|
+
type: ArrayConstructor;
|
|
101
|
+
default: () => never[];
|
|
102
|
+
};
|
|
103
|
+
cellClassName: {
|
|
104
|
+
type: FunctionConstructor;
|
|
105
|
+
default: () => string;
|
|
106
|
+
};
|
|
107
|
+
teleported: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
emptyValues: {
|
|
112
|
+
type: ArrayConstructor;
|
|
113
|
+
default: () => never[];
|
|
114
|
+
};
|
|
115
|
+
valueOnClear: {
|
|
116
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor | FunctionConstructor)[];
|
|
117
|
+
default: () => string;
|
|
118
|
+
};
|
|
119
|
+
placement: {
|
|
120
|
+
type: PropType<placementType>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
showFooter: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
showWeekNumber: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
132
|
+
blur: (...args: any[]) => void;
|
|
133
|
+
change: (...args: any[]) => void;
|
|
134
|
+
focus: (...args: any[]) => void;
|
|
135
|
+
clear: (...args: any[]) => void;
|
|
136
|
+
"update:modelValue": (...args: any[]) => void;
|
|
137
|
+
"visible-change": (...args: any[]) => void;
|
|
138
|
+
"calendar-change": (...args: any[]) => void;
|
|
139
|
+
"panel-change": (...args: any[]) => void;
|
|
140
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
141
|
+
modelValue: {
|
|
142
|
+
type: PropType<string | number | Date | [Date, Date]>;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
readonly: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
disabled: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
size: {
|
|
154
|
+
type: PropType<sizeType>;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
editable: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
clearable: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
placeholder: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
startPlaceholder: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
endPlaceholder: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
type: {
|
|
178
|
+
type: PropType<typeType>;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
format: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
popperClass: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
popperOptions: {
|
|
190
|
+
type: ObjectConstructor;
|
|
191
|
+
default: () => {};
|
|
192
|
+
};
|
|
193
|
+
rangeSeparator: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
defaultTime: PropType<Date | [Date, Date]>;
|
|
198
|
+
defaultValue: {
|
|
199
|
+
type: PropType<Date | [Date, Date]>;
|
|
200
|
+
default: () => string;
|
|
201
|
+
};
|
|
202
|
+
id: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
name: {
|
|
207
|
+
type: StringConstructor;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
unlinkPanels: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
prefixIcon: {
|
|
215
|
+
type: StringConstructor;
|
|
216
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
}>;
|
|
219
|
+
};
|
|
220
|
+
clearIcon: {
|
|
221
|
+
type: StringConstructor;
|
|
222
|
+
default: () => VNode<RendererNode, RendererElement, {
|
|
223
|
+
[key: string]: any;
|
|
224
|
+
}>;
|
|
225
|
+
};
|
|
226
|
+
validateEvent: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
230
|
+
disabledDate: {
|
|
231
|
+
type: FunctionConstructor;
|
|
232
|
+
default: () => boolean;
|
|
233
|
+
};
|
|
234
|
+
shortcuts: {
|
|
235
|
+
type: ArrayConstructor;
|
|
236
|
+
default: () => never[];
|
|
237
|
+
};
|
|
238
|
+
cellClassName: {
|
|
239
|
+
type: FunctionConstructor;
|
|
240
|
+
default: () => string;
|
|
241
|
+
};
|
|
242
|
+
teleported: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
246
|
+
emptyValues: {
|
|
247
|
+
type: ArrayConstructor;
|
|
248
|
+
default: () => never[];
|
|
249
|
+
};
|
|
250
|
+
valueOnClear: {
|
|
251
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor | FunctionConstructor)[];
|
|
252
|
+
default: () => string;
|
|
253
|
+
};
|
|
254
|
+
placement: {
|
|
255
|
+
type: PropType<placementType>;
|
|
256
|
+
default: string;
|
|
257
|
+
};
|
|
258
|
+
showFooter: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
showWeekNumber: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
266
|
+
}>> & Readonly<{
|
|
267
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
268
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
269
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
270
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
271
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
272
|
+
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
273
|
+
"onCalendar-change"?: ((...args: any[]) => any) | undefined;
|
|
274
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
275
|
+
}>, {
|
|
276
|
+
size: sizeType;
|
|
277
|
+
type: typeType;
|
|
278
|
+
disabled: boolean;
|
|
279
|
+
readonly: boolean;
|
|
280
|
+
name: string;
|
|
281
|
+
modelValue: string | number | Date | [Date, Date];
|
|
282
|
+
placeholder: string;
|
|
283
|
+
clearable: boolean;
|
|
284
|
+
clearIcon: string;
|
|
285
|
+
prefixIcon: string;
|
|
286
|
+
validateEvent: boolean;
|
|
287
|
+
id: string;
|
|
288
|
+
popperClass: string;
|
|
289
|
+
teleported: boolean;
|
|
290
|
+
placement: placementType;
|
|
291
|
+
emptyValues: unknown[];
|
|
292
|
+
valueOnClear: string | number | boolean | Function;
|
|
293
|
+
popperOptions: Record<string, any>;
|
|
294
|
+
editable: boolean;
|
|
295
|
+
startPlaceholder: string;
|
|
296
|
+
endPlaceholder: string;
|
|
297
|
+
format: string;
|
|
298
|
+
rangeSeparator: string;
|
|
299
|
+
defaultValue: Date | [Date, Date];
|
|
300
|
+
unlinkPanels: boolean;
|
|
301
|
+
disabledDate: Function;
|
|
302
|
+
shortcuts: unknown[];
|
|
303
|
+
cellClassName: Function;
|
|
304
|
+
showFooter: boolean;
|
|
305
|
+
showWeekNumber: boolean;
|
|
306
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
307
|
+
export default _default;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type labelPositionType = 'right' | 'left' | 'top';
|
|
3
|
+
type requireAsteriskPositionType = 'right' | 'left';
|
|
4
|
+
type sizeType = '' | 'large' | 'default' | 'small';
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: any;
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
rules: {
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
default: {};
|
|
20
|
+
};
|
|
21
|
+
inline: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
labelPosition: {
|
|
26
|
+
type: PropType<labelPositionType>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
labelWidth: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
labelSuffix: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
hideRequiredAsterisk: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
requireAsteriskPosition: {
|
|
42
|
+
type: PropType<requireAsteriskPositionType>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
showMessage: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
inlineMessage: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
statusIcon: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
validateOnRuleChange: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
size: {
|
|
62
|
+
type: PropType<sizeType>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
disabled: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
scrollToError: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
74
|
+
validate: (...args: any[]) => void;
|
|
75
|
+
validateField: (...args: any[]) => void;
|
|
76
|
+
resetFields: (...args: any[]) => void;
|
|
77
|
+
scrollToField: (...args: any[]) => void;
|
|
78
|
+
clearValidate: (...args: any[]) => void;
|
|
79
|
+
fields: (...args: any[]) => void;
|
|
80
|
+
getField: (...args: any[]) => void;
|
|
81
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
82
|
+
modelValue: {
|
|
83
|
+
type: ObjectConstructor;
|
|
84
|
+
default: {};
|
|
85
|
+
};
|
|
86
|
+
rules: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
default: {};
|
|
89
|
+
};
|
|
90
|
+
inline: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
labelPosition: {
|
|
95
|
+
type: PropType<labelPositionType>;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
labelWidth: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
labelSuffix: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
hideRequiredAsterisk: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
requireAsteriskPosition: {
|
|
111
|
+
type: PropType<requireAsteriskPositionType>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
showMessage: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
inlineMessage: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
statusIcon: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
validateOnRuleChange: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
size: {
|
|
131
|
+
type: PropType<sizeType>;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
disabled: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
scrollToError: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
}>> & Readonly<{
|
|
143
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
144
|
+
onValidateField?: ((...args: any[]) => any) | undefined;
|
|
145
|
+
onResetFields?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
onScrollToField?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
onClearValidate?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onFields?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onGetField?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
size: sizeType;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
modelValue: Record<string, any>;
|
|
154
|
+
rules: Record<string, any>;
|
|
155
|
+
inline: boolean;
|
|
156
|
+
labelPosition: labelPositionType;
|
|
157
|
+
labelWidth: string;
|
|
158
|
+
labelSuffix: string;
|
|
159
|
+
hideRequiredAsterisk: boolean;
|
|
160
|
+
requireAsteriskPosition: requireAsteriskPositionType;
|
|
161
|
+
showMessage: boolean;
|
|
162
|
+
inlineMessage: boolean;
|
|
163
|
+
statusIcon: boolean;
|
|
164
|
+
validateOnRuleChange: boolean;
|
|
165
|
+
scrollToError: boolean;
|
|
166
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
167
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
168
|
+
export default _default;
|
|
169
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
170
|
+
new (): {
|
|
171
|
+
$slots: S;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { FormItemRule } from 'element-plus';
|
|
2
|
+
import { Arrayable } from 'element-plus/es/utils';
|
|
3
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
type LabelPositionType = 'right' | 'left' | 'top';
|
|
5
|
+
type ValidateStatus = '' | 'error' | 'validating' | 'success';
|
|
6
|
+
type SizeType = '' | 'large' | 'default' | 'small';
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: any;
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
15
|
+
prop: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
labelPosition: {
|
|
24
|
+
type: PropType<LabelPositionType>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
labelWidth: {
|
|
28
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
rules: {
|
|
36
|
+
type: PropType<Arrayable<FormItemRule>>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
error: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
showMessage: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
inlineMessage: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
type: PropType<SizeType>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
for: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
validateStatus: {
|
|
60
|
+
type: PropType<ValidateStatus>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>, {
|
|
64
|
+
size: ComputedRef<true | "">;
|
|
65
|
+
validateMessage: ComputedRef<string>;
|
|
66
|
+
validateState: ComputedRef<"success" | "" | "error" | "validating">;
|
|
67
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
|
+
validate: (...args: any[]) => void;
|
|
69
|
+
resetFields: (...args: any[]) => void;
|
|
70
|
+
clearValidate: (...args: any[]) => void;
|
|
71
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
72
|
+
prop: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
label: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
labelPosition: {
|
|
81
|
+
type: PropType<LabelPositionType>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
labelWidth: {
|
|
85
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
required: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
rules: {
|
|
93
|
+
type: PropType<Arrayable<FormItemRule>>;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
error: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
showMessage: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
inlineMessage: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
size: {
|
|
109
|
+
type: PropType<SizeType>;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
for: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
validateStatus: {
|
|
117
|
+
type: PropType<ValidateStatus>;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
}>> & Readonly<{
|
|
121
|
+
onValidate?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
onResetFields?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
onClearValidate?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
error: string;
|
|
126
|
+
size: SizeType;
|
|
127
|
+
label: string;
|
|
128
|
+
required: boolean;
|
|
129
|
+
rules: Arrayable<FormItemRule>;
|
|
130
|
+
labelPosition: LabelPositionType;
|
|
131
|
+
labelWidth: string | number;
|
|
132
|
+
showMessage: boolean;
|
|
133
|
+
inlineMessage: boolean;
|
|
134
|
+
prop: string;
|
|
135
|
+
for: string;
|
|
136
|
+
validateStatus: ValidateStatus;
|
|
137
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
138
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
139
|
+
export default _default;
|
|
140
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
141
|
+
new (): {
|
|
142
|
+
$slots: S;
|
|
143
|
+
};
|
|
144
|
+
};
|