@gx-design-vue/pro-layout 0.1.0-beta.97 → 0.1.0-beta.99
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 +2 -1
- package/dist/ProLayout.d.ts +3 -3
- package/dist/SlotsTypings.d.ts +3 -3
- package/dist/WrapContent.d.ts +148 -2
- package/dist/components/PageContainer/PageHeader.d.ts +1 -1
- package/dist/components/PageContainer/index.d.ts +1 -1
- package/dist/components/PageContainer/props.d.ts +1 -1
- package/dist/components/SettingDrawer/BlockCheckbox.d.ts +1 -1
- package/dist/components/SettingDrawer/RegionalChange.d.ts +1 -1
- package/dist/components/SettingDrawer/ThemeColor.d.ts +1 -1
- package/dist/components/TabsRoute/index.d.ts +5 -1
- package/dist/hooks/menu/index.d.ts +2 -2
- package/dist/pro-layout.js +1843 -1804
- package/dist/pro-layout.umd.cjs +2 -2
- package/dist/typings.d.ts +19 -7
- package/package.json +1 -1
package/dist/Context.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { PrefixCls } from '@gx-design-vue/pro-utils';
|
|
|
3
3
|
import type { BaseMenuTheme, ProLayoutTheme, ProLayoutType } from '@gx-design-vue/pro-provider';
|
|
4
4
|
import type { ShortcutKeyProps } from './props';
|
|
5
5
|
import type { BasicLayoutProps } from './ProLayout';
|
|
6
|
-
import type { BreadcrumbListReturn } from './typings';
|
|
6
|
+
import type { BreadcrumbListReturn, TabsComExpose } from './typings';
|
|
7
7
|
import type { AppRouteModule } from './RouteTypings';
|
|
8
8
|
import { commonPageContainerProps } from './components/PageContainer/props';
|
|
9
9
|
export type PageContainerPropsType = Partial<ExtractPropTypes<typeof commonPageContainerProps>>;
|
|
@@ -12,6 +12,7 @@ export type ProLayoutContextProps = {
|
|
|
12
12
|
getPrefixCls: (prefixCls: PrefixCls) => string;
|
|
13
13
|
selectedKeys: Ref<string[]>;
|
|
14
14
|
openKeys: Ref<string[]>;
|
|
15
|
+
tabsComRef: Ref<TabsComExpose | undefined>;
|
|
15
16
|
menuData: ComputedRef<AppRouteModule[]>;
|
|
16
17
|
levelMenuData: ComputedRef<AppRouteModule[]>;
|
|
17
18
|
flatMenuData: ComputedRef<AppRouteModule[]>;
|
package/dist/ProLayout.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type CustomRender } from '@gx-design-vue/pro-utils';
|
|
|
3
3
|
import { basicLayoutProps } from './props';
|
|
4
4
|
import type { FooterRender, HeaderContentRender, HeaderLogoRender, HeaderRender, MenuContentRender, MenuFooterRender, MenuHeaderRender, RightContentRender } from './SlotsTypings';
|
|
5
5
|
import type { AppRouteModule } from './RouteTypings';
|
|
6
|
-
import
|
|
6
|
+
import { BreadcrumbProps, ProRoute } from './typings';
|
|
7
7
|
import type { DefaultHeaderProps } from './components/GlobalHeader/DefaultHeader';
|
|
8
8
|
import type { SiderMenuProps } from './components/SiderMenu/SiderMenu';
|
|
9
9
|
import type { LogoContentProps } from './components/LogoContent';
|
|
@@ -741,9 +741,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
741
741
|
headerContentRender(props?: GlobalHeaderProps): void;
|
|
742
742
|
collapsedButtonRender(collapsed?: boolean): void;
|
|
743
743
|
breadcrumbRender(props: {
|
|
744
|
-
route:
|
|
744
|
+
route: ProRoute;
|
|
745
745
|
params: any;
|
|
746
|
-
routes: Array<
|
|
746
|
+
routes: Array<ProRoute>;
|
|
747
747
|
paths: Array<string>;
|
|
748
748
|
}): void;
|
|
749
749
|
menuHeaderRender(props?: SiderMenuProps): void;
|
package/dist/SlotsTypings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BreadcrumbProps, ProRoute } from './typings';
|
|
3
3
|
import type { BasicLayoutProps } from './ProLayout';
|
|
4
4
|
import type { AppRouteModule, MenuMeta } from './RouteTypings';
|
|
5
5
|
import type { GlobalHeaderProps } from './components/GlobalHeader';
|
|
@@ -49,9 +49,9 @@ export type ProSlots = Readonly<{
|
|
|
49
49
|
menuItemRender: (item: AppRouteModule, title?: CustomRender, icon?: CustomRender) => void;
|
|
50
50
|
logoContentRender: (logo: CustomRender, title: CustomRender, props?: LogoContentProps) => void;
|
|
51
51
|
breadcrumbRender: (props: {
|
|
52
|
-
route:
|
|
52
|
+
route: ProRoute;
|
|
53
53
|
params: any;
|
|
54
|
-
routes: Array<
|
|
54
|
+
routes: Array<ProRoute>;
|
|
55
55
|
paths: Array<string>;
|
|
56
56
|
}) => void;
|
|
57
57
|
}>;
|
package/dist/WrapContent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import type { BaseTabsRouteProps, TabsRouteProps } from './components/TabsRoute';
|
|
3
3
|
export interface WrapContentProps extends TabsRouteProps {
|
|
4
4
|
tabsRouteProps?: BaseTabsRouteProps;
|
|
@@ -11,4 +11,150 @@ export interface WrapContentProps extends TabsRouteProps {
|
|
|
11
11
|
siderWidth?: number;
|
|
12
12
|
collapsedWidth?: number;
|
|
13
13
|
}
|
|
14
|
-
export declare const WrapContent:
|
|
14
|
+
export declare const WrapContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
+
hashId: PropType<string>;
|
|
16
|
+
prefixCls: PropType<string>;
|
|
17
|
+
contentFullScreen: PropType<boolean>;
|
|
18
|
+
fullScreenOnTabsHide: PropType<boolean>;
|
|
19
|
+
showTabsBar: {
|
|
20
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["showTabsBar"]>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
siderWidth: {
|
|
24
|
+
type: PropType<number>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
collapsedWidth: import("vue-types").VueTypeValidableDef<number> & {
|
|
28
|
+
default: number;
|
|
29
|
+
} & {
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
isChildrenLayout: import("vue-types").VueTypeValidableDef<boolean>;
|
|
33
|
+
tabsRouteProps: {
|
|
34
|
+
type: PropType<BaseTabsRouteProps>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
loading: import("vue-types").VueTypeValidableDef<boolean>;
|
|
38
|
+
collapsed: {
|
|
39
|
+
type: PropType<boolean>;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
fixedTabsBar: {
|
|
43
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["fixedTabsBar"]>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
isMobile: import("vue-types").VueTypeValidableDef<boolean>;
|
|
47
|
+
onReloadPage: {
|
|
48
|
+
type: PropType<() => void>;
|
|
49
|
+
};
|
|
50
|
+
onTabsChange: {
|
|
51
|
+
type: PropType<(list: import("./RouteTypings").AppRouteModule[]) => void>;
|
|
52
|
+
};
|
|
53
|
+
'onUpdate:tabs': {
|
|
54
|
+
type: PropType<(list: import("./RouteTypings").AppRouteModule[]) => void>;
|
|
55
|
+
};
|
|
56
|
+
visible: {
|
|
57
|
+
type: PropType<boolean>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
destroyOnHide: {
|
|
61
|
+
type: PropType<boolean>;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
storageTabsBar: {
|
|
65
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["storageTabsBar"]>;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
itemRender: {
|
|
69
|
+
type: PropType<import("./SlotsTypings").TabsRouteItemRender>;
|
|
70
|
+
default: () => undefined;
|
|
71
|
+
};
|
|
72
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
+
hashId: PropType<string>;
|
|
76
|
+
prefixCls: PropType<string>;
|
|
77
|
+
contentFullScreen: PropType<boolean>;
|
|
78
|
+
fullScreenOnTabsHide: PropType<boolean>;
|
|
79
|
+
showTabsBar: {
|
|
80
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["showTabsBar"]>;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
siderWidth: {
|
|
84
|
+
type: PropType<number>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
collapsedWidth: import("vue-types").VueTypeValidableDef<number> & {
|
|
88
|
+
default: number;
|
|
89
|
+
} & {
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
isChildrenLayout: import("vue-types").VueTypeValidableDef<boolean>;
|
|
93
|
+
tabsRouteProps: {
|
|
94
|
+
type: PropType<BaseTabsRouteProps>;
|
|
95
|
+
default: () => {};
|
|
96
|
+
};
|
|
97
|
+
loading: import("vue-types").VueTypeValidableDef<boolean>;
|
|
98
|
+
collapsed: {
|
|
99
|
+
type: PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
fixedTabsBar: {
|
|
103
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["fixedTabsBar"]>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
isMobile: import("vue-types").VueTypeValidableDef<boolean>;
|
|
107
|
+
onReloadPage: {
|
|
108
|
+
type: PropType<() => void>;
|
|
109
|
+
};
|
|
110
|
+
onTabsChange: {
|
|
111
|
+
type: PropType<(list: import("./RouteTypings").AppRouteModule[]) => void>;
|
|
112
|
+
};
|
|
113
|
+
'onUpdate:tabs': {
|
|
114
|
+
type: PropType<(list: import("./RouteTypings").AppRouteModule[]) => void>;
|
|
115
|
+
};
|
|
116
|
+
visible: {
|
|
117
|
+
type: PropType<boolean>;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
destroyOnHide: {
|
|
121
|
+
type: PropType<boolean>;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
storageTabsBar: {
|
|
125
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["storageTabsBar"]>;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
itemRender: {
|
|
129
|
+
type: PropType<import("./SlotsTypings").TabsRouteItemRender>;
|
|
130
|
+
default: () => undefined;
|
|
131
|
+
};
|
|
132
|
+
}>> & Readonly<{}>, {
|
|
133
|
+
fixedTabsBar: boolean;
|
|
134
|
+
showTabsBar: boolean;
|
|
135
|
+
storageTabsBar: boolean;
|
|
136
|
+
collapsed: boolean;
|
|
137
|
+
collapsedWidth: number;
|
|
138
|
+
visible: boolean;
|
|
139
|
+
siderWidth: number;
|
|
140
|
+
destroyOnHide: boolean;
|
|
141
|
+
itemRender: import("./SlotsTypings").TabsRouteItemRender;
|
|
142
|
+
tabsRouteProps: Partial<import("vue").ExtractPropTypes<{
|
|
143
|
+
visible: {
|
|
144
|
+
type: PropType<boolean>;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
destroyOnHide: {
|
|
148
|
+
type: PropType<boolean>;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
storageTabsBar: {
|
|
152
|
+
type: PropType<import("@gx-design-vue/pro-provider/dist").ProLayoutConfig["storageTabsBar"]>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
itemRender: {
|
|
156
|
+
type: PropType<import("./SlotsTypings").TabsRouteItemRender>;
|
|
157
|
+
default: () => undefined;
|
|
158
|
+
};
|
|
159
|
+
}>>;
|
|
160
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import type { BreadcrumbProps } from '
|
|
2
|
+
import type { BreadcrumbProps } from '../../typings';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
close: {
|
|
5
5
|
type: PropType<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ExtractPropTypes, SlotsType } from 'vue';
|
|
2
2
|
import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import { pageContainerProps } from './props';
|
|
4
|
-
import type { BreadcrumbProps } from '../../
|
|
4
|
+
import type { BreadcrumbProps } from '../../typings';
|
|
5
5
|
export type PageContainerProps = Partial<ExtractPropTypes<typeof pageContainerProps>>;
|
|
6
6
|
declare const PageContainer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
7
7
|
usePageCard: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, PropType } from 'vue';
|
|
2
2
|
import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
3
3
|
import type { ProLayoutConfig } from '@gx-design-vue/pro-provider';
|
|
4
|
-
import type { BreadcrumbProps } from '../../
|
|
4
|
+
import type { BreadcrumbProps } from '../../typings';
|
|
5
5
|
import type { DefaultRender } from '../../SlotsTypings';
|
|
6
6
|
export declare const commonPageContainerProps: {
|
|
7
7
|
usePageCard: {
|
|
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
45
|
};
|
|
46
46
|
onChange: PropType<(value: string, event: MouseEvent) => void>;
|
|
47
47
|
}>> & Readonly<{}>, {
|
|
48
|
-
prefixCls: string;
|
|
49
48
|
hashId: string;
|
|
49
|
+
prefixCls: string;
|
|
50
50
|
value: string;
|
|
51
51
|
configType: string;
|
|
52
52
|
list: {
|
|
@@ -37,9 +37,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
37
37
|
};
|
|
38
38
|
onChange: PropType<(key: keyof SettingsState, value: boolean) => void>;
|
|
39
39
|
}>> & Readonly<{}>, {
|
|
40
|
-
prefixCls: string;
|
|
41
40
|
hashId: string;
|
|
42
41
|
label: string;
|
|
42
|
+
prefixCls: string;
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
value: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -35,8 +35,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
35
35
|
};
|
|
36
36
|
onChange: PropType<(color: string, key?: keyof SettingsState) => void>;
|
|
37
37
|
}>> & Readonly<{}>, {
|
|
38
|
-
prefixCls: string;
|
|
39
38
|
hashId: string;
|
|
39
|
+
prefixCls: string;
|
|
40
40
|
colorList: {
|
|
41
41
|
key: string;
|
|
42
42
|
color: string;
|
|
@@ -3,6 +3,10 @@ import tabsRouteProps, { baseTabsRouter } from './props';
|
|
|
3
3
|
import type { AppRouteModule } from '../../RouteTypings';
|
|
4
4
|
export type TabsRouteProps = Partial<ExtractPropTypes<typeof tabsRouteProps>>;
|
|
5
5
|
export type BaseTabsRouteProps = Partial<ExtractPropTypes<typeof baseTabsRouter>>;
|
|
6
|
+
export interface MenuDataState {
|
|
7
|
+
fixed: AppRouteModule[];
|
|
8
|
+
normal: AppRouteModule[];
|
|
9
|
+
}
|
|
6
10
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
7
11
|
loading: import("vue-types").VueTypeValidableDef<boolean>;
|
|
8
12
|
collapsed: {
|
|
@@ -94,7 +98,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
94
98
|
default: () => undefined;
|
|
95
99
|
};
|
|
96
100
|
}>> & Readonly<{}>, {
|
|
97
|
-
itemRender: import("../../SlotsTypings").TabsRouteItemRender;
|
|
98
101
|
fixedTabsBar: boolean;
|
|
99
102
|
storageTabsBar: boolean;
|
|
100
103
|
collapsed: boolean;
|
|
@@ -102,5 +105,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
102
105
|
visible: boolean;
|
|
103
106
|
siderWidth: number;
|
|
104
107
|
destroyOnHide: boolean;
|
|
108
|
+
itemRender: import("../../SlotsTypings").TabsRouteItemRender;
|
|
105
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
110
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
2
|
import type { AppRouteModule } from '../../RouteTypings';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ProRoute } from '../../typings';
|
|
4
4
|
export type MenuState = {
|
|
5
5
|
menuData: AppRouteModule[];
|
|
6
6
|
levelMenuData: AppRouteModule[];
|
|
@@ -15,5 +15,5 @@ export default function (options?: {
|
|
|
15
15
|
selectedKeys: string[];
|
|
16
16
|
};
|
|
17
17
|
matchedMenu: ComputedRef<AppRouteModule[]>;
|
|
18
|
-
breadcrumbRouters: ComputedRef<
|
|
18
|
+
breadcrumbRouters: ComputedRef<ProRoute[]>;
|
|
19
19
|
};
|