@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,9 +1,7 @@
|
|
1
1
|
import { VxeGlobalRendererHandles } from '../../types';
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType,
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, Ref, GlobalComponents, GlobalDirectives, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ShallowRef, ComputedRef, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
3
3
|
import { GridEditorProps } from '../../..';
|
4
|
-
import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
5
4
|
import { InputAutoSize } from 'element-plus';
|
6
|
-
import { Mutable } from 'element-plus/es/utils/typescript.mjs';
|
7
5
|
import { OnCleanup } from '@vue/reactivity';
|
8
6
|
export interface Props {
|
9
7
|
params: VxeGlobalRendererHandles.RenderEditParams;
|
@@ -32,13 +30,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
32
30
|
readonly disabled: boolean;
|
33
31
|
readonly id: string;
|
34
32
|
readonly type: string;
|
35
|
-
readonly modelValue:
|
36
|
-
readonly tabindex:
|
33
|
+
readonly modelValue: string | number | null | undefined;
|
34
|
+
readonly tabindex: string | number;
|
37
35
|
readonly readonly: boolean;
|
38
36
|
readonly autosize: InputAutoSize;
|
39
37
|
readonly autocomplete: string;
|
40
38
|
readonly containerRole: string;
|
41
|
-
readonly validateEvent:
|
39
|
+
readonly validateEvent: boolean;
|
42
40
|
readonly inputStyle: StyleValue;
|
43
41
|
readonly rows: number;
|
44
42
|
readonly clearable: boolean;
|
@@ -48,10 +46,10 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
48
46
|
}> & Omit<{
|
49
47
|
readonly type: string;
|
50
48
|
readonly disabled: boolean;
|
51
|
-
readonly tabindex:
|
49
|
+
readonly tabindex: string | number;
|
52
50
|
readonly autofocus: boolean;
|
53
|
-
readonly modelValue:
|
54
|
-
readonly validateEvent:
|
51
|
+
readonly modelValue: string | number | null | undefined;
|
52
|
+
readonly validateEvent: boolean;
|
55
53
|
readonly autosize: InputAutoSize;
|
56
54
|
readonly autocomplete: string;
|
57
55
|
readonly readonly: boolean;
|
@@ -60,18 +58,18 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
60
58
|
readonly showWordLimit: boolean;
|
61
59
|
readonly inputStyle: StyleValue;
|
62
60
|
readonly rows: number;
|
63
|
-
readonly size?:
|
61
|
+
readonly size?: ("" | "large" | "default" | "small") | undefined;
|
64
62
|
readonly form?: string | undefined;
|
65
63
|
readonly id?: string | undefined;
|
66
64
|
readonly ariaLabel?: string | undefined;
|
67
|
-
readonly resize?:
|
68
|
-
readonly maxlength?:
|
69
|
-
readonly minlength?:
|
65
|
+
readonly resize?: ("none" | "horizontal" | "vertical" | "both") | undefined;
|
66
|
+
readonly maxlength?: (string | number) | undefined;
|
67
|
+
readonly minlength?: (string | number) | undefined;
|
70
68
|
readonly formatter?: Function | undefined;
|
71
69
|
readonly parser?: Function | undefined;
|
72
70
|
readonly placeholder?: string | undefined;
|
73
|
-
readonly suffixIcon?:
|
74
|
-
readonly prefixIcon?:
|
71
|
+
readonly suffixIcon?: (string | Component) | undefined;
|
72
|
+
readonly prefixIcon?: (string | Component) | undefined;
|
75
73
|
readonly containerRole?: string | undefined;
|
76
74
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
77
75
|
onChange?: ((value: string) => any) | undefined | undefined;
|
@@ -102,42 +100,71 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
102
100
|
$el: any;
|
103
101
|
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
104
102
|
readonly ariaLabel: StringConstructor;
|
105
|
-
readonly id:
|
103
|
+
readonly id: {
|
104
|
+
readonly type: PropType<string>;
|
105
|
+
readonly required: false;
|
106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
107
|
+
__epPropKey: true;
|
108
|
+
} & {
|
109
|
+
readonly default: undefined;
|
110
|
+
};
|
106
111
|
readonly size: {
|
107
|
-
readonly type: PropType<
|
112
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
108
113
|
readonly required: false;
|
109
114
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
110
115
|
__epPropKey: true;
|
111
116
|
};
|
112
117
|
readonly disabled: BooleanConstructor;
|
113
|
-
readonly modelValue:
|
118
|
+
readonly modelValue: {
|
119
|
+
readonly type: PropType<string | number | null | undefined>;
|
120
|
+
readonly required: false;
|
121
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
122
|
+
__epPropKey: true;
|
123
|
+
} & {
|
124
|
+
readonly default: "";
|
125
|
+
};
|
114
126
|
readonly maxlength: {
|
115
|
-
readonly type: PropType<
|
127
|
+
readonly type: PropType<string | number>;
|
116
128
|
readonly required: false;
|
117
129
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
118
130
|
__epPropKey: true;
|
119
131
|
};
|
120
132
|
readonly minlength: {
|
121
|
-
readonly type: PropType<
|
133
|
+
readonly type: PropType<string | number>;
|
134
|
+
readonly required: false;
|
135
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
136
|
+
__epPropKey: true;
|
137
|
+
};
|
138
|
+
readonly type: {
|
139
|
+
readonly type: PropType<string>;
|
122
140
|
readonly required: false;
|
123
141
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
124
142
|
__epPropKey: true;
|
143
|
+
} & {
|
144
|
+
readonly default: "text";
|
125
145
|
};
|
126
|
-
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
127
146
|
readonly resize: {
|
128
|
-
readonly type: PropType<
|
147
|
+
readonly type: PropType<"none" | "horizontal" | "vertical" | "both">;
|
148
|
+
readonly required: false;
|
149
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
150
|
+
__epPropKey: true;
|
151
|
+
};
|
152
|
+
readonly autosize: {
|
153
|
+
readonly type: PropType<InputAutoSize>;
|
154
|
+
readonly required: false;
|
155
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
156
|
+
__epPropKey: true;
|
157
|
+
} & {
|
158
|
+
readonly default: false;
|
159
|
+
};
|
160
|
+
readonly autocomplete: {
|
161
|
+
readonly type: PropType<string>;
|
129
162
|
readonly required: false;
|
130
163
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
131
164
|
__epPropKey: true;
|
165
|
+
} & {
|
166
|
+
readonly default: "off";
|
132
167
|
};
|
133
|
-
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
134
|
-
minRows?: number;
|
135
|
-
maxRows?: number;
|
136
|
-
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
137
|
-
minRows?: number;
|
138
|
-
maxRows?: number;
|
139
|
-
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
140
|
-
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
141
168
|
readonly formatter: {
|
142
169
|
readonly type: PropType<Function>;
|
143
170
|
readonly required: false;
|
@@ -167,23 +194,58 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
167
194
|
readonly showPassword: BooleanConstructor;
|
168
195
|
readonly showWordLimit: BooleanConstructor;
|
169
196
|
readonly suffixIcon: {
|
170
|
-
readonly type: PropType<
|
197
|
+
readonly type: PropType<string | Component>;
|
171
198
|
readonly required: false;
|
172
199
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
173
200
|
__epPropKey: true;
|
174
201
|
};
|
175
202
|
readonly prefixIcon: {
|
176
|
-
readonly type: PropType<
|
203
|
+
readonly type: PropType<string | Component>;
|
204
|
+
readonly required: false;
|
205
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
206
|
+
__epPropKey: true;
|
207
|
+
};
|
208
|
+
readonly containerRole: {
|
209
|
+
readonly type: PropType<string>;
|
210
|
+
readonly required: false;
|
211
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
212
|
+
__epPropKey: true;
|
213
|
+
} & {
|
214
|
+
readonly default: undefined;
|
215
|
+
};
|
216
|
+
readonly tabindex: {
|
217
|
+
readonly type: PropType<string | number>;
|
218
|
+
readonly required: false;
|
219
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
220
|
+
__epPropKey: true;
|
221
|
+
} & {
|
222
|
+
readonly default: 0;
|
223
|
+
};
|
224
|
+
readonly validateEvent: {
|
225
|
+
readonly type: PropType<boolean>;
|
177
226
|
readonly required: false;
|
178
227
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
179
228
|
__epPropKey: true;
|
229
|
+
} & {
|
230
|
+
readonly default: true;
|
231
|
+
};
|
232
|
+
readonly inputStyle: {
|
233
|
+
readonly type: PropType<StyleValue>;
|
234
|
+
readonly required: false;
|
235
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
236
|
+
__epPropKey: true;
|
237
|
+
} & {
|
238
|
+
readonly default: () => {};
|
180
239
|
};
|
181
|
-
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
182
|
-
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
183
|
-
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
184
|
-
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
185
240
|
readonly autofocus: BooleanConstructor;
|
186
|
-
readonly rows:
|
241
|
+
readonly rows: {
|
242
|
+
readonly type: PropType<number>;
|
243
|
+
readonly required: false;
|
244
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
245
|
+
__epPropKey: true;
|
246
|
+
} & {
|
247
|
+
readonly default: 2;
|
248
|
+
};
|
187
249
|
}>> & {
|
188
250
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
189
251
|
onChange?: ((value: string) => any) | undefined;
|
@@ -226,13 +288,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
226
288
|
readonly disabled: boolean;
|
227
289
|
readonly id: string;
|
228
290
|
readonly type: string;
|
229
|
-
readonly modelValue:
|
230
|
-
readonly tabindex:
|
291
|
+
readonly modelValue: string | number | null | undefined;
|
292
|
+
readonly tabindex: string | number;
|
231
293
|
readonly readonly: boolean;
|
232
294
|
readonly autosize: InputAutoSize;
|
233
295
|
readonly autocomplete: string;
|
234
296
|
readonly containerRole: string;
|
235
|
-
readonly validateEvent:
|
297
|
+
readonly validateEvent: boolean;
|
236
298
|
readonly inputStyle: StyleValue;
|
237
299
|
readonly rows: number;
|
238
300
|
readonly clearable: boolean;
|
@@ -263,13 +325,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
263
325
|
readonly disabled: boolean;
|
264
326
|
readonly id: string;
|
265
327
|
readonly type: string;
|
266
|
-
readonly modelValue:
|
267
|
-
readonly tabindex:
|
328
|
+
readonly modelValue: string | number | null | undefined;
|
329
|
+
readonly tabindex: string | number;
|
268
330
|
readonly readonly: boolean;
|
269
331
|
readonly autosize: InputAutoSize;
|
270
332
|
readonly autocomplete: string;
|
271
333
|
readonly containerRole: string;
|
272
|
-
readonly validateEvent:
|
334
|
+
readonly validateEvent: boolean;
|
273
335
|
readonly inputStyle: StyleValue;
|
274
336
|
readonly rows: number;
|
275
337
|
readonly clearable: boolean;
|
@@ -278,42 +340,71 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
278
340
|
readonly autofocus: boolean;
|
279
341
|
}> & Omit<Readonly< ExtractPropTypes<{
|
280
342
|
readonly ariaLabel: StringConstructor;
|
281
|
-
readonly id:
|
343
|
+
readonly id: {
|
344
|
+
readonly type: PropType<string>;
|
345
|
+
readonly required: false;
|
346
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
347
|
+
__epPropKey: true;
|
348
|
+
} & {
|
349
|
+
readonly default: undefined;
|
350
|
+
};
|
282
351
|
readonly size: {
|
283
|
-
readonly type: PropType<
|
352
|
+
readonly type: PropType<"" | "large" | "default" | "small">;
|
284
353
|
readonly required: false;
|
285
354
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
286
355
|
__epPropKey: true;
|
287
356
|
};
|
288
357
|
readonly disabled: BooleanConstructor;
|
289
|
-
readonly modelValue:
|
358
|
+
readonly modelValue: {
|
359
|
+
readonly type: PropType<string | number | null | undefined>;
|
360
|
+
readonly required: false;
|
361
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
362
|
+
__epPropKey: true;
|
363
|
+
} & {
|
364
|
+
readonly default: "";
|
365
|
+
};
|
290
366
|
readonly maxlength: {
|
291
|
-
readonly type: PropType<
|
367
|
+
readonly type: PropType<string | number>;
|
292
368
|
readonly required: false;
|
293
369
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
294
370
|
__epPropKey: true;
|
295
371
|
};
|
296
372
|
readonly minlength: {
|
297
|
-
readonly type: PropType<
|
373
|
+
readonly type: PropType<string | number>;
|
374
|
+
readonly required: false;
|
375
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
376
|
+
__epPropKey: true;
|
377
|
+
};
|
378
|
+
readonly type: {
|
379
|
+
readonly type: PropType<string>;
|
298
380
|
readonly required: false;
|
299
381
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
300
382
|
__epPropKey: true;
|
383
|
+
} & {
|
384
|
+
readonly default: "text";
|
301
385
|
};
|
302
|
-
readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
303
386
|
readonly resize: {
|
304
|
-
readonly type: PropType<
|
387
|
+
readonly type: PropType<"none" | "horizontal" | "vertical" | "both">;
|
388
|
+
readonly required: false;
|
389
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
390
|
+
__epPropKey: true;
|
391
|
+
};
|
392
|
+
readonly autosize: {
|
393
|
+
readonly type: PropType<InputAutoSize>;
|
394
|
+
readonly required: false;
|
395
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
396
|
+
__epPropKey: true;
|
397
|
+
} & {
|
398
|
+
readonly default: false;
|
399
|
+
};
|
400
|
+
readonly autocomplete: {
|
401
|
+
readonly type: PropType<string>;
|
305
402
|
readonly required: false;
|
306
403
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
307
404
|
__epPropKey: true;
|
405
|
+
} & {
|
406
|
+
readonly default: "off";
|
308
407
|
};
|
309
|
-
readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
|
310
|
-
minRows?: number;
|
311
|
-
maxRows?: number;
|
312
|
-
}) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
|
313
|
-
minRows?: number;
|
314
|
-
maxRows?: number;
|
315
|
-
}) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
|
316
|
-
readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
317
408
|
readonly formatter: {
|
318
409
|
readonly type: PropType<Function>;
|
319
410
|
readonly required: false;
|
@@ -343,23 +434,58 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
343
434
|
readonly showPassword: BooleanConstructor;
|
344
435
|
readonly showWordLimit: BooleanConstructor;
|
345
436
|
readonly suffixIcon: {
|
346
|
-
readonly type: PropType<
|
437
|
+
readonly type: PropType<string | Component>;
|
347
438
|
readonly required: false;
|
348
439
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
349
440
|
__epPropKey: true;
|
350
441
|
};
|
351
442
|
readonly prefixIcon: {
|
352
|
-
readonly type: PropType<
|
443
|
+
readonly type: PropType<string | Component>;
|
444
|
+
readonly required: false;
|
445
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
446
|
+
__epPropKey: true;
|
447
|
+
};
|
448
|
+
readonly containerRole: {
|
449
|
+
readonly type: PropType<string>;
|
450
|
+
readonly required: false;
|
451
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
452
|
+
__epPropKey: true;
|
453
|
+
} & {
|
454
|
+
readonly default: undefined;
|
455
|
+
};
|
456
|
+
readonly tabindex: {
|
457
|
+
readonly type: PropType<string | number>;
|
458
|
+
readonly required: false;
|
459
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
460
|
+
__epPropKey: true;
|
461
|
+
} & {
|
462
|
+
readonly default: 0;
|
463
|
+
};
|
464
|
+
readonly validateEvent: {
|
465
|
+
readonly type: PropType<boolean>;
|
353
466
|
readonly required: false;
|
354
467
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
355
468
|
__epPropKey: true;
|
469
|
+
} & {
|
470
|
+
readonly default: true;
|
471
|
+
};
|
472
|
+
readonly inputStyle: {
|
473
|
+
readonly type: PropType<StyleValue>;
|
474
|
+
readonly required: false;
|
475
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
476
|
+
__epPropKey: true;
|
477
|
+
} & {
|
478
|
+
readonly default: () => {};
|
356
479
|
};
|
357
|
-
readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
358
|
-
readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
359
|
-
readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
360
|
-
readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
|
361
480
|
readonly autofocus: BooleanConstructor;
|
362
|
-
readonly rows:
|
481
|
+
readonly rows: {
|
482
|
+
readonly type: PropType<number>;
|
483
|
+
readonly required: false;
|
484
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
485
|
+
__epPropKey: true;
|
486
|
+
} & {
|
487
|
+
readonly default: 2;
|
488
|
+
};
|
363
489
|
}>> & {
|
364
490
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
365
491
|
onChange?: ((value: string) => any) | undefined;
|