@gx-design-vue/pro-layout 0.1.0-beta.76 → 0.1.0-beta.78
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 +1 -10
- package/dist/RouteTypings.d.ts +12 -10
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +2 -15
- package/dist/components/GlobalHeader/index.d.ts +0 -9
- package/dist/components/GlobalHeader/props.d.ts +0 -8
- package/dist/components/PageContainer/index.d.ts +1 -1
- package/dist/components/SiderMenu/BaseMenu.d.ts +93 -102
- package/dist/components/SiderMenu/SiderMenu.d.ts +0 -9
- package/dist/components/SiderMenu/index.d.ts +0 -9
- package/dist/components/SiderMenu/props.d.ts +1 -9
- package/dist/components/TabsRoute/index.d.ts +0 -1
- package/dist/hooks/menu/index.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/pro-layout.js +1729 -1672
- package/dist/pro-layout.umd.cjs +2 -2
- package/dist/props.d.ts +0 -4
- package/dist/utils/menu.d.ts +10 -2
- package/package.json +1 -1
package/dist/props.d.ts
CHANGED
|
@@ -170,10 +170,6 @@ export declare const basicLayoutProps: {
|
|
|
170
170
|
default: () => undefined;
|
|
171
171
|
};
|
|
172
172
|
onLogoClick: PropType<Function>;
|
|
173
|
-
toFirstPath: {
|
|
174
|
-
type: PropType<boolean>;
|
|
175
|
-
default: undefined;
|
|
176
|
-
};
|
|
177
173
|
mode: {
|
|
178
174
|
type: PropType<import("ant-design-vue/es/menu/src/interface").MenuMode>;
|
|
179
175
|
default: string;
|
package/dist/utils/menu.d.ts
CHANGED
|
@@ -5,9 +5,17 @@ export type MenuData = {
|
|
|
5
5
|
breadcrumb: RecordType;
|
|
6
6
|
getLevel: () => AppRouteModule[];
|
|
7
7
|
};
|
|
8
|
+
export declare function hanlePathKey(record: AppRouteModule): string;
|
|
8
9
|
export declare const getMenuData: (routes: AppRouteModule[]) => MenuData;
|
|
9
10
|
export declare function clearMenuItem(menusData: AppRouteModule[]): AppRouteModule[];
|
|
10
11
|
export declare function flatMap(menusData: AppRouteModule[]): AppRouteModule[];
|
|
11
12
|
export declare function getMenuFirstChildren(menus: AppRouteModule[], key?: string): AppRouteModule[];
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function getLastPath(data: AppRouteModule[]): string;
|
|
14
|
+
export declare function findLastKey(tree: AppRouteModule[], targetKey: string): string | undefined;
|
|
15
|
+
export declare function getMatchedList({ menuData, levelMenuData }: {
|
|
16
|
+
menuData: AppRouteModule[];
|
|
17
|
+
levelMenuData: AppRouteModule[];
|
|
18
|
+
}, { path, name }: {
|
|
19
|
+
path: string;
|
|
20
|
+
name: AppRouteModule['name'];
|
|
21
|
+
}): AppRouteModule[];
|