@gx-design-vue/pro-layout 0.1.0-beta.27 → 0.1.0-beta.29

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.
@@ -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, getMenuFirstLastChildPath } from '../utils';
3
+ export { clearMenuItem, flatMap, getMenuFirstChildren, 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;
@@ -1,14 +1,14 @@
1
- import type { AppRouteModule, Meta } from '../route';
1
+ import type { AppRouteModule } 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;
8
7
  export declare function clearMenuItem(menusData: AppRouteModule[]): AppRouteModule[];
9
8
  export declare function flatMap(menusData: AppRouteModule[]): AppRouteModule[];
10
9
  export declare function getMenuFirstChildren(menus: AppRouteModule[], key?: string): AppRouteModule[];
11
10
  export declare function getMenuFirstLastChildPath(data: AppRouteModule[]): string;
11
+ export declare function getMatchedList(data: AppRouteModule[], path: string): AppRouteModule[];
12
12
  export declare function handleThemeConfig(config: ThemeConfig): {
13
13
  theme: import("@gx-design-vue/pro-provider").ThemeType | undefined;
14
14
  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.27",
3
+ "version": "0.1.0-beta.29",
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.18",
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",