@gx-design-vue/pro-layout 0.1.0-beta.26 → 0.1.0-beta.28
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/Context.d.ts +1 -0
- package/dist/ProLayout.d.ts +9 -0
- package/dist/pro-layout.mjs +1233 -1197
- package/dist/pro-layout.umd.js +1 -1
- package/dist/props.d.ts +4 -0
- package/dist/route.d.ts +1 -0
- package/dist/utils/getMenuData.d.ts +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { RecordType } from '@gx-design-vue/pro-utils';
|
|
2
2
|
import type { AppRouteModule } from '../route';
|
|
3
|
-
export { clearMenuItem, flatMap, getMenuFirstChildren, getRealPath } from '../utils';
|
|
3
|
+
export { clearMenuItem, flatMap, getMenuFirstChildren, getRealPath, getMenuFirstLastChildPath, getMatchedList } from '../utils';
|
|
4
4
|
export type MenuData = {
|
|
5
5
|
menuData: AppRouteModule[];
|
|
6
6
|
breadcrumb: RecordType;
|
|
7
|
+
levelMenuData: AppRouteModule[];
|
|
7
8
|
};
|
|
8
9
|
export declare const getMenuData: (routes: AppRouteModule[]) => MenuData;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function clearMenuItem(menusData: AppRouteModule[]): AppRouteModu
|
|
|
9
9
|
export declare function flatMap(menusData: AppRouteModule[]): AppRouteModule[];
|
|
10
10
|
export declare function getMenuFirstChildren(menus: AppRouteModule[], key?: string): AppRouteModule[];
|
|
11
11
|
export declare function getMenuFirstLastChildPath(data: AppRouteModule[]): string;
|
|
12
|
+
export declare function getMatchedList(data: AppRouteModule[], path: string): AppRouteModule[];
|
|
12
13
|
export declare function handleThemeConfig(config: ThemeConfig): {
|
|
13
14
|
theme: import("@gx-design-vue/pro-provider").ThemeType | undefined;
|
|
14
15
|
layout: "side" | "mix" | "simple" | "wide";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-layout",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.28",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@vueuse/core": "^9.10.0",
|
|
27
|
-
"@gx-design-vue/pro-utils": "^0.2.0-beta.
|
|
27
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.19",
|
|
28
28
|
"@gx-design-vue/pro-hooks": "^0.2.0-beta.14",
|
|
29
29
|
"@gx-design-vue/pro-provider": "^0.1.0-beta.43",
|
|
30
30
|
"@gx-design-vue/pro-watermark": "^0.2.0-beta.4",
|