@gx-design-vue/pro-layout 0.1.0-beta.205 → 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.
- package/dist/Context/expose.d.ts +2 -0
- package/dist/{Context.d.ts → Context/index.d.ts} +5 -6
- package/dist/components/TabsRoute/index.d.ts +2 -2
- package/dist/hooks/layout/use-layout-expose.d.ts +11 -0
- package/dist/hooks/menu/index.d.ts +3 -2
- package/dist/index.d.ts +2 -1
- package/dist/pro-layout.js +1355 -1361
- package/dist/pro-layout.umd.cjs +7 -7
- package/dist/types/typings.d.ts +7 -4
- package/dist/utils/menu.d.ts +4 -8
- package/package.json +1 -1
- package/dist/hooks/layout/index.d.ts +0 -16
package/dist/types/typings.d.ts
CHANGED
|
@@ -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
|
-
|
|
54
|
+
tabsRouteRef: TabsRouteExpose | undefined;
|
|
55
55
|
}
|
|
56
|
-
export
|
|
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
|
-
|
|
62
|
+
update: (record: AppRouteModule, { type, addType, params }: {
|
|
60
63
|
type: 'add' | 'merge' | 'remove';
|
|
61
64
|
addType?: 'push' | 'unshift';
|
|
62
65
|
params: Partial<AppRouteModule>;
|
package/dist/utils/menu.d.ts
CHANGED
|
@@ -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
|
|
16
|
-
export declare function getMatchedList(
|
|
17
|
-
menuData: AppRouteModule[];
|
|
15
|
+
export declare function getParentKeys(key: string): string[];
|
|
16
|
+
export declare function getMatchedList(menuProps: {
|
|
18
17
|
flatMenus: AppRouteModule[];
|
|
19
|
-
menuMap
|
|
20
|
-
},
|
|
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,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
|
-
};
|