@gx-design-vue/pro-layout 0.1.0-beta.96 → 0.1.0-beta.98
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/ProLayout.d.ts +7 -4
- package/dist/SlotsTypings.d.ts +3 -3
- package/dist/components/PageContainer/PageHeader.d.ts +1 -1
- package/dist/components/PageContainer/index.d.ts +7 -3
- package/dist/components/PageContainer/props.d.ts +2 -1
- package/dist/hooks/menu/index.d.ts +2 -2
- package/dist/pro-layout.js +1140 -1125
- package/dist/pro-layout.umd.cjs +2 -2
- package/dist/props.d.ts +1 -0
- package/dist/typings.d.ts +7 -7
- package/package.json +1 -1
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 type {
|
|
6
|
+
import type { 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';
|
|
@@ -78,6 +78,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
78
78
|
type: import("vue").PropType<FooterRender>;
|
|
79
79
|
default: () => undefined;
|
|
80
80
|
};
|
|
81
|
+
onContentFullScreenChange: import("vue").PropType<(value: boolean) => void>;
|
|
81
82
|
onTabsChange: {
|
|
82
83
|
type: import("vue").PropType<(list: AppRouteModule[]) => void>;
|
|
83
84
|
};
|
|
@@ -288,7 +289,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
288
289
|
};
|
|
289
290
|
onDarkChange: import("vue").PropType<(value?: boolean | "system") => void>;
|
|
290
291
|
'onUpdate:dark': import("vue").PropType<(value?: boolean | "system") => void>;
|
|
291
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openKeys" | "select" | "collapse" | "update:collapsed" | "reloadPage" | "update:tabs" | "update:dark" | "update:open-keys" | "update:selected-keys" | "logoClick" | "menuClick" | "tabsChange" | "darkChange")[], "openKeys" | "select" | "collapse" | "update:collapsed" | "reloadPage" | "update:tabs" | "update:dark" | "update:open-keys" | "update:selected-keys" | "logoClick" | "menuClick" | "tabsChange" | "darkChange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
292
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openKeys" | "select" | "collapse" | "update:collapsed" | "reloadPage" | "update:tabs" | "update:dark" | "update:open-keys" | "update:selected-keys" | "logoClick" | "menuClick" | "tabsChange" | "darkChange" | "contentFullScreenChange")[], "openKeys" | "select" | "collapse" | "update:collapsed" | "reloadPage" | "update:tabs" | "update:dark" | "update:open-keys" | "update:selected-keys" | "logoClick" | "menuClick" | "tabsChange" | "darkChange" | "contentFullScreenChange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
292
293
|
id: import("vue").PropType<string>;
|
|
293
294
|
class: import("vue").PropType<string>;
|
|
294
295
|
style: {
|
|
@@ -356,6 +357,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
356
357
|
type: import("vue").PropType<FooterRender>;
|
|
357
358
|
default: () => undefined;
|
|
358
359
|
};
|
|
360
|
+
onContentFullScreenChange: import("vue").PropType<(value: boolean) => void>;
|
|
359
361
|
onTabsChange: {
|
|
360
362
|
type: import("vue").PropType<(list: AppRouteModule[]) => void>;
|
|
361
363
|
};
|
|
@@ -576,6 +578,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
576
578
|
"onUpdate:tabs"?: ((...args: any[]) => any) | undefined;
|
|
577
579
|
"onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
|
|
578
580
|
onMenuClick?: ((...args: any[]) => any) | undefined;
|
|
581
|
+
onContentFullScreenChange?: ((...args: any[]) => any) | undefined;
|
|
579
582
|
onDarkChange?: ((...args: any[]) => any) | undefined;
|
|
580
583
|
"onUpdate:dark"?: ((...args: any[]) => any) | undefined;
|
|
581
584
|
"onUpdate:open-keys"?: ((...args: any[]) => any) | undefined;
|
|
@@ -738,9 +741,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
738
741
|
headerContentRender(props?: GlobalHeaderProps): void;
|
|
739
742
|
collapsedButtonRender(collapsed?: boolean): void;
|
|
740
743
|
breadcrumbRender(props: {
|
|
741
|
-
route:
|
|
744
|
+
route: ProRoute;
|
|
742
745
|
params: any;
|
|
743
|
-
routes: Array<
|
|
746
|
+
routes: Array<ProRoute>;
|
|
744
747
|
paths: Array<string>;
|
|
745
748
|
}): void;
|
|
746
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
|
}>;
|
|
@@ -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: {
|
|
@@ -49,7 +49,8 @@ declare const PageContainer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
} & {
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
onContentFullScreenChange: import("vue").PropType<(value: boolean) => void>;
|
|
53
|
+
}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "contentFullScreenChange"[], "contentFullScreenChange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
53
54
|
usePageCard: {
|
|
54
55
|
type: import("vue").PropType<boolean>;
|
|
55
56
|
default: () => undefined;
|
|
@@ -95,7 +96,10 @@ declare const PageContainer: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
95
96
|
} & {
|
|
96
97
|
default: boolean;
|
|
97
98
|
};
|
|
98
|
-
|
|
99
|
+
onContentFullScreenChange: import("vue").PropType<(value: boolean) => void>;
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
onContentFullScreenChange?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, {
|
|
99
103
|
loading: boolean;
|
|
100
104
|
contentWidth: string | number | undefined;
|
|
101
105
|
usePageCard: boolean;
|
|
@@ -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: {
|
|
@@ -69,4 +69,5 @@ export declare const pageContainerProps: {
|
|
|
69
69
|
} & {
|
|
70
70
|
default: boolean;
|
|
71
71
|
};
|
|
72
|
+
onContentFullScreenChange: PropType<(value: boolean) => void>;
|
|
72
73
|
};
|
|
@@ -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
|
};
|