@qqt-product/ui 14.0.2 → 14.0.4
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.es.js +5728 -5713
- package/dist/index.umd.js +85 -85
- package/dist/lib/components/layout/index.d.ts +178 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +178 -1
- package/dist/lib/components/layout/src/menu/menu.vue.d.ts +169 -2
- package/dist/lib/components/layout/src/menu/subSecondMenu.vue.d.ts +65 -3
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +177 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import type { Request } from '@qqt-product/api/dist/utils/request';
|
|
|
6
6
|
import type { CloseCircleOutlinedIconType } from '@ant-design/icons-vue/lib/icons/CloseCircleOutlined';
|
|
7
7
|
import type { SearchOutlinedIconType } from '@ant-design/icons-vue/lib/icons/SearchOutlined';
|
|
8
8
|
import type { SrmI18n } from '../../utils/type';
|
|
9
|
-
import type { Menu, UserInfoType, LayoutConfigType, RouterPropsType, ImgStateList, ExtendMenu, FirstMenuMeta, ColorListType } from './src/types';
|
|
9
|
+
import type { Menu, UserInfoType, LayoutConfigType, RouterPropsType, ImgStateList, ExtendMenu, FirstMenuMeta, SelectedMemu, ColorListType } from './src/types';
|
|
10
10
|
import type { DefineComponent, PropType, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
11
11
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
12
12
|
import QQTLayout from './src/index.vue';
|
|
@@ -115,6 +115,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
115
115
|
chatDraggingPositionX: Ref<number>;
|
|
116
116
|
chatDraggingPositionY: Ref<number | null>;
|
|
117
117
|
showAiKnowledgeBase: Ref<boolean>;
|
|
118
|
+
showGlobalStyleSettingsMenuPattern: Ref<boolean>;
|
|
118
119
|
secondMenuShow: Ref<boolean>;
|
|
119
120
|
siderRef: Ref<any>;
|
|
120
121
|
menuSelect: (obj: any) => void;
|
|
@@ -140,6 +141,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
140
141
|
left?: undefined;
|
|
141
142
|
}>;
|
|
142
143
|
QLayoutSider: DefineComponent<{
|
|
144
|
+
showGlobalStyleSettingsMenuPattern: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
143
148
|
siderWidth: {
|
|
144
149
|
type: NumberConstructor;
|
|
145
150
|
default: number;
|
|
@@ -276,6 +281,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
276
281
|
collapsed: boolean;
|
|
277
282
|
}, {}>;
|
|
278
283
|
QMenu: DefineComponent<{
|
|
284
|
+
globalStyleSettingsMenuPattern: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: boolean;
|
|
287
|
+
};
|
|
279
288
|
width: {
|
|
280
289
|
type: NumberConstructor;
|
|
281
290
|
default: number;
|
|
@@ -397,6 +406,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
397
406
|
currentActive: Ref<number>;
|
|
398
407
|
meta: Ref<FirstMenuMeta | undefined>;
|
|
399
408
|
isEffectiveRoutePath: Ref<boolean>;
|
|
409
|
+
customMode: ComputedRef<"vertical" | "inline">;
|
|
400
410
|
firstMenuSelect: (item: ExtendMenu, index: number) => void;
|
|
401
411
|
updateMenuBadgeCount: (firstMenuPath: string, count: number) => void;
|
|
402
412
|
menuSelect: () => void;
|
|
@@ -504,7 +514,168 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
504
514
|
meta: FirstMenuMeta;
|
|
505
515
|
mode: string;
|
|
506
516
|
}, {}>;
|
|
517
|
+
subSecondMenu: DefineComponent<{
|
|
518
|
+
defineMode: {
|
|
519
|
+
type: StringConstructor;
|
|
520
|
+
default: string;
|
|
521
|
+
};
|
|
522
|
+
menus: {
|
|
523
|
+
type: {
|
|
524
|
+
(arrayLength: number): Menu[];
|
|
525
|
+
(...items: Menu[]): Menu[];
|
|
526
|
+
new (arrayLength: number): Menu[];
|
|
527
|
+
new (...items: Menu[]): Menu[];
|
|
528
|
+
isArray(arg: any): arg is any[];
|
|
529
|
+
readonly prototype: any[];
|
|
530
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
531
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
532
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
533
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
534
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
535
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
536
|
+
};
|
|
537
|
+
default: () => never[];
|
|
538
|
+
};
|
|
539
|
+
theme: {
|
|
540
|
+
type: StringConstructor;
|
|
541
|
+
};
|
|
542
|
+
mode: {
|
|
543
|
+
type: StringConstructor;
|
|
544
|
+
default: string;
|
|
545
|
+
};
|
|
546
|
+
searchOpenKeys: {
|
|
547
|
+
type: {
|
|
548
|
+
(arrayLength: number): string[];
|
|
549
|
+
(...items: string[]): string[];
|
|
550
|
+
new (arrayLength: number): string[];
|
|
551
|
+
new (...items: string[]): string[];
|
|
552
|
+
isArray(arg: any): arg is any[];
|
|
553
|
+
readonly prototype: any[];
|
|
554
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
555
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
556
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
557
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
558
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
559
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
560
|
+
};
|
|
561
|
+
default: () => never[];
|
|
562
|
+
};
|
|
563
|
+
}, {
|
|
564
|
+
props: any;
|
|
565
|
+
emit: (event: "menuSelect", ...args: any[]) => void;
|
|
566
|
+
router: {
|
|
567
|
+
push: (obj: RouterPropsType) => void;
|
|
568
|
+
};
|
|
569
|
+
state: SelectedMemu;
|
|
570
|
+
secondMenuRouter: (item: ExtendMenu) => void;
|
|
571
|
+
menuSelect: (obj: any) => void;
|
|
572
|
+
readonly QIcon: DefineComponent<{
|
|
573
|
+
type: {
|
|
574
|
+
type: PropType<string>;
|
|
575
|
+
default: string;
|
|
576
|
+
};
|
|
577
|
+
size: {
|
|
578
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
579
|
+
};
|
|
580
|
+
color: {
|
|
581
|
+
type: StringConstructor;
|
|
582
|
+
};
|
|
583
|
+
}, {
|
|
584
|
+
fontSize: ComputedRef<{
|
|
585
|
+
fontSize: string;
|
|
586
|
+
}>;
|
|
587
|
+
iconType: ComputedRef<string>;
|
|
588
|
+
iconColor: ComputedRef<{
|
|
589
|
+
color: string;
|
|
590
|
+
}>;
|
|
591
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
592
|
+
type: {
|
|
593
|
+
type: PropType<string>;
|
|
594
|
+
default: string;
|
|
595
|
+
};
|
|
596
|
+
size: {
|
|
597
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
598
|
+
};
|
|
599
|
+
color: {
|
|
600
|
+
type: StringConstructor;
|
|
601
|
+
};
|
|
602
|
+
}>>, {
|
|
603
|
+
type: string;
|
|
604
|
+
}, {}>;
|
|
605
|
+
QDeepCycleSubMenu: DefineComponent<{
|
|
606
|
+
menuInfo: {
|
|
607
|
+
type: ObjectConstructor;
|
|
608
|
+
default: () => {};
|
|
609
|
+
};
|
|
610
|
+
}, {
|
|
611
|
+
deepCycleMenuRouter: (item: ExtendMenu) => void;
|
|
612
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
613
|
+
menuInfo: {
|
|
614
|
+
type: ObjectConstructor;
|
|
615
|
+
default: () => {};
|
|
616
|
+
};
|
|
617
|
+
}>>, {
|
|
618
|
+
menuInfo: Record<string, any>;
|
|
619
|
+
}, {}>;
|
|
620
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "menuSelect"[], "menuSelect", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
621
|
+
defineMode: {
|
|
622
|
+
type: StringConstructor;
|
|
623
|
+
default: string;
|
|
624
|
+
};
|
|
625
|
+
menus: {
|
|
626
|
+
type: {
|
|
627
|
+
(arrayLength: number): Menu[];
|
|
628
|
+
(...items: Menu[]): Menu[];
|
|
629
|
+
new (arrayLength: number): Menu[];
|
|
630
|
+
new (...items: Menu[]): Menu[];
|
|
631
|
+
isArray(arg: any): arg is any[];
|
|
632
|
+
readonly prototype: any[];
|
|
633
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
634
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
635
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
636
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
637
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
638
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
639
|
+
};
|
|
640
|
+
default: () => never[];
|
|
641
|
+
};
|
|
642
|
+
theme: {
|
|
643
|
+
type: StringConstructor;
|
|
644
|
+
};
|
|
645
|
+
mode: {
|
|
646
|
+
type: StringConstructor;
|
|
647
|
+
default: string;
|
|
648
|
+
};
|
|
649
|
+
searchOpenKeys: {
|
|
650
|
+
type: {
|
|
651
|
+
(arrayLength: number): string[];
|
|
652
|
+
(...items: string[]): string[];
|
|
653
|
+
new (arrayLength: number): string[];
|
|
654
|
+
new (...items: string[]): string[];
|
|
655
|
+
isArray(arg: any): arg is any[];
|
|
656
|
+
readonly prototype: any[];
|
|
657
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
658
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
659
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
660
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
661
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
662
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
663
|
+
};
|
|
664
|
+
default: () => never[];
|
|
665
|
+
};
|
|
666
|
+
}>> & {
|
|
667
|
+
onMenuSelect?: ((...args: any[]) => any) | undefined;
|
|
668
|
+
}, {
|
|
669
|
+
mode: string;
|
|
670
|
+
menus: Menu[];
|
|
671
|
+
defineMode: string;
|
|
672
|
+
searchOpenKeys: string[];
|
|
673
|
+
}, {}>;
|
|
507
674
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "updateMenuShow" | "updateHistoryList")[], "menuSelect" | "updateMenuShow" | "updateHistoryList", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
675
|
+
globalStyleSettingsMenuPattern: {
|
|
676
|
+
type: BooleanConstructor;
|
|
677
|
+
default: boolean;
|
|
678
|
+
};
|
|
508
679
|
width: {
|
|
509
680
|
type: NumberConstructor;
|
|
510
681
|
default: number;
|
|
@@ -578,6 +749,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
578
749
|
menus: ExtendMenu[];
|
|
579
750
|
secondMenuShow: boolean;
|
|
580
751
|
collapsed: boolean;
|
|
752
|
+
globalStyleSettingsMenuPattern: boolean;
|
|
581
753
|
searchState: boolean;
|
|
582
754
|
currentSearchValue: string;
|
|
583
755
|
sourceData: ExtendMenu[];
|
|
@@ -673,6 +845,10 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
673
845
|
searchState: boolean;
|
|
674
846
|
}, {}>;
|
|
675
847
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "schedule-click" | "services-click" | "updateMenuShow" | "collapsed-sider")[], "menuSelect" | "schedule-click" | "services-click" | "updateMenuShow" | "collapsed-sider", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
848
|
+
showGlobalStyleSettingsMenuPattern: {
|
|
849
|
+
type: BooleanConstructor;
|
|
850
|
+
default: boolean;
|
|
851
|
+
};
|
|
676
852
|
siderWidth: {
|
|
677
853
|
type: NumberConstructor;
|
|
678
854
|
default: number;
|
|
@@ -746,6 +922,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
746
922
|
}, {
|
|
747
923
|
mode: string;
|
|
748
924
|
collapsible: boolean;
|
|
925
|
+
showGlobalStyleSettingsMenuPattern: boolean;
|
|
749
926
|
siderWidth: number;
|
|
750
927
|
secondMenuShow: boolean;
|
|
751
928
|
}, {}>;
|
|
@@ -7,7 +7,7 @@ import type { CloseCircleOutlinedIconType } from '@ant-design/icons-vue/lib/icon
|
|
|
7
7
|
import type { SearchOutlinedIconType } from '@ant-design/icons-vue/lib/icons/SearchOutlined';
|
|
8
8
|
import type { SrmI18n } from '../../../utils/type';
|
|
9
9
|
import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
10
|
-
import type { RouterPropsType, ImgStateList, ExtendMenu, FirstMenuMeta, ColorListType, Menu, UserInfoType, LayoutConfigType } from './types';
|
|
10
|
+
import type { RouterPropsType, ImgStateList, ExtendMenu, FirstMenuMeta, SelectedMemu, ColorListType, Menu, UserInfoType, LayoutConfigType } from './types';
|
|
11
11
|
declare const _sfc_main: DefineComponent<{
|
|
12
12
|
internalOrExternal: {
|
|
13
13
|
type: BooleanConstructor;
|
|
@@ -112,6 +112,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
112
112
|
chatDraggingPositionX: Ref<number>;
|
|
113
113
|
chatDraggingPositionY: Ref<number | null>;
|
|
114
114
|
showAiKnowledgeBase: Ref<boolean>;
|
|
115
|
+
showGlobalStyleSettingsMenuPattern: Ref<boolean>;
|
|
115
116
|
secondMenuShow: Ref<boolean>;
|
|
116
117
|
siderRef: Ref<any>;
|
|
117
118
|
menuSelect: (obj: any) => void;
|
|
@@ -137,6 +138,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
137
138
|
left?: undefined;
|
|
138
139
|
}>;
|
|
139
140
|
QLayoutSider: DefineComponent<{
|
|
141
|
+
showGlobalStyleSettingsMenuPattern: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
140
145
|
siderWidth: {
|
|
141
146
|
type: NumberConstructor;
|
|
142
147
|
default: number;
|
|
@@ -273,6 +278,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
273
278
|
collapsed: boolean;
|
|
274
279
|
}, {}>;
|
|
275
280
|
QMenu: DefineComponent<{
|
|
281
|
+
globalStyleSettingsMenuPattern: {
|
|
282
|
+
type: BooleanConstructor;
|
|
283
|
+
default: boolean;
|
|
284
|
+
};
|
|
276
285
|
width: {
|
|
277
286
|
type: NumberConstructor;
|
|
278
287
|
default: number;
|
|
@@ -394,6 +403,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
394
403
|
currentActive: Ref<number>;
|
|
395
404
|
meta: Ref<FirstMenuMeta | undefined>;
|
|
396
405
|
isEffectiveRoutePath: Ref<boolean>;
|
|
406
|
+
customMode: ComputedRef<"vertical" | "inline">;
|
|
397
407
|
firstMenuSelect: (item: ExtendMenu, index: number) => void;
|
|
398
408
|
updateMenuBadgeCount: (firstMenuPath: string, count: number) => void;
|
|
399
409
|
menuSelect: () => void;
|
|
@@ -501,7 +511,168 @@ declare const _sfc_main: DefineComponent<{
|
|
|
501
511
|
meta: FirstMenuMeta;
|
|
502
512
|
mode: string;
|
|
503
513
|
}, {}>;
|
|
514
|
+
subSecondMenu: DefineComponent<{
|
|
515
|
+
defineMode: {
|
|
516
|
+
type: StringConstructor;
|
|
517
|
+
default: string;
|
|
518
|
+
};
|
|
519
|
+
menus: {
|
|
520
|
+
type: {
|
|
521
|
+
(arrayLength: number): Menu[];
|
|
522
|
+
(...items: Menu[]): Menu[];
|
|
523
|
+
new (arrayLength: number): Menu[];
|
|
524
|
+
new (...items: Menu[]): Menu[];
|
|
525
|
+
isArray(arg: any): arg is any[];
|
|
526
|
+
readonly prototype: any[];
|
|
527
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
528
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
529
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
530
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
531
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
532
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
533
|
+
};
|
|
534
|
+
default: () => never[];
|
|
535
|
+
};
|
|
536
|
+
theme: {
|
|
537
|
+
type: StringConstructor;
|
|
538
|
+
};
|
|
539
|
+
mode: {
|
|
540
|
+
type: StringConstructor;
|
|
541
|
+
default: string;
|
|
542
|
+
};
|
|
543
|
+
searchOpenKeys: {
|
|
544
|
+
type: {
|
|
545
|
+
(arrayLength: number): string[];
|
|
546
|
+
(...items: string[]): string[];
|
|
547
|
+
new (arrayLength: number): string[];
|
|
548
|
+
new (...items: string[]): string[];
|
|
549
|
+
isArray(arg: any): arg is any[];
|
|
550
|
+
readonly prototype: any[];
|
|
551
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
552
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
553
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
554
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
555
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
556
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
557
|
+
};
|
|
558
|
+
default: () => never[];
|
|
559
|
+
};
|
|
560
|
+
}, {
|
|
561
|
+
props: any;
|
|
562
|
+
emit: (event: "menuSelect", ...args: any[]) => void;
|
|
563
|
+
router: {
|
|
564
|
+
push: (obj: RouterPropsType) => void;
|
|
565
|
+
};
|
|
566
|
+
state: SelectedMemu;
|
|
567
|
+
secondMenuRouter: (item: ExtendMenu) => void;
|
|
568
|
+
menuSelect: (obj: any) => void;
|
|
569
|
+
readonly QIcon: DefineComponent<{
|
|
570
|
+
type: {
|
|
571
|
+
type: PropType<string>;
|
|
572
|
+
default: string;
|
|
573
|
+
};
|
|
574
|
+
size: {
|
|
575
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
576
|
+
};
|
|
577
|
+
color: {
|
|
578
|
+
type: StringConstructor;
|
|
579
|
+
};
|
|
580
|
+
}, {
|
|
581
|
+
fontSize: ComputedRef<{
|
|
582
|
+
fontSize: string;
|
|
583
|
+
}>;
|
|
584
|
+
iconType: ComputedRef<string>;
|
|
585
|
+
iconColor: ComputedRef<{
|
|
586
|
+
color: string;
|
|
587
|
+
}>;
|
|
588
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
589
|
+
type: {
|
|
590
|
+
type: PropType<string>;
|
|
591
|
+
default: string;
|
|
592
|
+
};
|
|
593
|
+
size: {
|
|
594
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
595
|
+
};
|
|
596
|
+
color: {
|
|
597
|
+
type: StringConstructor;
|
|
598
|
+
};
|
|
599
|
+
}>>, {
|
|
600
|
+
type: string;
|
|
601
|
+
}, {}>;
|
|
602
|
+
QDeepCycleSubMenu: DefineComponent<{
|
|
603
|
+
menuInfo: {
|
|
604
|
+
type: ObjectConstructor;
|
|
605
|
+
default: () => {};
|
|
606
|
+
};
|
|
607
|
+
}, {
|
|
608
|
+
deepCycleMenuRouter: (item: ExtendMenu) => void;
|
|
609
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
610
|
+
menuInfo: {
|
|
611
|
+
type: ObjectConstructor;
|
|
612
|
+
default: () => {};
|
|
613
|
+
};
|
|
614
|
+
}>>, {
|
|
615
|
+
menuInfo: Record<string, any>;
|
|
616
|
+
}, {}>;
|
|
617
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "menuSelect"[], "menuSelect", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
618
|
+
defineMode: {
|
|
619
|
+
type: StringConstructor;
|
|
620
|
+
default: string;
|
|
621
|
+
};
|
|
622
|
+
menus: {
|
|
623
|
+
type: {
|
|
624
|
+
(arrayLength: number): Menu[];
|
|
625
|
+
(...items: Menu[]): Menu[];
|
|
626
|
+
new (arrayLength: number): Menu[];
|
|
627
|
+
new (...items: Menu[]): Menu[];
|
|
628
|
+
isArray(arg: any): arg is any[];
|
|
629
|
+
readonly prototype: any[];
|
|
630
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
631
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
632
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
633
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
634
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
635
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
636
|
+
};
|
|
637
|
+
default: () => never[];
|
|
638
|
+
};
|
|
639
|
+
theme: {
|
|
640
|
+
type: StringConstructor;
|
|
641
|
+
};
|
|
642
|
+
mode: {
|
|
643
|
+
type: StringConstructor;
|
|
644
|
+
default: string;
|
|
645
|
+
};
|
|
646
|
+
searchOpenKeys: {
|
|
647
|
+
type: {
|
|
648
|
+
(arrayLength: number): string[];
|
|
649
|
+
(...items: string[]): string[];
|
|
650
|
+
new (arrayLength: number): string[];
|
|
651
|
+
new (...items: string[]): string[];
|
|
652
|
+
isArray(arg: any): arg is any[];
|
|
653
|
+
readonly prototype: any[];
|
|
654
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
655
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
656
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
657
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
658
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
659
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
660
|
+
};
|
|
661
|
+
default: () => never[];
|
|
662
|
+
};
|
|
663
|
+
}>> & {
|
|
664
|
+
onMenuSelect?: ((...args: any[]) => any) | undefined;
|
|
665
|
+
}, {
|
|
666
|
+
mode: string;
|
|
667
|
+
menus: Menu[];
|
|
668
|
+
defineMode: string;
|
|
669
|
+
searchOpenKeys: string[];
|
|
670
|
+
}, {}>;
|
|
504
671
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "updateMenuShow" | "updateHistoryList")[], "menuSelect" | "updateMenuShow" | "updateHistoryList", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
672
|
+
globalStyleSettingsMenuPattern: {
|
|
673
|
+
type: BooleanConstructor;
|
|
674
|
+
default: boolean;
|
|
675
|
+
};
|
|
505
676
|
width: {
|
|
506
677
|
type: NumberConstructor;
|
|
507
678
|
default: number;
|
|
@@ -575,6 +746,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
575
746
|
menus: ExtendMenu[];
|
|
576
747
|
secondMenuShow: boolean;
|
|
577
748
|
collapsed: boolean;
|
|
749
|
+
globalStyleSettingsMenuPattern: boolean;
|
|
578
750
|
searchState: boolean;
|
|
579
751
|
currentSearchValue: string;
|
|
580
752
|
sourceData: ExtendMenu[];
|
|
@@ -670,6 +842,10 @@ declare const _sfc_main: DefineComponent<{
|
|
|
670
842
|
searchState: boolean;
|
|
671
843
|
}, {}>;
|
|
672
844
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "schedule-click" | "services-click" | "updateMenuShow" | "collapsed-sider")[], "menuSelect" | "schedule-click" | "services-click" | "updateMenuShow" | "collapsed-sider", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
845
|
+
showGlobalStyleSettingsMenuPattern: {
|
|
846
|
+
type: BooleanConstructor;
|
|
847
|
+
default: boolean;
|
|
848
|
+
};
|
|
673
849
|
siderWidth: {
|
|
674
850
|
type: NumberConstructor;
|
|
675
851
|
default: number;
|
|
@@ -743,6 +919,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
743
919
|
}, {
|
|
744
920
|
mode: string;
|
|
745
921
|
collapsible: boolean;
|
|
922
|
+
showGlobalStyleSettingsMenuPattern: boolean;
|
|
746
923
|
siderWidth: number;
|
|
747
924
|
secondMenuShow: boolean;
|
|
748
925
|
}, {}>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { SrmI18n } from '../../../../utils/type';
|
|
2
|
-
import type { DefineComponent, Ref,
|
|
3
|
-
import type { Menu, ExtendMenu, FirstMenuMeta, RouterPropsType } from '../types';
|
|
2
|
+
import type { DefineComponent, Ref, ComputedRef, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import type { Menu, SelectedMemu, ExtendMenu, FirstMenuMeta, RouterPropsType } from '../types';
|
|
4
4
|
declare const _sfc_main: DefineComponent<{
|
|
5
|
+
globalStyleSettingsMenuPattern: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
5
9
|
width: {
|
|
6
10
|
type: NumberConstructor;
|
|
7
11
|
default: number;
|
|
@@ -123,6 +127,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
123
127
|
currentActive: Ref<number>;
|
|
124
128
|
meta: Ref<FirstMenuMeta | undefined>;
|
|
125
129
|
isEffectiveRoutePath: Ref<boolean>;
|
|
130
|
+
customMode: ComputedRef<"vertical" | "inline">;
|
|
126
131
|
firstMenuSelect: (item: ExtendMenu, index: number) => void;
|
|
127
132
|
updateMenuBadgeCount: (firstMenuPath: string, count: number) => void;
|
|
128
133
|
menuSelect: () => void;
|
|
@@ -230,7 +235,168 @@ declare const _sfc_main: DefineComponent<{
|
|
|
230
235
|
meta: FirstMenuMeta;
|
|
231
236
|
mode: string;
|
|
232
237
|
}, {}>;
|
|
238
|
+
subSecondMenu: DefineComponent<{
|
|
239
|
+
defineMode: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
menus: {
|
|
244
|
+
type: {
|
|
245
|
+
(arrayLength: number): Menu[];
|
|
246
|
+
(...items: Menu[]): Menu[];
|
|
247
|
+
new (arrayLength: number): Menu[];
|
|
248
|
+
new (...items: Menu[]): Menu[];
|
|
249
|
+
isArray(arg: any): arg is any[];
|
|
250
|
+
readonly prototype: any[];
|
|
251
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
252
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
253
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
254
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
255
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
256
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
257
|
+
};
|
|
258
|
+
default: () => never[];
|
|
259
|
+
};
|
|
260
|
+
theme: {
|
|
261
|
+
type: StringConstructor;
|
|
262
|
+
};
|
|
263
|
+
mode: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
searchOpenKeys: {
|
|
268
|
+
type: {
|
|
269
|
+
(arrayLength: number): string[];
|
|
270
|
+
(...items: string[]): string[];
|
|
271
|
+
new (arrayLength: number): string[];
|
|
272
|
+
new (...items: string[]): string[];
|
|
273
|
+
isArray(arg: any): arg is any[];
|
|
274
|
+
readonly prototype: any[];
|
|
275
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
276
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
277
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
278
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
279
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
280
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
281
|
+
};
|
|
282
|
+
default: () => never[];
|
|
283
|
+
};
|
|
284
|
+
}, {
|
|
285
|
+
props: any;
|
|
286
|
+
emit: (event: "menuSelect", ...args: any[]) => void;
|
|
287
|
+
router: {
|
|
288
|
+
push: (obj: RouterPropsType) => void;
|
|
289
|
+
};
|
|
290
|
+
state: SelectedMemu;
|
|
291
|
+
secondMenuRouter: (item: ExtendMenu) => void;
|
|
292
|
+
menuSelect: (obj: any) => void;
|
|
293
|
+
readonly QIcon: DefineComponent<{
|
|
294
|
+
type: {
|
|
295
|
+
type: PropType<string>;
|
|
296
|
+
default: string;
|
|
297
|
+
};
|
|
298
|
+
size: {
|
|
299
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
300
|
+
};
|
|
301
|
+
color: {
|
|
302
|
+
type: StringConstructor;
|
|
303
|
+
};
|
|
304
|
+
}, {
|
|
305
|
+
fontSize: ComputedRef<{
|
|
306
|
+
fontSize: string;
|
|
307
|
+
}>;
|
|
308
|
+
iconType: ComputedRef<string>;
|
|
309
|
+
iconColor: ComputedRef<{
|
|
310
|
+
color: string;
|
|
311
|
+
}>;
|
|
312
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
313
|
+
type: {
|
|
314
|
+
type: PropType<string>;
|
|
315
|
+
default: string;
|
|
316
|
+
};
|
|
317
|
+
size: {
|
|
318
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
319
|
+
};
|
|
320
|
+
color: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
};
|
|
323
|
+
}>>, {
|
|
324
|
+
type: string;
|
|
325
|
+
}, {}>;
|
|
326
|
+
QDeepCycleSubMenu: DefineComponent<{
|
|
327
|
+
menuInfo: {
|
|
328
|
+
type: ObjectConstructor;
|
|
329
|
+
default: () => {};
|
|
330
|
+
};
|
|
331
|
+
}, {
|
|
332
|
+
deepCycleMenuRouter: (item: ExtendMenu) => void;
|
|
333
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
334
|
+
menuInfo: {
|
|
335
|
+
type: ObjectConstructor;
|
|
336
|
+
default: () => {};
|
|
337
|
+
};
|
|
338
|
+
}>>, {
|
|
339
|
+
menuInfo: Record<string, any>;
|
|
340
|
+
}, {}>;
|
|
341
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "menuSelect"[], "menuSelect", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
342
|
+
defineMode: {
|
|
343
|
+
type: StringConstructor;
|
|
344
|
+
default: string;
|
|
345
|
+
};
|
|
346
|
+
menus: {
|
|
347
|
+
type: {
|
|
348
|
+
(arrayLength: number): Menu[];
|
|
349
|
+
(...items: Menu[]): Menu[];
|
|
350
|
+
new (arrayLength: number): Menu[];
|
|
351
|
+
new (...items: Menu[]): Menu[];
|
|
352
|
+
isArray(arg: any): arg is any[];
|
|
353
|
+
readonly prototype: any[];
|
|
354
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
355
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
356
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
357
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
358
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
359
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
360
|
+
};
|
|
361
|
+
default: () => never[];
|
|
362
|
+
};
|
|
363
|
+
theme: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
};
|
|
366
|
+
mode: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
default: string;
|
|
369
|
+
};
|
|
370
|
+
searchOpenKeys: {
|
|
371
|
+
type: {
|
|
372
|
+
(arrayLength: number): string[];
|
|
373
|
+
(...items: string[]): string[];
|
|
374
|
+
new (arrayLength: number): string[];
|
|
375
|
+
new (...items: string[]): string[];
|
|
376
|
+
isArray(arg: any): arg is any[];
|
|
377
|
+
readonly prototype: any[];
|
|
378
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
379
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
380
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
381
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
382
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
383
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
384
|
+
};
|
|
385
|
+
default: () => never[];
|
|
386
|
+
};
|
|
387
|
+
}>> & {
|
|
388
|
+
onMenuSelect?: ((...args: any[]) => any) | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
mode: string;
|
|
391
|
+
menus: Menu[];
|
|
392
|
+
defineMode: string;
|
|
393
|
+
searchOpenKeys: string[];
|
|
394
|
+
}, {}>;
|
|
233
395
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("menuSelect" | "updateMenuShow" | "updateHistoryList")[], "menuSelect" | "updateMenuShow" | "updateHistoryList", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
396
|
+
globalStyleSettingsMenuPattern: {
|
|
397
|
+
type: BooleanConstructor;
|
|
398
|
+
default: boolean;
|
|
399
|
+
};
|
|
234
400
|
width: {
|
|
235
401
|
type: NumberConstructor;
|
|
236
402
|
default: number;
|
|
@@ -304,6 +470,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
304
470
|
menus: ExtendMenu[];
|
|
305
471
|
secondMenuShow: boolean;
|
|
306
472
|
collapsed: boolean;
|
|
473
|
+
globalStyleSettingsMenuPattern: boolean;
|
|
307
474
|
searchState: boolean;
|
|
308
475
|
currentSearchValue: string;
|
|
309
476
|
sourceData: ExtendMenu[];
|