@gx-design-vue/pro-layout 0.1.0-beta.23 → 0.1.0-beta.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/ProLayout.d.ts +5 -5
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +6 -6
- package/dist/components/GlobalHeader/index.d.ts +4 -4
- package/dist/components/GlobalHeader/props.d.ts +4 -4
- package/dist/components/SiderMenu/BaseMenu.d.ts +14 -6
- package/dist/components/SiderMenu/SiderMenu.d.ts +12 -12
- package/dist/components/SiderMenu/index.d.ts +15 -15
- package/dist/components/SiderMenu/props.d.ts +12 -6
- package/dist/pro-layout.mjs +1074 -1091
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +2 -2
- package/dist/route.d.ts +2 -9
- package/dist/utils/getMenuData.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/route.d.ts
CHANGED
|
@@ -30,19 +30,11 @@ export interface MenuDataItem extends MenuMeta {
|
|
|
30
30
|
meta?: MenuMeta;
|
|
31
31
|
children?: MenuDataItem[];
|
|
32
32
|
}
|
|
33
|
-
export interface MenuMeta {
|
|
34
|
-
title?: string;
|
|
33
|
+
export interface MenuMeta extends Meta {
|
|
35
34
|
isFrame?: '0' | '1';
|
|
36
35
|
menuType?: 'M' | 'C' | null;
|
|
37
|
-
homePage?: 1 | 0;
|
|
38
36
|
homePageFlag?: 1 | 0;
|
|
39
|
-
icon?: string;
|
|
40
|
-
iconType?: 0 | 1 | 2;
|
|
41
37
|
outLinkType?: 0 | 1;
|
|
42
|
-
targetStatus?: 0 | 1;
|
|
43
|
-
tagHidden?: '0' | '1' | boolean;
|
|
44
|
-
tagFixed?: '0' | '1' | boolean;
|
|
45
|
-
keepAlive?: boolean;
|
|
46
38
|
}
|
|
47
39
|
export interface Meta {
|
|
48
40
|
title?: string;
|
|
@@ -60,4 +52,5 @@ export interface Meta {
|
|
|
60
52
|
disabled?: boolean;
|
|
61
53
|
danger?: boolean;
|
|
62
54
|
keepAlive?: boolean;
|
|
55
|
+
isNamed?: boolean;
|
|
63
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
2
|
import type { AppRouteModule } from '../route';
|
|
3
|
-
export { clearMenuItem, flatMap, getMenuFirstChildren } from '
|
|
3
|
+
export { clearMenuItem, flatMap, getMenuFirstChildren, getRealPath } from '../utils';
|
|
4
4
|
export type MenuData = {
|
|
5
5
|
menuData: AppRouteModule[];
|
|
6
6
|
breadcrumb: RecordType;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { AppRouteModule } from '../route';
|
|
1
|
+
import type { AppRouteModule, Meta } from '../route';
|
|
2
2
|
import type { ThemeConfig } from '@gx-design-vue/pro-provider';
|
|
3
3
|
export { default as isUrl } from './isUrl';
|
|
4
4
|
export { default as isImg } from './isImg';
|
|
5
5
|
export * from './coverToNewToken';
|
|
6
6
|
export * from './animate';
|
|
7
|
+
export declare function getRealPath(path: string, meta?: Meta): string;
|
|
7
8
|
export declare function clearMenuItem(menusData: AppRouteModule[]): AppRouteModule[];
|
|
8
9
|
export declare function flatMap(menusData: AppRouteModule[]): AppRouteModule[];
|
|
9
10
|
export declare function getMenuFirstChildren(menus: AppRouteModule[], key?: string): AppRouteModule[];
|