@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
@@ -4,8 +4,6 @@ import { IconParam } from '../icon';
|
|
4
4
|
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
5
5
|
import { ActionMode } from '../action';
|
6
6
|
import { ElTooltipProps, BadgeProps, TooltipTriggerType, PopperEffect, ButtonProps } from 'element-plus';
|
7
|
-
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
8
|
-
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
9
7
|
import { BaseSize, BaseType } from '../shared';
|
10
8
|
declare function __VLS_template(): {
|
11
9
|
attrs: Partial<{}>;
|
@@ -101,43 +99,148 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
101
99
|
};
|
102
100
|
dropdown: {
|
103
101
|
type: PropType<Partial< ExtractPropTypes<{
|
104
|
-
readonly trigger:
|
105
|
-
|
102
|
+
readonly trigger: {
|
103
|
+
readonly type: PropType< TooltipTriggerType | TooltipTriggerType[]>;
|
104
|
+
readonly required: false;
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
106
|
+
__epPropKey: true;
|
107
|
+
} & {
|
108
|
+
readonly default: "hover";
|
109
|
+
};
|
110
|
+
readonly triggerKeys: {
|
111
|
+
readonly type: PropType<string[]>;
|
112
|
+
readonly required: false;
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
114
|
+
__epPropKey: true;
|
115
|
+
} & {
|
116
|
+
readonly default: () => string[];
|
117
|
+
};
|
106
118
|
readonly effect: {
|
107
119
|
readonly default: "light";
|
108
|
-
readonly type: PropType<
|
120
|
+
readonly type: PropType<PopperEffect>;
|
109
121
|
readonly required: false;
|
110
122
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
111
123
|
readonly __epPropKey: true;
|
112
124
|
};
|
113
125
|
readonly type: {
|
114
|
-
readonly type: PropType<
|
126
|
+
readonly type: PropType<"" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text">;
|
127
|
+
readonly required: false;
|
128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
129
|
+
__epPropKey: true;
|
130
|
+
};
|
131
|
+
readonly placement: {
|
132
|
+
readonly type: PropType<any>;
|
133
|
+
readonly required: false;
|
134
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
135
|
+
__epPropKey: true;
|
136
|
+
} & {
|
137
|
+
readonly default: "bottom";
|
138
|
+
};
|
139
|
+
readonly popperOptions: {
|
140
|
+
readonly type: PropType<any>;
|
115
141
|
readonly required: false;
|
116
142
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
117
143
|
__epPropKey: true;
|
144
|
+
} & {
|
145
|
+
readonly default: () => {};
|
118
146
|
};
|
119
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
120
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
121
147
|
readonly id: StringConstructor;
|
122
|
-
readonly size:
|
148
|
+
readonly size: {
|
149
|
+
readonly type: PropType<string>;
|
150
|
+
readonly required: false;
|
151
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
152
|
+
__epPropKey: true;
|
153
|
+
} & {
|
154
|
+
readonly default: "";
|
155
|
+
};
|
123
156
|
readonly splitButton: BooleanConstructor;
|
124
|
-
readonly hideOnClick:
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
157
|
+
readonly hideOnClick: {
|
158
|
+
readonly type: PropType<boolean>;
|
159
|
+
readonly required: false;
|
160
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
161
|
+
__epPropKey: true;
|
162
|
+
} & {
|
163
|
+
readonly default: true;
|
164
|
+
};
|
165
|
+
readonly loop: {
|
166
|
+
readonly type: PropType<boolean>;
|
167
|
+
readonly required: false;
|
168
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
169
|
+
__epPropKey: true;
|
170
|
+
} & {
|
171
|
+
readonly default: true;
|
172
|
+
};
|
173
|
+
readonly showTimeout: {
|
174
|
+
readonly type: PropType<number>;
|
175
|
+
readonly required: false;
|
176
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
177
|
+
__epPropKey: true;
|
178
|
+
} & {
|
179
|
+
readonly default: 150;
|
180
|
+
};
|
181
|
+
readonly hideTimeout: {
|
182
|
+
readonly type: PropType<number>;
|
183
|
+
readonly required: false;
|
184
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
185
|
+
__epPropKey: true;
|
186
|
+
} & {
|
187
|
+
readonly default: 150;
|
188
|
+
};
|
189
|
+
readonly tabindex: {
|
190
|
+
readonly type: PropType<string | number>;
|
191
|
+
readonly required: false;
|
192
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
193
|
+
__epPropKey: true;
|
194
|
+
} & {
|
195
|
+
readonly default: 0;
|
196
|
+
};
|
197
|
+
readonly maxHeight: {
|
198
|
+
readonly type: PropType<string | number>;
|
199
|
+
readonly required: false;
|
200
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
201
|
+
__epPropKey: true;
|
202
|
+
} & {
|
203
|
+
readonly default: "";
|
204
|
+
};
|
205
|
+
readonly popperClass: {
|
206
|
+
readonly type: PropType<string>;
|
207
|
+
readonly required: false;
|
208
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
209
|
+
__epPropKey: true;
|
210
|
+
} & {
|
211
|
+
readonly default: "";
|
212
|
+
};
|
131
213
|
readonly disabled: BooleanConstructor;
|
132
|
-
readonly role:
|
214
|
+
readonly role: {
|
215
|
+
readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
|
216
|
+
readonly required: false;
|
217
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
218
|
+
__epPropKey: true;
|
219
|
+
} & {
|
220
|
+
readonly default: "menu";
|
221
|
+
};
|
133
222
|
readonly buttonProps: {
|
134
223
|
readonly type: PropType<Partial< ButtonProps>>;
|
135
224
|
readonly required: false;
|
136
225
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
137
226
|
__epPropKey: true;
|
138
227
|
};
|
139
|
-
readonly teleported:
|
140
|
-
|
228
|
+
readonly teleported: {
|
229
|
+
readonly type: PropType<boolean>;
|
230
|
+
readonly required: false;
|
231
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
232
|
+
__epPropKey: true;
|
233
|
+
} & {
|
234
|
+
readonly default: true;
|
235
|
+
};
|
236
|
+
readonly persistent: {
|
237
|
+
readonly type: PropType<boolean>;
|
238
|
+
readonly required: false;
|
239
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
240
|
+
__epPropKey: true;
|
241
|
+
} & {
|
242
|
+
readonly default: true;
|
243
|
+
};
|
141
244
|
}>>>;
|
142
245
|
};
|
143
246
|
button: {
|
@@ -208,43 +311,148 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
208
311
|
};
|
209
312
|
dropdown: {
|
210
313
|
type: PropType<Partial< ExtractPropTypes<{
|
211
|
-
readonly trigger:
|
212
|
-
|
314
|
+
readonly trigger: {
|
315
|
+
readonly type: PropType< TooltipTriggerType | TooltipTriggerType[]>;
|
316
|
+
readonly required: false;
|
317
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
318
|
+
__epPropKey: true;
|
319
|
+
} & {
|
320
|
+
readonly default: "hover";
|
321
|
+
};
|
322
|
+
readonly triggerKeys: {
|
323
|
+
readonly type: PropType<string[]>;
|
324
|
+
readonly required: false;
|
325
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
326
|
+
__epPropKey: true;
|
327
|
+
} & {
|
328
|
+
readonly default: () => string[];
|
329
|
+
};
|
213
330
|
readonly effect: {
|
214
331
|
readonly default: "light";
|
215
|
-
readonly type: PropType<
|
332
|
+
readonly type: PropType<PopperEffect>;
|
216
333
|
readonly required: false;
|
217
334
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
218
335
|
readonly __epPropKey: true;
|
219
336
|
};
|
220
337
|
readonly type: {
|
221
|
-
readonly type: PropType<
|
338
|
+
readonly type: PropType<"" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text">;
|
339
|
+
readonly required: false;
|
340
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
341
|
+
__epPropKey: true;
|
342
|
+
};
|
343
|
+
readonly placement: {
|
344
|
+
readonly type: PropType<any>;
|
345
|
+
readonly required: false;
|
346
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
347
|
+
__epPropKey: true;
|
348
|
+
} & {
|
349
|
+
readonly default: "bottom";
|
350
|
+
};
|
351
|
+
readonly popperOptions: {
|
352
|
+
readonly type: PropType<any>;
|
222
353
|
readonly required: false;
|
223
354
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
224
355
|
__epPropKey: true;
|
356
|
+
} & {
|
357
|
+
readonly default: () => {};
|
225
358
|
};
|
226
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
227
|
-
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
228
359
|
readonly id: StringConstructor;
|
229
|
-
readonly size:
|
360
|
+
readonly size: {
|
361
|
+
readonly type: PropType<string>;
|
362
|
+
readonly required: false;
|
363
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
364
|
+
__epPropKey: true;
|
365
|
+
} & {
|
366
|
+
readonly default: "";
|
367
|
+
};
|
230
368
|
readonly splitButton: BooleanConstructor;
|
231
|
-
readonly hideOnClick:
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
369
|
+
readonly hideOnClick: {
|
370
|
+
readonly type: PropType<boolean>;
|
371
|
+
readonly required: false;
|
372
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
373
|
+
__epPropKey: true;
|
374
|
+
} & {
|
375
|
+
readonly default: true;
|
376
|
+
};
|
377
|
+
readonly loop: {
|
378
|
+
readonly type: PropType<boolean>;
|
379
|
+
readonly required: false;
|
380
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
381
|
+
__epPropKey: true;
|
382
|
+
} & {
|
383
|
+
readonly default: true;
|
384
|
+
};
|
385
|
+
readonly showTimeout: {
|
386
|
+
readonly type: PropType<number>;
|
387
|
+
readonly required: false;
|
388
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
389
|
+
__epPropKey: true;
|
390
|
+
} & {
|
391
|
+
readonly default: 150;
|
392
|
+
};
|
393
|
+
readonly hideTimeout: {
|
394
|
+
readonly type: PropType<number>;
|
395
|
+
readonly required: false;
|
396
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
397
|
+
__epPropKey: true;
|
398
|
+
} & {
|
399
|
+
readonly default: 150;
|
400
|
+
};
|
401
|
+
readonly tabindex: {
|
402
|
+
readonly type: PropType<string | number>;
|
403
|
+
readonly required: false;
|
404
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
405
|
+
__epPropKey: true;
|
406
|
+
} & {
|
407
|
+
readonly default: 0;
|
408
|
+
};
|
409
|
+
readonly maxHeight: {
|
410
|
+
readonly type: PropType<string | number>;
|
411
|
+
readonly required: false;
|
412
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
413
|
+
__epPropKey: true;
|
414
|
+
} & {
|
415
|
+
readonly default: "";
|
416
|
+
};
|
417
|
+
readonly popperClass: {
|
418
|
+
readonly type: PropType<string>;
|
419
|
+
readonly required: false;
|
420
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
421
|
+
__epPropKey: true;
|
422
|
+
} & {
|
423
|
+
readonly default: "";
|
424
|
+
};
|
238
425
|
readonly disabled: BooleanConstructor;
|
239
|
-
readonly role:
|
426
|
+
readonly role: {
|
427
|
+
readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
|
428
|
+
readonly required: false;
|
429
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
430
|
+
__epPropKey: true;
|
431
|
+
} & {
|
432
|
+
readonly default: "menu";
|
433
|
+
};
|
240
434
|
readonly buttonProps: {
|
241
435
|
readonly type: PropType<Partial< ButtonProps>>;
|
242
436
|
readonly required: false;
|
243
437
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
244
438
|
__epPropKey: true;
|
245
439
|
};
|
246
|
-
readonly teleported:
|
247
|
-
|
440
|
+
readonly teleported: {
|
441
|
+
readonly type: PropType<boolean>;
|
442
|
+
readonly required: false;
|
443
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
444
|
+
__epPropKey: true;
|
445
|
+
} & {
|
446
|
+
readonly default: true;
|
447
|
+
};
|
448
|
+
readonly persistent: {
|
449
|
+
readonly type: PropType<boolean>;
|
450
|
+
readonly required: false;
|
451
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
452
|
+
__epPropKey: true;
|
453
|
+
} & {
|
454
|
+
readonly default: true;
|
455
|
+
};
|
248
456
|
}>>>;
|
249
457
|
};
|
250
458
|
button: {
|
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/ui
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.12.
|
5
|
+
* @version 0.12.17
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.17";
|