erp-plus 1.0.5 → 1.0.7

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.
@@ -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,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Form } from './Form.vue';
3
+ declare const _default: typeof Form & Plugin;
4
+ export default _default;
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as FormItem } from './FormItem.vue';
3
+ declare const _default: typeof FormItem & Plugin;
4
+ export default _default;
@@ -0,0 +1,339 @@
1
+ import { Component, PropType, DefineComponent, ExtractPropTypes, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type resizeType = "none" | "both" | "horizontal" | "vertical" | undefined;
3
+ type sizeType = 'large' | 'default' | 'small' | undefined;
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: any;
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
12
+ modelValue: {
13
+ type: (StringConstructor | NumberConstructor)[];
14
+ default: string;
15
+ };
16
+ type: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ showWordLimit: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ placeholder: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ clearable: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ clearIcon: {
33
+ type: StringConstructor;
34
+ default: () => VNode<RendererNode, RendererElement, {
35
+ [key: string]: any;
36
+ }>;
37
+ };
38
+ formatter: {
39
+ type: FunctionConstructor;
40
+ default: (val: string) => string;
41
+ };
42
+ parser: {
43
+ type: FunctionConstructor;
44
+ default: (val: string) => string;
45
+ };
46
+ maxlength: {
47
+ type: NumberConstructor;
48
+ default: null;
49
+ };
50
+ minlength: {
51
+ type: NumberConstructor;
52
+ default: null;
53
+ };
54
+ showPassword: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ size: {
63
+ type: PropType<sizeType>;
64
+ default: string;
65
+ };
66
+ prefixIcon: {
67
+ type: PropType<string | Component>;
68
+ default: string;
69
+ };
70
+ suffixIcon: {
71
+ type: PropType<string | Component>;
72
+ default: string;
73
+ };
74
+ rows: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ autosize: {
79
+ type: PropType<boolean | {
80
+ minRows: number;
81
+ maxRows: number;
82
+ }>;
83
+ default: boolean;
84
+ };
85
+ name: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ readonly: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ max: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ default: string;
96
+ };
97
+ min: {
98
+ type: (StringConstructor | NumberConstructor)[];
99
+ default: string;
100
+ };
101
+ step: {
102
+ type: (StringConstructor | NumberConstructor)[];
103
+ default: string;
104
+ };
105
+ resize: {
106
+ type: PropType<resizeType>;
107
+ default: string;
108
+ };
109
+ autofocus: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ form: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ ariaLabel: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ tabindex: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ validateEvent: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ inputStyle: {
130
+ type: ObjectConstructor;
131
+ default: () => {};
132
+ };
133
+ label: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ inputMode: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
142
+ blur: (...args: any[]) => void;
143
+ change: (...args: any[]) => void;
144
+ compositionend: (...args: any[]) => void;
145
+ compositionstart: (...args: any[]) => void;
146
+ compositionupdate: (...args: any[]) => void;
147
+ focus: (...args: any[]) => void;
148
+ input: (...args: any[]) => void;
149
+ keydown: (...args: any[]) => void;
150
+ mouseenter: (...args: any[]) => void;
151
+ mouseleave: (...args: any[]) => void;
152
+ clear: (...args: any[]) => void;
153
+ "update:modelValue": (...args: any[]) => void;
154
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
155
+ modelValue: {
156
+ type: (StringConstructor | NumberConstructor)[];
157
+ default: string;
158
+ };
159
+ type: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ showWordLimit: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ placeholder: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ clearable: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ clearIcon: {
176
+ type: StringConstructor;
177
+ default: () => VNode<RendererNode, RendererElement, {
178
+ [key: string]: any;
179
+ }>;
180
+ };
181
+ formatter: {
182
+ type: FunctionConstructor;
183
+ default: (val: string) => string;
184
+ };
185
+ parser: {
186
+ type: FunctionConstructor;
187
+ default: (val: string) => string;
188
+ };
189
+ maxlength: {
190
+ type: NumberConstructor;
191
+ default: null;
192
+ };
193
+ minlength: {
194
+ type: NumberConstructor;
195
+ default: null;
196
+ };
197
+ showPassword: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ disabled: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ size: {
206
+ type: PropType<sizeType>;
207
+ default: string;
208
+ };
209
+ prefixIcon: {
210
+ type: PropType<string | Component>;
211
+ default: string;
212
+ };
213
+ suffixIcon: {
214
+ type: PropType<string | Component>;
215
+ default: string;
216
+ };
217
+ rows: {
218
+ type: NumberConstructor;
219
+ default: number;
220
+ };
221
+ autosize: {
222
+ type: PropType<boolean | {
223
+ minRows: number;
224
+ maxRows: number;
225
+ }>;
226
+ default: boolean;
227
+ };
228
+ name: {
229
+ type: StringConstructor;
230
+ default: string;
231
+ };
232
+ readonly: {
233
+ type: BooleanConstructor;
234
+ default: boolean;
235
+ };
236
+ max: {
237
+ type: (StringConstructor | NumberConstructor)[];
238
+ default: string;
239
+ };
240
+ min: {
241
+ type: (StringConstructor | NumberConstructor)[];
242
+ default: string;
243
+ };
244
+ step: {
245
+ type: (StringConstructor | NumberConstructor)[];
246
+ default: string;
247
+ };
248
+ resize: {
249
+ type: PropType<resizeType>;
250
+ default: string;
251
+ };
252
+ autofocus: {
253
+ type: BooleanConstructor;
254
+ default: boolean;
255
+ };
256
+ form: {
257
+ type: StringConstructor;
258
+ default: string;
259
+ };
260
+ ariaLabel: {
261
+ type: StringConstructor;
262
+ default: string;
263
+ };
264
+ tabindex: {
265
+ type: StringConstructor;
266
+ default: string;
267
+ };
268
+ validateEvent: {
269
+ type: BooleanConstructor;
270
+ default: boolean;
271
+ };
272
+ inputStyle: {
273
+ type: ObjectConstructor;
274
+ default: () => {};
275
+ };
276
+ label: {
277
+ type: StringConstructor;
278
+ default: string;
279
+ };
280
+ inputMode: {
281
+ type: StringConstructor;
282
+ default: string;
283
+ };
284
+ }>> & Readonly<{
285
+ onBlur?: ((...args: any[]) => any) | undefined;
286
+ onChange?: ((...args: any[]) => any) | undefined;
287
+ onCompositionend?: ((...args: any[]) => any) | undefined;
288
+ onCompositionstart?: ((...args: any[]) => any) | undefined;
289
+ onCompositionupdate?: ((...args: any[]) => any) | undefined;
290
+ onFocus?: ((...args: any[]) => any) | undefined;
291
+ onInput?: ((...args: any[]) => any) | undefined;
292
+ onKeydown?: ((...args: any[]) => any) | undefined;
293
+ onMouseenter?: ((...args: any[]) => any) | undefined;
294
+ onMouseleave?: ((...args: any[]) => any) | undefined;
295
+ onClear?: ((...args: any[]) => any) | undefined;
296
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
297
+ }>, {
298
+ resize: resizeType;
299
+ size: sizeType;
300
+ type: string;
301
+ disabled: boolean;
302
+ autofocus: boolean;
303
+ readonly: boolean;
304
+ form: string;
305
+ label: string;
306
+ modelValue: string | number;
307
+ clearable: boolean;
308
+ placeholder: string;
309
+ name: string;
310
+ prefixIcon: string | Component;
311
+ clearIcon: string;
312
+ validateEvent: boolean;
313
+ ariaLabel: string;
314
+ tabindex: string;
315
+ showWordLimit: boolean;
316
+ formatter: Function;
317
+ parser: Function;
318
+ maxlength: number;
319
+ minlength: number;
320
+ showPassword: boolean;
321
+ suffixIcon: string | Component;
322
+ rows: number;
323
+ autosize: boolean | {
324
+ minRows: number;
325
+ maxRows: number;
326
+ };
327
+ max: string | number;
328
+ min: string | number;
329
+ step: string | number;
330
+ inputStyle: Record<string, any>;
331
+ inputMode: string;
332
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
333
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
334
+ export default _default;
335
+ type __VLS_WithTemplateSlots<T, S> = T & {
336
+ new (): {
337
+ $slots: S;
338
+ };
339
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Input } from './Input.vue';
3
+ declare const _default: typeof Input & Plugin;
4
+ export default _default;