@gx-design-vue/pro-layout 0.1.0-beta.62 → 0.1.0-beta.63
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 +3 -3
- package/dist/RouteTypings.d.ts +6 -7
- package/dist/_utils/ant-design-vue/index.d.ts +1 -0
- package/dist/pro-layout.js +1911 -1862
- package/dist/pro-layout.umd.cjs +2 -2
- package/dist/props.d.ts +1 -1
- package/package.json +2 -2
package/dist/Context.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type ProLayoutContextProps = {
|
|
|
13
13
|
selectedKeys: Ref<string[]>;
|
|
14
14
|
openKeys: Ref<string[]>;
|
|
15
15
|
menuData: Ref<AppRouteModule[]>;
|
|
16
|
+
levelMenuData: ComputedRef<AppRouteModule[]>;
|
|
16
17
|
flatMenuData: ComputedRef<AppRouteModule[]>;
|
|
17
18
|
breadcrumb: ComputedRef<BreadcrumbListReturn>;
|
|
18
19
|
layout: Ref<ProLayoutType>;
|
package/dist/ProLayout.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
22
22
|
};
|
|
23
23
|
levelMenuData: {
|
|
24
24
|
type: import("vue").PropType<AppRouteModule[]>;
|
|
25
|
-
default: () =>
|
|
25
|
+
default: () => undefined;
|
|
26
26
|
};
|
|
27
27
|
waterMark: {
|
|
28
28
|
type: import("vue").PropType<boolean>;
|
|
@@ -297,7 +297,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
297
297
|
};
|
|
298
298
|
levelMenuData: {
|
|
299
299
|
type: import("vue").PropType<AppRouteModule[]>;
|
|
300
|
-
default: () =>
|
|
300
|
+
default: () => undefined;
|
|
301
301
|
};
|
|
302
302
|
waterMark: {
|
|
303
303
|
type: import("vue").PropType<boolean>;
|
|
@@ -631,10 +631,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
631
631
|
extraRightDropdownRender: import("./SlotsTypings").DefaultRender;
|
|
632
632
|
rightContentRender: RightContentRender;
|
|
633
633
|
headerTitleRender: import("@gx-design-vue/pro-utils/dist").WithFalse<(props: any, defaultDom: CustomRender) => CustomRender>;
|
|
634
|
+
levelMenuData: AppRouteModule[];
|
|
634
635
|
headerRender: HeaderRender;
|
|
635
636
|
headerContentRender: HeaderContentRender;
|
|
636
637
|
pure: boolean;
|
|
637
|
-
levelMenuData: AppRouteModule[];
|
|
638
638
|
waterMark: boolean;
|
|
639
639
|
pageLockRender: import("./SlotsTypings").DefaultRender;
|
|
640
640
|
contentStyle: CSSProperties;
|
package/dist/RouteTypings.d.ts
CHANGED
|
@@ -5,32 +5,31 @@ import type { BadgeProps } from './_utils';
|
|
|
5
5
|
import type { MenuItemBadgeRender } from './SlotsTypings';
|
|
6
6
|
export type Component<T = any> = ReturnType<typeof defineComponent> | (() => Promise<typeof import('*.vue')>) | (() => Promise<T>);
|
|
7
7
|
export type AppRouteModule = {
|
|
8
|
+
name: string | symbol;
|
|
8
9
|
meta?: MenuMeta;
|
|
9
10
|
key?: string;
|
|
10
11
|
query?: RecordType;
|
|
11
12
|
params?: RecordType;
|
|
13
|
+
hidden?: string;
|
|
12
14
|
fullPath?: string;
|
|
13
15
|
linkPath?: string;
|
|
14
16
|
children?: AppRouteModule[];
|
|
15
|
-
hidden?: boolean;
|
|
16
17
|
redirect?: string | ((to: RouteLocation) => string);
|
|
17
18
|
component?: Component;
|
|
18
|
-
} & Omit<RouteRecordRaw, 'meta' | 'children' | 'redirect'>;
|
|
19
|
+
} & Omit<RouteRecordRaw, 'meta' | 'children' | 'redirect' | 'name'>;
|
|
19
20
|
export interface MenuDataItem extends MenuMeta {
|
|
21
|
+
name: string;
|
|
20
22
|
id?: number;
|
|
21
23
|
menuId?: number;
|
|
22
24
|
parentId?: number;
|
|
23
25
|
createTime?: string;
|
|
24
|
-
orderNum?: string;
|
|
25
|
-
name?: string;
|
|
26
26
|
path?: string;
|
|
27
27
|
fullPath?: string;
|
|
28
|
-
|
|
28
|
+
link?: string;
|
|
29
29
|
linkPath?: string;
|
|
30
30
|
key?: string;
|
|
31
31
|
redirect?: string;
|
|
32
32
|
component?: string;
|
|
33
|
-
hidden?: boolean;
|
|
34
33
|
meta?: MenuMeta;
|
|
35
34
|
children?: MenuDataItem[];
|
|
36
35
|
}
|
|
@@ -45,8 +44,8 @@ export type Meta = {
|
|
|
45
44
|
isHome?: 0 | 1;
|
|
46
45
|
icon?: string;
|
|
47
46
|
iconType?: number;
|
|
47
|
+
order?: number;
|
|
48
48
|
hidden?: boolean;
|
|
49
|
-
hideInMenu?: boolean;
|
|
50
49
|
hideChildrenInMenu?: boolean;
|
|
51
50
|
linkStatus?: 0 | 1;
|
|
52
51
|
link?: string;
|