@vtj/ui 0.8.2 → 0.8.3
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 +1256 -1246
- package/dist/index.umd.js +7 -7
- package/package.json +5 -5
- package/types/components/action/Action.d.ts +373 -0
- package/types/components/action/Trigger.d.ts +7 -0
- package/types/components/action/types.d.ts +5 -0
- package/types/components/action-bar/ActionBar.d.ts +18 -0
- package/types/components/data-item/DataItem.d.ts +12 -0
- package/types/components/dialog/Dialog.d.ts +1 -1
- package/types/components/mask/Mask.d.ts +12 -0
- package/types/components/tabs/Tabs.d.ts +12 -0
- package/types/version.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "vue-tsc && vite build && npm run build:umd",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ckeditor/ckeditor5-build-classic": "~41.3.0",
|
|
18
18
|
"@ckeditor/ckeditor5-vue": "~5.1.0",
|
|
19
|
-
"@vtj/icons": "^0.8.
|
|
20
|
-
"@vtj/utils": "^0.8.
|
|
19
|
+
"@vtj/icons": "^0.8.3",
|
|
20
|
+
"@vtj/utils": "^0.8.3",
|
|
21
21
|
"@vueuse/core": "~10.9.0",
|
|
22
22
|
"echarts": "~5.5.0",
|
|
23
23
|
"element-plus": "~2.7.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/qrcode": "^1.5.5",
|
|
27
|
-
"@vtj/cli": "^0.8.
|
|
27
|
+
"@vtj/cli": "^0.8.2",
|
|
28
28
|
"qrcode": "~1.5.3",
|
|
29
29
|
"vue": "~3.4.15",
|
|
30
30
|
"vue-router": "~4.3.0"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "5b5cc8b02b8f367591e4bee47a7d7ff54a01981b"
|
|
51
51
|
}
|
|
@@ -90,6 +90,9 @@ declare const _default: DefineComponent<{
|
|
|
90
90
|
circle: {
|
|
91
91
|
type: BooleanConstructor;
|
|
92
92
|
};
|
|
93
|
+
draggable: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
};
|
|
93
96
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
94
97
|
click: (props: Readonly<Partial< ExtractPropTypes<{
|
|
95
98
|
name: {
|
|
@@ -177,8 +180,191 @@ declare const _default: DefineComponent<{
|
|
|
177
180
|
circle: {
|
|
178
181
|
type: BooleanConstructor;
|
|
179
182
|
};
|
|
183
|
+
draggable: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
};
|
|
180
186
|
}>>>) => void;
|
|
181
187
|
command: (item: ActionMenuItem) => void;
|
|
188
|
+
dragstart: (props: Readonly<Partial< ExtractPropTypes<{
|
|
189
|
+
name: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
};
|
|
192
|
+
label: {
|
|
193
|
+
type: StringConstructor;
|
|
194
|
+
};
|
|
195
|
+
value: {
|
|
196
|
+
type: PropType<unknown>;
|
|
197
|
+
};
|
|
198
|
+
icon: {
|
|
199
|
+
type: PropType<IconParam>;
|
|
200
|
+
};
|
|
201
|
+
mode: {
|
|
202
|
+
type: PropType<ActionMode>;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
menus: {
|
|
206
|
+
type: PropType< ActionMenuItem[]>;
|
|
207
|
+
};
|
|
208
|
+
tooltip: {
|
|
209
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
|
210
|
+
};
|
|
211
|
+
badge: {
|
|
212
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
|
213
|
+
};
|
|
214
|
+
dropdown: {
|
|
215
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
216
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
217
|
+
readonly effect: {
|
|
218
|
+
readonly default: "light";
|
|
219
|
+
readonly type: PropType<string>;
|
|
220
|
+
readonly required: false;
|
|
221
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
222
|
+
readonly __epPropKey: true;
|
|
223
|
+
};
|
|
224
|
+
readonly type: {
|
|
225
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
226
|
+
readonly required: false;
|
|
227
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
228
|
+
__epPropKey: true;
|
|
229
|
+
};
|
|
230
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
231
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
232
|
+
readonly id: StringConstructor;
|
|
233
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
234
|
+
readonly splitButton: BooleanConstructor;
|
|
235
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
236
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
237
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
238
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
239
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
240
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
241
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
242
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
243
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
244
|
+
readonly buttonProps: {
|
|
245
|
+
readonly type: PropType<ButtonProps>;
|
|
246
|
+
readonly required: false;
|
|
247
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
248
|
+
__epPropKey: true;
|
|
249
|
+
};
|
|
250
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
251
|
+
}>>>;
|
|
252
|
+
};
|
|
253
|
+
button: {
|
|
254
|
+
type: PropType<Partial< ButtonProps>>;
|
|
255
|
+
};
|
|
256
|
+
disabled: {
|
|
257
|
+
type: PropType<boolean | (() => boolean)>;
|
|
258
|
+
};
|
|
259
|
+
size: {
|
|
260
|
+
type: PropType<BaseSize>;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
type: {
|
|
264
|
+
type: PropType<BaseType>;
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
background: {
|
|
268
|
+
type: PropType<"hover" | "always" | "none">;
|
|
269
|
+
default: string;
|
|
270
|
+
};
|
|
271
|
+
circle: {
|
|
272
|
+
type: BooleanConstructor;
|
|
273
|
+
};
|
|
274
|
+
draggable: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
};
|
|
277
|
+
}>>>, e: any) => void;
|
|
278
|
+
dragend: (props: Readonly<Partial< ExtractPropTypes<{
|
|
279
|
+
name: {
|
|
280
|
+
type: StringConstructor;
|
|
281
|
+
};
|
|
282
|
+
label: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
};
|
|
285
|
+
value: {
|
|
286
|
+
type: PropType<unknown>;
|
|
287
|
+
};
|
|
288
|
+
icon: {
|
|
289
|
+
type: PropType<IconParam>;
|
|
290
|
+
};
|
|
291
|
+
mode: {
|
|
292
|
+
type: PropType<ActionMode>;
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
menus: {
|
|
296
|
+
type: PropType< ActionMenuItem[]>;
|
|
297
|
+
};
|
|
298
|
+
tooltip: {
|
|
299
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
|
300
|
+
};
|
|
301
|
+
badge: {
|
|
302
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
|
303
|
+
};
|
|
304
|
+
dropdown: {
|
|
305
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
306
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
307
|
+
readonly effect: {
|
|
308
|
+
readonly default: "light";
|
|
309
|
+
readonly type: PropType<string>;
|
|
310
|
+
readonly required: false;
|
|
311
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
312
|
+
readonly __epPropKey: true;
|
|
313
|
+
};
|
|
314
|
+
readonly type: {
|
|
315
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
316
|
+
readonly required: false;
|
|
317
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
318
|
+
__epPropKey: true;
|
|
319
|
+
};
|
|
320
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
321
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
322
|
+
readonly id: StringConstructor;
|
|
323
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
324
|
+
readonly splitButton: BooleanConstructor;
|
|
325
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
326
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
327
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
328
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
329
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
330
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
331
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
332
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
333
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
334
|
+
readonly buttonProps: {
|
|
335
|
+
readonly type: PropType<ButtonProps>;
|
|
336
|
+
readonly required: false;
|
|
337
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
338
|
+
__epPropKey: true;
|
|
339
|
+
};
|
|
340
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
341
|
+
}>>>;
|
|
342
|
+
};
|
|
343
|
+
button: {
|
|
344
|
+
type: PropType<Partial< ButtonProps>>;
|
|
345
|
+
};
|
|
346
|
+
disabled: {
|
|
347
|
+
type: PropType<boolean | (() => boolean)>;
|
|
348
|
+
};
|
|
349
|
+
size: {
|
|
350
|
+
type: PropType<BaseSize>;
|
|
351
|
+
default: string;
|
|
352
|
+
};
|
|
353
|
+
type: {
|
|
354
|
+
type: PropType<BaseType>;
|
|
355
|
+
default: string;
|
|
356
|
+
};
|
|
357
|
+
background: {
|
|
358
|
+
type: PropType<"hover" | "always" | "none">;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
circle: {
|
|
362
|
+
type: BooleanConstructor;
|
|
363
|
+
};
|
|
364
|
+
draggable: {
|
|
365
|
+
type: BooleanConstructor;
|
|
366
|
+
};
|
|
367
|
+
}>>>, e: any) => void;
|
|
182
368
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
183
369
|
name: {
|
|
184
370
|
type: StringConstructor;
|
|
@@ -265,7 +451,190 @@ declare const _default: DefineComponent<{
|
|
|
265
451
|
circle: {
|
|
266
452
|
type: BooleanConstructor;
|
|
267
453
|
};
|
|
454
|
+
draggable: {
|
|
455
|
+
type: BooleanConstructor;
|
|
456
|
+
};
|
|
268
457
|
}>> & {
|
|
458
|
+
onDragend?: ((props: Readonly<Partial< ExtractPropTypes<{
|
|
459
|
+
name: {
|
|
460
|
+
type: StringConstructor;
|
|
461
|
+
};
|
|
462
|
+
label: {
|
|
463
|
+
type: StringConstructor;
|
|
464
|
+
};
|
|
465
|
+
value: {
|
|
466
|
+
type: PropType<unknown>;
|
|
467
|
+
};
|
|
468
|
+
icon: {
|
|
469
|
+
type: PropType<IconParam>;
|
|
470
|
+
};
|
|
471
|
+
mode: {
|
|
472
|
+
type: PropType<ActionMode>;
|
|
473
|
+
default: string;
|
|
474
|
+
};
|
|
475
|
+
menus: {
|
|
476
|
+
type: PropType< ActionMenuItem[]>;
|
|
477
|
+
};
|
|
478
|
+
tooltip: {
|
|
479
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
|
480
|
+
};
|
|
481
|
+
badge: {
|
|
482
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
|
483
|
+
};
|
|
484
|
+
dropdown: {
|
|
485
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
486
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
487
|
+
readonly effect: {
|
|
488
|
+
readonly default: "light";
|
|
489
|
+
readonly type: PropType<string>;
|
|
490
|
+
readonly required: false;
|
|
491
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
492
|
+
readonly __epPropKey: true;
|
|
493
|
+
};
|
|
494
|
+
readonly type: {
|
|
495
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
496
|
+
readonly required: false;
|
|
497
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
498
|
+
__epPropKey: true;
|
|
499
|
+
};
|
|
500
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
501
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
502
|
+
readonly id: StringConstructor;
|
|
503
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
504
|
+
readonly splitButton: BooleanConstructor;
|
|
505
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
506
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
507
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
508
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
509
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
510
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
511
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
512
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
513
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
514
|
+
readonly buttonProps: {
|
|
515
|
+
readonly type: PropType<ButtonProps>;
|
|
516
|
+
readonly required: false;
|
|
517
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
518
|
+
__epPropKey: true;
|
|
519
|
+
};
|
|
520
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
521
|
+
}>>>;
|
|
522
|
+
};
|
|
523
|
+
button: {
|
|
524
|
+
type: PropType<Partial< ButtonProps>>;
|
|
525
|
+
};
|
|
526
|
+
disabled: {
|
|
527
|
+
type: PropType<boolean | (() => boolean)>;
|
|
528
|
+
};
|
|
529
|
+
size: {
|
|
530
|
+
type: PropType<BaseSize>;
|
|
531
|
+
default: string;
|
|
532
|
+
};
|
|
533
|
+
type: {
|
|
534
|
+
type: PropType<BaseType>;
|
|
535
|
+
default: string;
|
|
536
|
+
};
|
|
537
|
+
background: {
|
|
538
|
+
type: PropType<"hover" | "always" | "none">;
|
|
539
|
+
default: string;
|
|
540
|
+
};
|
|
541
|
+
circle: {
|
|
542
|
+
type: BooleanConstructor;
|
|
543
|
+
};
|
|
544
|
+
draggable: {
|
|
545
|
+
type: BooleanConstructor;
|
|
546
|
+
};
|
|
547
|
+
}>>>, e: any) => any) | undefined;
|
|
548
|
+
onDragstart?: ((props: Readonly<Partial< ExtractPropTypes<{
|
|
549
|
+
name: {
|
|
550
|
+
type: StringConstructor;
|
|
551
|
+
};
|
|
552
|
+
label: {
|
|
553
|
+
type: StringConstructor;
|
|
554
|
+
};
|
|
555
|
+
value: {
|
|
556
|
+
type: PropType<unknown>;
|
|
557
|
+
};
|
|
558
|
+
icon: {
|
|
559
|
+
type: PropType<IconParam>;
|
|
560
|
+
};
|
|
561
|
+
mode: {
|
|
562
|
+
type: PropType<ActionMode>;
|
|
563
|
+
default: string;
|
|
564
|
+
};
|
|
565
|
+
menus: {
|
|
566
|
+
type: PropType< ActionMenuItem[]>;
|
|
567
|
+
};
|
|
568
|
+
tooltip: {
|
|
569
|
+
type: PropType<string | Partial< ElTooltipProps>>;
|
|
570
|
+
};
|
|
571
|
+
badge: {
|
|
572
|
+
type: PropType<string | number | Partial< BadgeProps>>;
|
|
573
|
+
};
|
|
574
|
+
dropdown: {
|
|
575
|
+
type: PropType<Partial< ExtractPropTypes<{
|
|
576
|
+
readonly trigger: EpPropFinalized<(new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>) | ((new (...args: any[]) => "hover" | "focus" | "click" | "contextmenu" | TooltipTriggerType[]) | (() => Arrayable<TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
577
|
+
readonly effect: {
|
|
578
|
+
readonly default: "light";
|
|
579
|
+
readonly type: PropType<string>;
|
|
580
|
+
readonly required: false;
|
|
581
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
582
|
+
readonly __epPropKey: true;
|
|
583
|
+
};
|
|
584
|
+
readonly type: {
|
|
585
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>) | ((new (...args: any[]) => "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text") | (() => EpPropMergeType<StringConstructor, "" | "success" | "warning" | "info" | "primary" | "danger" | "default" | "text", unknown>))[], unknown, unknown>>;
|
|
586
|
+
readonly required: false;
|
|
587
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
588
|
+
__epPropKey: true;
|
|
589
|
+
};
|
|
590
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => any) | (() => Placement) | ((new (...args: any[]) => any) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
591
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Options) | (() => Options) | ((new (...args: any[]) => Options) | (() => Options))[], unknown, unknown, () => {}, boolean>;
|
|
592
|
+
readonly id: StringConstructor;
|
|
593
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
594
|
+
readonly splitButton: BooleanConstructor;
|
|
595
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
596
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
597
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
598
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
599
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
600
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
601
|
+
readonly popperClass: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
602
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
603
|
+
readonly role: EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
604
|
+
readonly buttonProps: {
|
|
605
|
+
readonly type: PropType<ButtonProps>;
|
|
606
|
+
readonly required: false;
|
|
607
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
608
|
+
__epPropKey: true;
|
|
609
|
+
};
|
|
610
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
611
|
+
}>>>;
|
|
612
|
+
};
|
|
613
|
+
button: {
|
|
614
|
+
type: PropType<Partial< ButtonProps>>;
|
|
615
|
+
};
|
|
616
|
+
disabled: {
|
|
617
|
+
type: PropType<boolean | (() => boolean)>;
|
|
618
|
+
};
|
|
619
|
+
size: {
|
|
620
|
+
type: PropType<BaseSize>;
|
|
621
|
+
default: string;
|
|
622
|
+
};
|
|
623
|
+
type: {
|
|
624
|
+
type: PropType<BaseType>;
|
|
625
|
+
default: string;
|
|
626
|
+
};
|
|
627
|
+
background: {
|
|
628
|
+
type: PropType<"hover" | "always" | "none">;
|
|
629
|
+
default: string;
|
|
630
|
+
};
|
|
631
|
+
circle: {
|
|
632
|
+
type: BooleanConstructor;
|
|
633
|
+
};
|
|
634
|
+
draggable: {
|
|
635
|
+
type: BooleanConstructor;
|
|
636
|
+
};
|
|
637
|
+
}>>>, e: any) => any) | undefined;
|
|
269
638
|
onClick?: ((props: Readonly<Partial< ExtractPropTypes<{
|
|
270
639
|
name: {
|
|
271
640
|
type: StringConstructor;
|
|
@@ -352,6 +721,9 @@ declare const _default: DefineComponent<{
|
|
|
352
721
|
circle: {
|
|
353
722
|
type: BooleanConstructor;
|
|
354
723
|
};
|
|
724
|
+
draggable: {
|
|
725
|
+
type: BooleanConstructor;
|
|
726
|
+
};
|
|
355
727
|
}>>>) => any) | undefined;
|
|
356
728
|
onCommand?: ((item: ActionMenuItem) => any) | undefined;
|
|
357
729
|
}, {
|
|
@@ -360,5 +732,6 @@ declare const _default: DefineComponent<{
|
|
|
360
732
|
background: "hover" | "always" | "none";
|
|
361
733
|
circle: boolean;
|
|
362
734
|
mode: ActionMode;
|
|
735
|
+
draggable: boolean;
|
|
363
736
|
}, {}>;
|
|
364
737
|
export default _default;
|
|
@@ -90,6 +90,9 @@ declare const _default: DefineComponent<{
|
|
|
90
90
|
circle: {
|
|
91
91
|
type: BooleanConstructor;
|
|
92
92
|
};
|
|
93
|
+
draggable: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
};
|
|
93
96
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
94
97
|
click: (...args: any[]) => void;
|
|
95
98
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -178,6 +181,9 @@ declare const _default: DefineComponent<{
|
|
|
178
181
|
circle: {
|
|
179
182
|
type: BooleanConstructor;
|
|
180
183
|
};
|
|
184
|
+
draggable: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
};
|
|
181
187
|
}>> & {
|
|
182
188
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
183
189
|
}, {
|
|
@@ -186,5 +192,6 @@ declare const _default: DefineComponent<{
|
|
|
186
192
|
background: "hover" | "always" | "none";
|
|
187
193
|
circle: boolean;
|
|
188
194
|
mode: ActionMode;
|
|
195
|
+
draggable: boolean;
|
|
189
196
|
}, {}>;
|
|
190
197
|
export default _default;
|
|
@@ -146,9 +146,14 @@ export declare const actionProps: {
|
|
|
146
146
|
circle: {
|
|
147
147
|
type: BooleanConstructor;
|
|
148
148
|
};
|
|
149
|
+
draggable: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
};
|
|
149
152
|
};
|
|
150
153
|
export type ActionProps = ComponentPropsType<typeof actionProps>;
|
|
151
154
|
export type ActionEmits = {
|
|
152
155
|
click: [props: ActionProps];
|
|
153
156
|
command: [item: ActionMenuItem];
|
|
157
|
+
dragstart: [props: ActionProps, e: any];
|
|
158
|
+
dragend: [props: ActionProps, e: any];
|
|
154
159
|
};
|
|
@@ -116,6 +116,9 @@ declare const _default: DefineComponent<{
|
|
|
116
116
|
circle: {
|
|
117
117
|
type: BooleanConstructor;
|
|
118
118
|
};
|
|
119
|
+
draggable: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
};
|
|
119
122
|
}>>>) => boolean)>;
|
|
120
123
|
};
|
|
121
124
|
tooltip: {
|
|
@@ -253,6 +256,9 @@ declare const _default: DefineComponent<{
|
|
|
253
256
|
circle: {
|
|
254
257
|
type: BooleanConstructor;
|
|
255
258
|
};
|
|
259
|
+
draggable: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
};
|
|
256
262
|
}>>>) => void;
|
|
257
263
|
command: (action: Readonly<Partial< ExtractPropTypes<{
|
|
258
264
|
name: {
|
|
@@ -340,6 +346,9 @@ declare const _default: DefineComponent<{
|
|
|
340
346
|
circle: {
|
|
341
347
|
type: BooleanConstructor;
|
|
342
348
|
};
|
|
349
|
+
draggable: {
|
|
350
|
+
type: BooleanConstructor;
|
|
351
|
+
};
|
|
343
352
|
}>>>, menu: ActionMenuItem) => void;
|
|
344
353
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
345
354
|
items: {
|
|
@@ -451,6 +460,9 @@ declare const _default: DefineComponent<{
|
|
|
451
460
|
circle: {
|
|
452
461
|
type: BooleanConstructor;
|
|
453
462
|
};
|
|
463
|
+
draggable: {
|
|
464
|
+
type: BooleanConstructor;
|
|
465
|
+
};
|
|
454
466
|
}>>>) => boolean)>;
|
|
455
467
|
};
|
|
456
468
|
tooltip: {
|
|
@@ -588,6 +600,9 @@ declare const _default: DefineComponent<{
|
|
|
588
600
|
circle: {
|
|
589
601
|
type: BooleanConstructor;
|
|
590
602
|
};
|
|
603
|
+
draggable: {
|
|
604
|
+
type: BooleanConstructor;
|
|
605
|
+
};
|
|
591
606
|
}>>>) => any) | undefined;
|
|
592
607
|
onCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
|
|
593
608
|
name: {
|
|
@@ -675,6 +690,9 @@ declare const _default: DefineComponent<{
|
|
|
675
690
|
circle: {
|
|
676
691
|
type: BooleanConstructor;
|
|
677
692
|
};
|
|
693
|
+
draggable: {
|
|
694
|
+
type: BooleanConstructor;
|
|
695
|
+
};
|
|
678
696
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
|
679
697
|
}, {
|
|
680
698
|
size: BaseSize;
|
|
@@ -130,6 +130,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
130
130
|
circle: {
|
|
131
131
|
type: BooleanConstructor;
|
|
132
132
|
};
|
|
133
|
+
draggable: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
};
|
|
133
136
|
}>>>) => void;
|
|
134
137
|
actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
|
|
135
138
|
name: {
|
|
@@ -217,6 +220,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
217
220
|
circle: {
|
|
218
221
|
type: BooleanConstructor;
|
|
219
222
|
};
|
|
223
|
+
draggable: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
};
|
|
220
226
|
}>>>, menu: ActionMenuItem) => void;
|
|
221
227
|
imageClick: () => void;
|
|
222
228
|
titleClick: () => void;
|
|
@@ -345,6 +351,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
345
351
|
circle: {
|
|
346
352
|
type: BooleanConstructor;
|
|
347
353
|
};
|
|
354
|
+
draggable: {
|
|
355
|
+
type: BooleanConstructor;
|
|
356
|
+
};
|
|
348
357
|
}>>>) => any) | undefined;
|
|
349
358
|
onActionCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
|
|
350
359
|
name: {
|
|
@@ -432,6 +441,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
432
441
|
circle: {
|
|
433
442
|
type: BooleanConstructor;
|
|
434
443
|
};
|
|
444
|
+
draggable: {
|
|
445
|
+
type: BooleanConstructor;
|
|
446
|
+
};
|
|
435
447
|
}>>>, menu: ActionMenuItem) => any) | undefined;
|
|
436
448
|
onImageClick?: (() => any) | undefined;
|
|
437
449
|
onTitleClick?: (() => any) | undefined;
|
|
@@ -312,11 +312,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
312
312
|
size: BaseSize;
|
|
313
313
|
primary: boolean;
|
|
314
314
|
mode: DialogMode;
|
|
315
|
+
draggable: boolean | DraggableOptions;
|
|
315
316
|
width: string | number;
|
|
316
317
|
height: string | number;
|
|
317
318
|
modelValue: boolean;
|
|
318
319
|
modal: boolean;
|
|
319
|
-
draggable: boolean | DraggableOptions;
|
|
320
320
|
closable: boolean;
|
|
321
321
|
maximizable: boolean;
|
|
322
322
|
minimizable: boolean;
|
|
@@ -140,6 +140,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
140
140
|
circle: {
|
|
141
141
|
type: BooleanConstructor;
|
|
142
142
|
};
|
|
143
|
+
draggable: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
};
|
|
143
146
|
}>>>) => void;
|
|
144
147
|
actionCommand: (action: Readonly<Partial< ExtractPropTypes<{
|
|
145
148
|
name: {
|
|
@@ -227,6 +230,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
227
230
|
circle: {
|
|
228
231
|
type: BooleanConstructor;
|
|
229
232
|
};
|
|
233
|
+
draggable: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
};
|
|
230
236
|
}>>>, item: ActionMenuItem) => void;
|
|
231
237
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
232
238
|
logo: {
|
|
@@ -362,6 +368,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
362
368
|
circle: {
|
|
363
369
|
type: BooleanConstructor;
|
|
364
370
|
};
|
|
371
|
+
draggable: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
};
|
|
365
374
|
}>>>) => any) | undefined;
|
|
366
375
|
onActionCommand?: ((action: Readonly<Partial< ExtractPropTypes<{
|
|
367
376
|
name: {
|
|
@@ -449,6 +458,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
449
458
|
circle: {
|
|
450
459
|
type: BooleanConstructor;
|
|
451
460
|
};
|
|
461
|
+
draggable: {
|
|
462
|
+
type: BooleanConstructor;
|
|
463
|
+
};
|
|
452
464
|
}>>>, item: ActionMenuItem) => any) | undefined;
|
|
453
465
|
}, {
|
|
454
466
|
disabled: boolean;
|