@cyberpunk-vue/components 1.9.24 → 1.9.25
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/dialog/index.d.ts +61 -0
- package/dist/dialog/src/dialog.d.ts +32 -0
- package/dist/dialog/src/dialog.vue.d.ts +37 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +139 -87
- package/dist/menu/index.d.ts +15 -0
- package/dist/menu/src/menu.d.ts +14 -0
- package/dist/menu/src/menu.vue.d.ts +9 -0
- package/dist/menu-nav/index.d.ts +9 -0
- package/dist/menu-nav/src/menu-nav.d.ts +9 -1
- package/dist/menu-nav/src/menu-nav.vue.d.ts +9 -0
- package/package.json +4 -4
package/dist/dialog/index.d.ts
CHANGED
|
@@ -191,6 +191,22 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
191
191
|
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
192
192
|
default: undefined;
|
|
193
193
|
};
|
|
194
|
+
loading: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
loadingText: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
loadingClass: {
|
|
203
|
+
type: import('vue').PropType<import('.').DialogCustomClass>;
|
|
204
|
+
default: undefined;
|
|
205
|
+
};
|
|
206
|
+
loadingStyle: {
|
|
207
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
208
|
+
default: undefined;
|
|
209
|
+
};
|
|
194
210
|
zIndex: {
|
|
195
211
|
type: NumberConstructor;
|
|
196
212
|
default: number;
|
|
@@ -236,6 +252,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
236
252
|
type: import('.').DialogType;
|
|
237
253
|
color: string;
|
|
238
254
|
variant: import('.').DialogVariant;
|
|
255
|
+
loading: boolean;
|
|
239
256
|
shape: import('.').DialogShape;
|
|
240
257
|
textColor: string;
|
|
241
258
|
title: string;
|
|
@@ -255,6 +272,9 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
255
272
|
headerStyle: string | import('vue').CSSProperties;
|
|
256
273
|
bodyClass: import('.').DialogCustomClass;
|
|
257
274
|
bodyStyle: string | import('vue').CSSProperties;
|
|
275
|
+
loadingText: string;
|
|
276
|
+
loadingClass: import('.').DialogCustomClass;
|
|
277
|
+
loadingStyle: string | import('vue').CSSProperties;
|
|
258
278
|
overlayStyle: string | import('vue').CSSProperties;
|
|
259
279
|
draggable: boolean;
|
|
260
280
|
closeOnEscape: boolean;
|
|
@@ -458,6 +478,22 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
458
478
|
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
459
479
|
default: undefined;
|
|
460
480
|
};
|
|
481
|
+
loading: {
|
|
482
|
+
type: BooleanConstructor;
|
|
483
|
+
default: boolean;
|
|
484
|
+
};
|
|
485
|
+
loadingText: {
|
|
486
|
+
type: StringConstructor;
|
|
487
|
+
default: string;
|
|
488
|
+
};
|
|
489
|
+
loadingClass: {
|
|
490
|
+
type: import('vue').PropType<import('.').DialogCustomClass>;
|
|
491
|
+
default: undefined;
|
|
492
|
+
};
|
|
493
|
+
loadingStyle: {
|
|
494
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
495
|
+
default: undefined;
|
|
496
|
+
};
|
|
461
497
|
zIndex: {
|
|
462
498
|
type: NumberConstructor;
|
|
463
499
|
default: number;
|
|
@@ -495,6 +531,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
495
531
|
type: import('.').DialogType;
|
|
496
532
|
color: string;
|
|
497
533
|
variant: import('.').DialogVariant;
|
|
534
|
+
loading: boolean;
|
|
498
535
|
shape: import('.').DialogShape;
|
|
499
536
|
textColor: string;
|
|
500
537
|
title: string;
|
|
@@ -514,6 +551,9 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
514
551
|
headerStyle: string | import('vue').CSSProperties;
|
|
515
552
|
bodyClass: import('.').DialogCustomClass;
|
|
516
553
|
bodyStyle: string | import('vue').CSSProperties;
|
|
554
|
+
loadingText: string;
|
|
555
|
+
loadingClass: import('.').DialogCustomClass;
|
|
556
|
+
loadingStyle: string | import('vue').CSSProperties;
|
|
517
557
|
overlayStyle: string | import('vue').CSSProperties;
|
|
518
558
|
draggable: boolean;
|
|
519
559
|
closeOnEscape: boolean;
|
|
@@ -711,6 +751,22 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
711
751
|
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
712
752
|
default: undefined;
|
|
713
753
|
};
|
|
754
|
+
loading: {
|
|
755
|
+
type: BooleanConstructor;
|
|
756
|
+
default: boolean;
|
|
757
|
+
};
|
|
758
|
+
loadingText: {
|
|
759
|
+
type: StringConstructor;
|
|
760
|
+
default: string;
|
|
761
|
+
};
|
|
762
|
+
loadingClass: {
|
|
763
|
+
type: import('vue').PropType<import('.').DialogCustomClass>;
|
|
764
|
+
default: undefined;
|
|
765
|
+
};
|
|
766
|
+
loadingStyle: {
|
|
767
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
768
|
+
default: undefined;
|
|
769
|
+
};
|
|
714
770
|
zIndex: {
|
|
715
771
|
type: NumberConstructor;
|
|
716
772
|
default: number;
|
|
@@ -756,6 +812,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
756
812
|
type: import('.').DialogType;
|
|
757
813
|
color: string;
|
|
758
814
|
variant: import('.').DialogVariant;
|
|
815
|
+
loading: boolean;
|
|
759
816
|
shape: import('.').DialogShape;
|
|
760
817
|
textColor: string;
|
|
761
818
|
title: string;
|
|
@@ -775,6 +832,9 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
775
832
|
headerStyle: string | import('vue').CSSProperties;
|
|
776
833
|
bodyClass: import('.').DialogCustomClass;
|
|
777
834
|
bodyStyle: string | import('vue').CSSProperties;
|
|
835
|
+
loadingText: string;
|
|
836
|
+
loadingClass: import('.').DialogCustomClass;
|
|
837
|
+
loadingStyle: string | import('vue').CSSProperties;
|
|
778
838
|
overlayStyle: string | import('vue').CSSProperties;
|
|
779
839
|
draggable: boolean;
|
|
780
840
|
closeOnEscape: boolean;
|
|
@@ -809,6 +869,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
|
|
|
809
869
|
close: () => void;
|
|
810
870
|
confirm: () => void;
|
|
811
871
|
}): any;
|
|
872
|
+
loading?(_: {}): any;
|
|
812
873
|
};
|
|
813
874
|
})>;
|
|
814
875
|
export default CpDialog;
|
|
@@ -46,6 +46,7 @@ export type DialogCustomClass = string | Record<string, boolean> | Array<string
|
|
|
46
46
|
* - `cover` - 封面区域(位于头部上方,与 Card 的 cover 插槽一致)
|
|
47
47
|
* - `header` - 自定义整个头部区域(覆盖 title + 关闭按钮)
|
|
48
48
|
* - `title` - 仅标题区域
|
|
49
|
+
* - `loading` - 自定义加载中内容
|
|
49
50
|
* - `footer` - 底部操作区域,作用域 props: `{ close: () => void, confirm: () => void }`
|
|
50
51
|
* @category 展示组件
|
|
51
52
|
* @displayName CpDialog 对话框
|
|
@@ -371,6 +372,37 @@ export declare const dialogProps: {
|
|
|
371
372
|
type: PropType<string | CSSProperties>;
|
|
372
373
|
default: undefined;
|
|
373
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* 是否处于加载状态
|
|
377
|
+
* 加载时会在对话框面板上显示遮罩层,阻止用户交互
|
|
378
|
+
* @default false
|
|
379
|
+
*/
|
|
380
|
+
loading: {
|
|
381
|
+
type: BooleanConstructor;
|
|
382
|
+
default: boolean;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* 加载中显示的文字
|
|
386
|
+
* @default '加载中...'
|
|
387
|
+
*/
|
|
388
|
+
loadingText: {
|
|
389
|
+
type: StringConstructor;
|
|
390
|
+
default: string;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* 加载遮罩自定义类名
|
|
394
|
+
*/
|
|
395
|
+
loadingClass: {
|
|
396
|
+
type: PropType<DialogCustomClass>;
|
|
397
|
+
default: undefined;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* 加载遮罩自定义样式
|
|
401
|
+
*/
|
|
402
|
+
loadingStyle: {
|
|
403
|
+
type: PropType<string | CSSProperties>;
|
|
404
|
+
default: undefined;
|
|
405
|
+
};
|
|
374
406
|
/**
|
|
375
407
|
* z-index
|
|
376
408
|
* @default 2000
|
|
@@ -11,6 +11,7 @@ declare function __VLS_template(): {
|
|
|
11
11
|
close: () => void;
|
|
12
12
|
confirm: () => void;
|
|
13
13
|
}): any;
|
|
14
|
+
loading?(_: {}): any;
|
|
14
15
|
};
|
|
15
16
|
refs: {
|
|
16
17
|
panelRef: HTMLDivElement;
|
|
@@ -188,6 +189,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
188
189
|
type: import('vue').PropType<string | CSSProperties>;
|
|
189
190
|
default: undefined;
|
|
190
191
|
};
|
|
192
|
+
loading: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
loadingText: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: string;
|
|
199
|
+
};
|
|
200
|
+
loadingClass: {
|
|
201
|
+
type: import('vue').PropType<import('./dialog').DialogCustomClass>;
|
|
202
|
+
default: undefined;
|
|
203
|
+
};
|
|
204
|
+
loadingStyle: {
|
|
205
|
+
type: import('vue').PropType<string | CSSProperties>;
|
|
206
|
+
default: undefined;
|
|
207
|
+
};
|
|
191
208
|
zIndex: {
|
|
192
209
|
type: NumberConstructor;
|
|
193
210
|
default: number;
|
|
@@ -392,6 +409,22 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
392
409
|
type: import('vue').PropType<string | CSSProperties>;
|
|
393
410
|
default: undefined;
|
|
394
411
|
};
|
|
412
|
+
loading: {
|
|
413
|
+
type: BooleanConstructor;
|
|
414
|
+
default: boolean;
|
|
415
|
+
};
|
|
416
|
+
loadingText: {
|
|
417
|
+
type: StringConstructor;
|
|
418
|
+
default: string;
|
|
419
|
+
};
|
|
420
|
+
loadingClass: {
|
|
421
|
+
type: import('vue').PropType<import('./dialog').DialogCustomClass>;
|
|
422
|
+
default: undefined;
|
|
423
|
+
};
|
|
424
|
+
loadingStyle: {
|
|
425
|
+
type: import('vue').PropType<string | CSSProperties>;
|
|
426
|
+
default: undefined;
|
|
427
|
+
};
|
|
395
428
|
zIndex: {
|
|
396
429
|
type: NumberConstructor;
|
|
397
430
|
default: number;
|
|
@@ -425,6 +458,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
425
458
|
type: import('./dialog').DialogType;
|
|
426
459
|
color: string;
|
|
427
460
|
variant: import('./dialog').DialogVariant;
|
|
461
|
+
loading: boolean;
|
|
428
462
|
shape: import('./dialog').DialogShape;
|
|
429
463
|
textColor: string;
|
|
430
464
|
title: string;
|
|
@@ -444,6 +478,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
444
478
|
headerStyle: string | CSSProperties;
|
|
445
479
|
bodyClass: import('./dialog').DialogCustomClass;
|
|
446
480
|
bodyStyle: string | CSSProperties;
|
|
481
|
+
loadingText: string;
|
|
482
|
+
loadingClass: import('./dialog').DialogCustomClass;
|
|
483
|
+
loadingStyle: string | CSSProperties;
|
|
447
484
|
overlayStyle: string | CSSProperties;
|
|
448
485
|
draggable: boolean;
|
|
449
486
|
closeOnEscape: boolean;
|