@vtj/ui 0.12.16 → 0.12.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/dist/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
- package/types/components/action/Action.d.ts +732 -104
- package/types/components/action/hooks.d.ts +122 -19
- package/types/components/action-bar/ActionBar.d.ts +488 -70
- package/types/components/attachment/Attachment.d.ts +743 -434
- package/types/components/data-item/DataItem.d.ts +488 -70
- package/types/components/dialog-form/DialogForm.d.ts +2536 -101
- package/types/components/field/Field.d.ts +224 -86
- package/types/components/form/Form.d.ts +2536 -101
- package/types/components/grid/renderers/components/DateEdit.d.ts +291 -69
- package/types/components/grid/renderers/components/GridEdit.d.ts +191 -65
- package/types/components/grid/renderers/components/PickerEdit.d.ts +367 -117
- package/types/components/grid-editor/GridEditor.d.ts +191 -65
- package/types/components/mask/Mask.d.ts +488 -70
- package/types/components/picker/Picker.d.ts +367 -117
- package/types/components/query-form/QueryForm.d.ts +5070 -199
- package/types/components/tabs/Tabs.d.ts +244 -36
- package/types/version.d.ts +2 -2
@@ -1,8 +1,6 @@
|
|
1
1
|
import { GridEditorProps } from './types';
|
2
|
-
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType,
|
3
|
-
import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ShallowRef, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
4
3
|
import { InputAutoSize } from 'element-plus';
|
5
|
-
import { Mutable } from 'element-plus/es/utils/typescript.mjs';
|
6
4
|
import { OnCleanup } from '@vue/reactivity';
|
7
5
|
declare const _default: DefineComponent<GridEditorProps, {
|
8
6
|
open: () => void;
|
@@ -26,13 +24,13 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
26
24
|
readonly disabled: boolean;
|
27
25
|
readonly id: string;
|
28
26
|
readonly type: string;
|
29
|
-
readonly modelValue:
|
30
|
-
readonly tabindex:
|
27
|
+
readonly modelValue: string | number | null | undefined;
|
28
|
+
readonly tabindex: string | number;
|
31
29
|
readonly readonly: boolean;
|
32
30
|
readonly autosize: InputAutoSize;
|
33
31
|
readonly autocomplete: string;
|
34
32
|
readonly containerRole: string;
|
35
|
-
readonly validateEvent:
|
33
|
+
readonly validateEvent: boolean;
|
36
34
|
readonly inputStyle: StyleValue;
|
37
35
|
readonly rows: number;
|
38
36
|
readonly clearable: boolean;
|
@@ -42,10 +40,10 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
42
40
|
}> & Omit<{
|
43
41
|
readonly type: string;
|
44
42
|
readonly disabled: boolean;
|
45
|
-
readonly tabindex:
|
43
|
+
readonly tabindex: string | number;
|
46
44
|
readonly autofocus: boolean;
|
47
|
-
readonly modelValue:
|
48
|
-
readonly validateEvent:
|
45
|
+
readonly modelValue: string | number | null | undefined;
|
46
|
+
readonly validateEvent: boolean;
|
49
47
|
readonly autosize: InputAutoSize;
|
50
48
|
readonly autocomplete: string;
|
51
49
|
readonly readonly: boolean;
|
@@ -54,18 +52,18 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
54
52
|
readonly showWordLimit: boolean;
|
55
53
|
readonly inputStyle: StyleValue;
|
56
54
|
readonly rows: number;
|
57
|
-
readonly size?:
|
55
|
+
readonly size?: ("" | "large" | "default" | "small") | undefined;
|
58
56
|
readonly form?: string | undefined;
|
59
57
|
readonly id?: string | undefined;
|
60
58
|
readonly ariaLabel?: string | undefined;
|
61
|
-
readonly resize?:
|
62
|
-
readonly maxlength?:
|
63
|
-
readonly minlength?:
|
59
|
+
readonly resize?: ("none" | "horizontal" | "vertical" | "both") | undefined;
|
60
|
+
readonly maxlength?: (string | number) | undefined;
|
61
|
+
readonly minlength?: (string | number) | undefined;
|
64
62
|
readonly formatter?: Function | undefined;
|
65
63
|
readonly parser?: Function | undefined;
|
66
64
|
readonly placeholder?: string | undefined;
|
67
|
-
readonly suffixIcon?:
|
68
|
-
readonly prefixIcon?:
|
65
|
+
readonly suffixIcon?: (string | Component) | undefined;
|
66
|
+
readonly prefixIcon?: (string | Component) | undefined;
|
69
67
|
readonly containerRole?: string | undefined;
|
70
68
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
71
69
|
onChange?: ((value: string) => any) | undefined | undefined;
|
@@ -96,42 +94,71 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
96
94
|
$el: any;
|
97
95
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
98
96
|
readonly ariaLabel: StringConstructor;
|
99
|
-
readonly id:
|
97
|
+
readonly id: {
|
98
|
+
readonly type: PropType<string>;
|
99
|
+
readonly required: false;
|
100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
101
|
+
__epPropKey: true;
|
102
|
+
} & {
|
103
|
+
readonly default: undefined;
|
104
|
+
};
|
100
105
|
readonly size: {
|
101
|
-
readonly type: PropType<
|
106
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
102
107
|
readonly required: false;
|
103
108
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
104
109
|
__epPropKey: true;
|
105
110
|
};
|
106
111
|
readonly disabled: BooleanConstructor;
|
107
|
-
readonly modelValue:
|
112
|
+
readonly modelValue: {
|
113
|
+
readonly type: PropType<string | number | null | undefined>;
|
114
|
+
readonly required: false;
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
116
|
+
__epPropKey: true;
|
117
|
+
} & {
|
118
|
+
readonly default: "";
|
119
|
+
};
|
108
120
|
readonly maxlength: {
|
109
|
-
readonly type: PropType<
|
121
|
+
readonly type: PropType<string | number>;
|
110
122
|
readonly required: false;
|
111
123
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
112
124
|
__epPropKey: true;
|
113
125
|
};
|
114
126
|
readonly minlength: {
|
115
|
-
readonly type: PropType<
|
127
|
+
readonly type: PropType<string | number>;
|
128
|
+
readonly required: false;
|
129
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
130
|
+
__epPropKey: true;
|
131
|
+
};
|
132
|
+
readonly type: {
|
133
|
+
readonly type: PropType<string>;
|
116
134
|
readonly required: false;
|
117
135
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
118
136
|
__epPropKey: true;
|
137
|
+
} & {
|
138
|
+
readonly default: "text";
|
119
139
|
};
|
120
|
-
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
121
140
|
readonly resize: {
|
122
|
-
readonly type: PropType<
|
141
|
+
readonly type: PropType<"none" | "horizontal" | "vertical" | "both">;
|
142
|
+
readonly required: false;
|
143
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
144
|
+
__epPropKey: true;
|
145
|
+
};
|
146
|
+
readonly autosize: {
|
147
|
+
readonly type: PropType<InputAutoSize>;
|
148
|
+
readonly required: false;
|
149
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
150
|
+
__epPropKey: true;
|
151
|
+
} & {
|
152
|
+
readonly default: false;
|
153
|
+
};
|
154
|
+
readonly autocomplete: {
|
155
|
+
readonly type: PropType<string>;
|
123
156
|
readonly required: false;
|
124
157
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
125
158
|
__epPropKey: true;
|
159
|
+
} & {
|
160
|
+
readonly default: "off";
|
126
161
|
};
|
127
|
-
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
128
|
-
minRows?: number;
|
129
|
-
maxRows?: number;
|
130
|
-
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
131
|
-
minRows?: number;
|
132
|
-
maxRows?: number;
|
133
|
-
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
134
|
-
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
135
162
|
readonly formatter: {
|
136
163
|
readonly type: PropType<Function>;
|
137
164
|
readonly required: false;
|
@@ -161,23 +188,58 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
161
188
|
readonly showPassword: BooleanConstructor;
|
162
189
|
readonly showWordLimit: BooleanConstructor;
|
163
190
|
readonly suffixIcon: {
|
164
|
-
readonly type: PropType<
|
191
|
+
readonly type: PropType<string | Component>;
|
165
192
|
readonly required: false;
|
166
193
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
167
194
|
__epPropKey: true;
|
168
195
|
};
|
169
196
|
readonly prefixIcon: {
|
170
|
-
readonly type: PropType<
|
197
|
+
readonly type: PropType<string | Component>;
|
198
|
+
readonly required: false;
|
199
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
200
|
+
__epPropKey: true;
|
201
|
+
};
|
202
|
+
readonly containerRole: {
|
203
|
+
readonly type: PropType<string>;
|
204
|
+
readonly required: false;
|
205
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
206
|
+
__epPropKey: true;
|
207
|
+
} & {
|
208
|
+
readonly default: undefined;
|
209
|
+
};
|
210
|
+
readonly tabindex: {
|
211
|
+
readonly type: PropType<string | number>;
|
212
|
+
readonly required: false;
|
213
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
214
|
+
__epPropKey: true;
|
215
|
+
} & {
|
216
|
+
readonly default: 0;
|
217
|
+
};
|
218
|
+
readonly validateEvent: {
|
219
|
+
readonly type: PropType<boolean>;
|
171
220
|
readonly required: false;
|
172
221
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
173
222
|
__epPropKey: true;
|
223
|
+
} & {
|
224
|
+
readonly default: true;
|
225
|
+
};
|
226
|
+
readonly inputStyle: {
|
227
|
+
readonly type: PropType<StyleValue>;
|
228
|
+
readonly required: false;
|
229
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
230
|
+
__epPropKey: true;
|
231
|
+
} & {
|
232
|
+
readonly default: () => {};
|
174
233
|
};
|
175
|
-
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
176
|
-
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
177
|
-
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
178
|
-
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
179
234
|
readonly autofocus: BooleanConstructor;
|
180
|
-
readonly rows:
|
235
|
+
readonly rows: {
|
236
|
+
readonly type: PropType<number>;
|
237
|
+
readonly required: false;
|
238
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
239
|
+
__epPropKey: true;
|
240
|
+
} & {
|
241
|
+
readonly default: 2;
|
242
|
+
};
|
181
243
|
}>> & {
|
182
244
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
183
245
|
onChange?: ((value: string) => any) | undefined;
|
@@ -220,13 +282,13 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
220
282
|
readonly disabled: boolean;
|
221
283
|
readonly id: string;
|
222
284
|
readonly type: string;
|
223
|
-
readonly modelValue:
|
224
|
-
readonly tabindex:
|
285
|
+
readonly modelValue: string | number | null | undefined;
|
286
|
+
readonly tabindex: string | number;
|
225
287
|
readonly readonly: boolean;
|
226
288
|
readonly autosize: InputAutoSize;
|
227
289
|
readonly autocomplete: string;
|
228
290
|
readonly containerRole: string;
|
229
|
-
readonly validateEvent:
|
291
|
+
readonly validateEvent: boolean;
|
230
292
|
readonly inputStyle: StyleValue;
|
231
293
|
readonly rows: number;
|
232
294
|
readonly clearable: boolean;
|
@@ -257,13 +319,13 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
257
319
|
readonly disabled: boolean;
|
258
320
|
readonly id: string;
|
259
321
|
readonly type: string;
|
260
|
-
readonly modelValue:
|
261
|
-
readonly tabindex:
|
322
|
+
readonly modelValue: string | number | null | undefined;
|
323
|
+
readonly tabindex: string | number;
|
262
324
|
readonly readonly: boolean;
|
263
325
|
readonly autosize: InputAutoSize;
|
264
326
|
readonly autocomplete: string;
|
265
327
|
readonly containerRole: string;
|
266
|
-
readonly validateEvent:
|
328
|
+
readonly validateEvent: boolean;
|
267
329
|
readonly inputStyle: StyleValue;
|
268
330
|
readonly rows: number;
|
269
331
|
readonly clearable: boolean;
|
@@ -272,42 +334,71 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
272
334
|
readonly autofocus: boolean;
|
273
335
|
}> & Omit<Readonly< ExtractPropTypes<{
|
274
336
|
readonly ariaLabel: StringConstructor;
|
275
|
-
readonly id:
|
337
|
+
readonly id: {
|
338
|
+
readonly type: PropType<string>;
|
339
|
+
readonly required: false;
|
340
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
341
|
+
__epPropKey: true;
|
342
|
+
} & {
|
343
|
+
readonly default: undefined;
|
344
|
+
};
|
276
345
|
readonly size: {
|
277
|
-
readonly type: PropType<
|
346
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
278
347
|
readonly required: false;
|
279
348
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
280
349
|
__epPropKey: true;
|
281
350
|
};
|
282
351
|
readonly disabled: BooleanConstructor;
|
283
|
-
readonly modelValue:
|
352
|
+
readonly modelValue: {
|
353
|
+
readonly type: PropType<string | number | null | undefined>;
|
354
|
+
readonly required: false;
|
355
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
356
|
+
__epPropKey: true;
|
357
|
+
} & {
|
358
|
+
readonly default: "";
|
359
|
+
};
|
284
360
|
readonly maxlength: {
|
285
|
-
readonly type: PropType<
|
361
|
+
readonly type: PropType<string | number>;
|
286
362
|
readonly required: false;
|
287
363
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
288
364
|
__epPropKey: true;
|
289
365
|
};
|
290
366
|
readonly minlength: {
|
291
|
-
readonly type: PropType<
|
367
|
+
readonly type: PropType<string | number>;
|
368
|
+
readonly required: false;
|
369
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
370
|
+
__epPropKey: true;
|
371
|
+
};
|
372
|
+
readonly type: {
|
373
|
+
readonly type: PropType<string>;
|
292
374
|
readonly required: false;
|
293
375
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
294
376
|
__epPropKey: true;
|
377
|
+
} & {
|
378
|
+
readonly default: "text";
|
295
379
|
};
|
296
|
-
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
297
380
|
readonly resize: {
|
298
|
-
readonly type: PropType<
|
381
|
+
readonly type: PropType<"none" | "horizontal" | "vertical" | "both">;
|
382
|
+
readonly required: false;
|
383
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
384
|
+
__epPropKey: true;
|
385
|
+
};
|
386
|
+
readonly autosize: {
|
387
|
+
readonly type: PropType<InputAutoSize>;
|
388
|
+
readonly required: false;
|
389
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
390
|
+
__epPropKey: true;
|
391
|
+
} & {
|
392
|
+
readonly default: false;
|
393
|
+
};
|
394
|
+
readonly autocomplete: {
|
395
|
+
readonly type: PropType<string>;
|
299
396
|
readonly required: false;
|
300
397
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
301
398
|
__epPropKey: true;
|
399
|
+
} & {
|
400
|
+
readonly default: "off";
|
302
401
|
};
|
303
|
-
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
304
|
-
minRows?: number;
|
305
|
-
maxRows?: number;
|
306
|
-
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
307
|
-
minRows?: number;
|
308
|
-
maxRows?: number;
|
309
|
-
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
310
|
-
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
311
402
|
readonly formatter: {
|
312
403
|
readonly type: PropType<Function>;
|
313
404
|
readonly required: false;
|
@@ -337,23 +428,58 @@ declare const _default: DefineComponent<GridEditorProps, {
|
|
337
428
|
readonly showPassword: BooleanConstructor;
|
338
429
|
readonly showWordLimit: BooleanConstructor;
|
339
430
|
readonly suffixIcon: {
|
340
|
-
readonly type: PropType<
|
431
|
+
readonly type: PropType<string | Component>;
|
341
432
|
readonly required: false;
|
342
433
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
343
434
|
__epPropKey: true;
|
344
435
|
};
|
345
436
|
readonly prefixIcon: {
|
346
|
-
readonly type: PropType<
|
437
|
+
readonly type: PropType<string | Component>;
|
438
|
+
readonly required: false;
|
439
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
440
|
+
__epPropKey: true;
|
441
|
+
};
|
442
|
+
readonly containerRole: {
|
443
|
+
readonly type: PropType<string>;
|
444
|
+
readonly required: false;
|
445
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
446
|
+
__epPropKey: true;
|
447
|
+
} & {
|
448
|
+
readonly default: undefined;
|
449
|
+
};
|
450
|
+
readonly tabindex: {
|
451
|
+
readonly type: PropType<string | number>;
|
452
|
+
readonly required: false;
|
453
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
454
|
+
__epPropKey: true;
|
455
|
+
} & {
|
456
|
+
readonly default: 0;
|
457
|
+
};
|
458
|
+
readonly validateEvent: {
|
459
|
+
readonly type: PropType<boolean>;
|
347
460
|
readonly required: false;
|
348
461
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
349
462
|
__epPropKey: true;
|
463
|
+
} & {
|
464
|
+
readonly default: true;
|
465
|
+
};
|
466
|
+
readonly inputStyle: {
|
467
|
+
readonly type: PropType<StyleValue>;
|
468
|
+
readonly required: false;
|
469
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
470
|
+
__epPropKey: true;
|
471
|
+
} & {
|
472
|
+
readonly default: () => {};
|
350
473
|
};
|
351
|
-
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
352
|
-
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
353
|
-
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
354
|
-
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
355
474
|
readonly autofocus: BooleanConstructor;
|
356
|
-
readonly rows:
|
475
|
+
readonly rows: {
|
476
|
+
readonly type: PropType<number>;
|
477
|
+
readonly required: false;
|
478
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
479
|
+
__epPropKey: true;
|
480
|
+
} & {
|
481
|
+
readonly default: 2;
|
482
|
+
};
|
357
483
|
}>> & {
|
358
484
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
359
485
|
onChange?: ((value: string) => any) | undefined;
|