@gx-design-vue/pro-layout 0.1.0-beta.204 → 0.1.0-beta.206

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,5 +1,5 @@
1
1
  import type { SemanticClassNames, SemanticStyles } from '@gx-design-vue/pro-utils';
2
- import type { ExtractPropTypes } from 'vue';
2
+ import type { ExtractPropTypes, Ref } from 'vue';
3
3
  import type { CommonLogoProps } from '../components/LogoContent/props';
4
4
  import type { SiderProps } from '../components/SiderMenu/typings';
5
5
  import type { ProLayoutConfig } from '../config';
@@ -51,12 +51,15 @@ export type BasicLayoutProps = Partial<ExtractPropTypes<typeof basicLayoutProps>
51
51
  settings: ProLayoutConfig;
52
52
  };
53
53
  export interface ProLayoutExpose {
54
- tabsComRef: () => TabsComExpose;
54
+ tabsRouteRef: TabsRouteExpose | undefined;
55
55
  }
56
- export interface TabsComExpose {
56
+ export type ProLayoutInjextExpose = {
57
+ [K in keyof ProLayoutExpose]: Ref<ProLayoutExpose[K]>;
58
+ };
59
+ export interface TabsRouteExpose {
57
60
  clean: () => void;
58
61
  close: (name: AppRouteModule['name'], callback?: (row: AppRouteModule) => void) => void;
59
- change: (record: AppRouteModule, { type, addType, params }: {
62
+ update: (record: AppRouteModule, { type, addType, params }: {
60
63
  type: 'add' | 'merge' | 'remove';
61
64
  addType?: 'push' | 'unshift';
62
65
  params: Partial<AppRouteModule>;
@@ -12,13 +12,9 @@ export declare function clearMenuItem(menusData: AppRouteModule[]): AppRouteModu
12
12
  export declare function flatMap(menusData: AppRouteModule[]): AppRouteModule[];
13
13
  export declare function getMenuFirstChildren(menus: AppRouteModule[], key?: string): AppRouteModule[];
14
14
  export declare function getLastPath(data: AppRouteModule[]): string;
15
- export declare function findLastKey(tree: AppRouteModule[], targetKey: string): string | undefined;
16
- export declare function getMatchedList({ menuData, flatMenus, menuMap }: {
17
- menuData: AppRouteModule[];
15
+ export declare function getParentKeys(key: string): string[];
16
+ export declare function getMatchedList(menuProps: {
18
17
  flatMenus: AppRouteModule[];
19
- menuMap?: MenuData['menuMap'];
20
- }, { path, name }: {
21
- path: string;
22
- name: AppRouteModule['name'];
23
- }): AppRouteModule[];
18
+ menuMap: MenuData['menuMap'];
19
+ }, name: AppRouteModule['name']): AppRouteModule[];
24
20
  export declare function filterTree(tree: AppRouteModule[], filterFn: (node: AppRouteModule) => boolean): AppRouteModule[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-layout",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.204",
4
+ "version": "0.1.0-beta.206",
5
5
  "description": "Gx Design Pro Layout",
6
6
  "exports": {
7
7
  ".": {
@@ -36,7 +36,7 @@
36
36
  "@gx-design-vue/color-picker": "^0.2.0-beta.39",
37
37
  "@gx-design-vue/pro-app": "^0.1.0-beta.35",
38
38
  "@gx-design-vue/pro-hooks": "^0.2.0-beta.61",
39
- "@gx-design-vue/pro-modal": "^0.2.0-beta.40",
39
+ "@gx-design-vue/pro-modal": "^0.2.0-beta.41",
40
40
  "@gx-design-vue/pro-provider": "^0.1.0-beta.142",
41
41
  "@gx-design-vue/pro-utils": "^0.2.0-beta.87",
42
42
  "@gx-design-vue/pro-watermark": "^0.2.0-beta.16",
@@ -1,16 +0,0 @@
1
- import type { ComputedRef } from 'vue';
2
- import type { AppRouteModule } from '../../types/RouteTypings';
3
- import type { TabsComExpose } from '../../types/typings';
4
- export interface ProLayoutExpose {
5
- tabsComRef: () => TabsComExpose;
6
- }
7
- export default function (proLayout: ComputedRef<ProLayoutExpose | undefined>): {
8
- tabsRouter: {
9
- clean: () => void | undefined;
10
- close: (options?: {
11
- name?: AppRouteModule["name"];
12
- callback?: (row: AppRouteModule) => void;
13
- }) => void | undefined;
14
- change: (params: Partial<AppRouteModule>, route?: AppRouteModule) => void | undefined;
15
- };
16
- };