@gx-design-vue/pro-layout 0.1.0-beta.9 → 0.1.0-beta.90
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/README.md +3 -3
- package/dist/Context.d.ts +35 -40
- package/dist/ProLayout.d.ts +397 -367
- package/dist/{route.d.ts → RouteTypings.d.ts} +31 -31
- package/dist/SlotsTypings.d.ts +64 -0
- package/dist/WrapContent.d.ts +5 -5
- package/dist/_utils/ant-design-vue/badge.d.ts +1 -0
- package/dist/_utils/ant-design-vue/breadcrumb.d.ts +1 -0
- package/dist/_utils/ant-design-vue/index.d.ts +4 -0
- package/dist/_utils/ant-design-vue/menu.d.ts +2 -0
- package/dist/_utils/ant-design-vue/spin.d.ts +1 -0
- package/dist/components/AppPage/context.d.ts +6 -0
- package/dist/components/AppPage/index.d.ts +52 -0
- package/dist/components/AppPage/style.d.ts +4 -0
- package/dist/components/AppsLogoComponents/AppLogoList.d.ts +18 -0
- package/dist/components/AppsLogoComponents/AppsLogo.d.ts +5 -0
- package/dist/components/AppsLogoComponents/DefaultContent.d.ts +20 -0
- package/dist/components/AppsLogoComponents/SimpleContent.d.ts +30 -0
- package/dist/components/AppsLogoComponents/index.d.ts +13 -0
- package/dist/components/AppsLogoComponents/props.d.ts +23 -0
- package/dist/components/{GlobalHeader/style/index.d.ts → AppsLogoComponents/style/default.d.ts} +2 -1
- package/dist/components/AppsLogoComponents/style/index.d.ts +4 -0
- package/dist/components/{GlobalHeader/style/globalHeader.d.ts → AppsLogoComponents/style/simple.d.ts} +2 -1
- package/dist/components/CollapsedIcon/index.d.ts +19 -0
- package/dist/components/CollapsedIcon/style.d.ts +6 -0
- package/dist/components/GIcon/index.d.ts +11 -0
- package/dist/components/GIcon/style.d.ts +4 -0
- package/dist/components/GlobalFooter/index.d.ts +14 -14
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +372 -343
- package/dist/components/GlobalHeader/index.d.ts +216 -153
- package/dist/components/GlobalHeader/props.d.ts +172 -120
- package/dist/components/GlobalHeader/style.d.ts +3 -0
- package/dist/components/LogoContent/index.d.ts +37 -55
- package/dist/components/LogoContent/props.d.ts +24 -20
- package/dist/components/PageContainer/PageHeader.d.ts +11 -10
- package/dist/components/PageContainer/index.d.ts +79 -36
- package/dist/components/PageContainer/props.d.ts +59 -17
- package/dist/components/PageLock/Popup.d.ts +38 -0
- package/dist/components/PageLock/UserForm.d.ts +30 -0
- package/dist/components/PageLock/index.d.ts +52 -0
- package/dist/components/PageLock/props.d.ts +41 -0
- package/dist/components/PageLock/style.d.ts +4 -0
- package/dist/components/PageLock/useFormState.d.ts +11 -0
- package/dist/components/PageTranstion/index.d.ts +4 -4
- package/dist/components/RightContent/Search/Panel.d.ts +26 -0
- package/dist/components/RightContent/Search/index.d.ts +35 -0
- package/dist/components/RightContent/Search/props.d.ts +9 -0
- package/dist/components/RightContent/Search/style.d.ts +4 -0
- package/dist/components/RightContent/index.d.ts +140 -0
- package/dist/components/RightContent/props.d.ts +70 -0
- package/dist/components/RightContent/style.d.ts +4 -0
- package/dist/components/SettingDrawer/BlockCheckbox.d.ts +9 -9
- package/dist/components/SettingDrawer/OthersChange.d.ts +9 -9
- package/dist/components/SettingDrawer/RegionalChange.d.ts +11 -11
- package/dist/components/SettingDrawer/ThemeColor.d.ts +13 -13
- package/dist/components/SettingDrawer/ThemeEditor.d.ts +19 -8
- package/dist/components/SettingDrawer/index.d.ts +102 -19
- package/dist/components/SettingDrawer/utils/config.d.ts +21 -1
- package/dist/components/SiderMenu/Arrow.d.ts +2 -0
- package/dist/components/SiderMenu/BaseMenu.d.ts +133 -148
- package/dist/components/SiderMenu/SiderMenu.d.ts +199 -221
- package/dist/components/SiderMenu/index.d.ts +190 -212
- package/dist/components/SiderMenu/props.d.ts +126 -145
- package/dist/components/SiderMenu/{style.d.ts → style/index.d.ts} +0 -2
- package/dist/components/SiderMenu/style/menu.d.ts +4 -0
- package/dist/components/SiderMenu/typings.d.ts +7 -7
- package/dist/components/TabsRoute/index.d.ts +96 -0
- package/dist/components/TabsRoute/props.d.ts +46 -0
- package/dist/components/{MultiTab → TabsRoute}/style.d.ts +1 -0
- package/dist/components/TabsRoute/utils/config.d.ts +14 -0
- package/dist/components/TabsRoute/utils/index.d.ts +1 -0
- package/dist/defaultSettings.d.ts +23 -38
- package/dist/hooks/menu/context.d.ts +9 -0
- package/dist/hooks/menu/index.d.ts +19 -0
- package/dist/hooks/theme/index.d.ts +16 -0
- package/dist/hooks/useClockTime/index.d.ts +9 -0
- package/dist/index.d.ts +24 -19
- package/dist/pro-layout.js +6867 -0
- package/dist/pro-layout.umd.cjs +20 -0
- package/dist/props.d.ts +174 -158
- package/dist/style/index.d.ts +0 -7
- package/dist/typings.d.ts +19 -1
- package/dist/utils/coverToNewToken.d.ts +8 -3
- package/dist/utils/index.d.ts +18 -30
- package/dist/utils/menu.d.ts +22 -0
- package/dist/utils/style.d.ts +1 -0
- package/dist/utils/util.d.ts +7 -0
- package/package.json +26 -46
- package/dist/PageLoading.d.ts +0 -6
- package/dist/RenderTypings.d.ts +0 -29
- package/dist/components/MultiTab/index.d.ts +0 -80
- package/dist/components/MultiTab/props.d.ts +0 -34
- package/dist/components/MultiTab/utils/config.d.ts +0 -4
- package/dist/hooks/context/index.d.ts +0 -5
- package/dist/pro-layout.mjs +0 -15317
- package/dist/pro-layout.umd.js +0 -106
- package/dist/utils/getMenuData.d.ts +0 -8
- package/dist/utils/isImg/index.d.ts +0 -3
- package/dist/utils/isUrl/index.d.ts +0 -2
|
@@ -1,83 +1,68 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
export interface RenderSetting {
|
|
4
|
-
headerRender?: false;
|
|
5
|
-
footerRender?: false;
|
|
6
|
-
menuRender?: false;
|
|
7
|
-
menuHeaderRender?: false;
|
|
8
|
-
}
|
|
9
|
-
export type ProSettings = ThemeConfig & RenderSetting;
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { ProLayoutConfig } from '@gx-design-vue/pro-provider';
|
|
10
3
|
export declare const defaultSettingProps: {
|
|
11
4
|
theme: {
|
|
12
|
-
type: PropType<
|
|
13
|
-
default:
|
|
5
|
+
type: PropType<ProLayoutConfig["theme"]>;
|
|
6
|
+
default: string;
|
|
14
7
|
};
|
|
15
8
|
layout: {
|
|
16
|
-
type: PropType<"
|
|
17
|
-
default: "
|
|
9
|
+
type: PropType<ProLayoutConfig["layout"]>;
|
|
10
|
+
default: import("@gx-design-vue/pro-provider/dist").ProLayoutType;
|
|
18
11
|
};
|
|
19
12
|
wideWidth: {
|
|
20
|
-
type: PropType<
|
|
21
|
-
default: number | undefined;
|
|
13
|
+
type: PropType<ProLayoutConfig["wideWidth"]>;
|
|
14
|
+
default: string | number | undefined;
|
|
22
15
|
};
|
|
23
16
|
splitMenus: {
|
|
24
|
-
type: PropType<
|
|
17
|
+
type: PropType<ProLayoutConfig["splitMenus"]>;
|
|
25
18
|
default: boolean;
|
|
26
19
|
};
|
|
27
|
-
|
|
28
|
-
type: PropType<
|
|
20
|
+
fixedTabsBar: {
|
|
21
|
+
type: PropType<ProLayoutConfig["fixedTabsBar"]>;
|
|
29
22
|
default: boolean;
|
|
30
23
|
};
|
|
31
24
|
showProgressBar: {
|
|
32
|
-
type: PropType<
|
|
25
|
+
type: PropType<ProLayoutConfig["showProgressBar"]>;
|
|
33
26
|
default: boolean;
|
|
34
27
|
};
|
|
35
28
|
fixedHeader: {
|
|
36
|
-
type: PropType<
|
|
29
|
+
type: PropType<ProLayoutConfig["fixedHeader"]>;
|
|
37
30
|
default: boolean;
|
|
38
31
|
};
|
|
39
32
|
fixSiderbar: {
|
|
40
|
-
type: PropType<
|
|
33
|
+
type: PropType<ProLayoutConfig["fixSiderbar"]>;
|
|
41
34
|
default: boolean;
|
|
42
35
|
};
|
|
43
36
|
showTabsBar: {
|
|
44
|
-
type: PropType<
|
|
37
|
+
type: PropType<ProLayoutConfig["showTabsBar"]>;
|
|
45
38
|
default: boolean;
|
|
46
39
|
};
|
|
47
|
-
|
|
48
|
-
type: PropType<
|
|
49
|
-
default: boolean | undefined;
|
|
50
|
-
};
|
|
51
|
-
autoHideHeader: {
|
|
52
|
-
type: PropType<boolean>;
|
|
40
|
+
storageTabsBar: {
|
|
41
|
+
type: PropType<ProLayoutConfig["storageTabsBar"]>;
|
|
53
42
|
default: boolean;
|
|
54
43
|
};
|
|
55
44
|
headerHeight: {
|
|
56
|
-
type: PropType<
|
|
45
|
+
type: PropType<ProLayoutConfig["headerHeight"]>;
|
|
57
46
|
default: number | undefined;
|
|
58
47
|
};
|
|
59
48
|
title: {
|
|
60
|
-
type: PropType<
|
|
49
|
+
type: PropType<ProLayoutConfig["title"]>;
|
|
61
50
|
default: string;
|
|
62
51
|
};
|
|
63
52
|
iconfontUrl: {
|
|
64
|
-
type: PropType<
|
|
53
|
+
type: PropType<ProLayoutConfig["iconfontUrl"]>;
|
|
65
54
|
default: string | undefined;
|
|
66
55
|
};
|
|
67
56
|
animate: {
|
|
68
|
-
type: PropType<
|
|
69
|
-
disabled?: boolean | undefined;
|
|
70
|
-
name: string;
|
|
71
|
-
direction: string;
|
|
72
|
-
} | undefined>;
|
|
57
|
+
type: PropType<ProLayoutConfig["animate"]>;
|
|
73
58
|
default: {
|
|
74
|
-
disabled?: boolean
|
|
59
|
+
disabled?: boolean;
|
|
75
60
|
name: string;
|
|
76
61
|
direction: string;
|
|
77
62
|
} | undefined;
|
|
78
63
|
};
|
|
79
64
|
primaryColor: {
|
|
80
|
-
type: PropType<
|
|
65
|
+
type: PropType<ProLayoutConfig["primaryColor"]>;
|
|
81
66
|
default: string;
|
|
82
67
|
};
|
|
83
68
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { AppRouteModule } from '../../RouteTypings';
|
|
3
|
+
interface ProLayoutMenuContext {
|
|
4
|
+
menuData: Ref<AppRouteModule[]>;
|
|
5
|
+
levelMenuData: Ref<AppRouteModule[]>;
|
|
6
|
+
matchedMenu: ComputedRef<AppRouteModule[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare const provideProLayoutMenuContext: (value: ProLayoutMenuContext) => void, useProLayoutMenuContext: (injectDefaultValue?: ProLayoutMenuContext | undefined) => ProLayoutMenuContext;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { AppRouteModule } from '../../RouteTypings';
|
|
3
|
+
import type { AntRoute } from '../../typings';
|
|
4
|
+
export type MenuState = {
|
|
5
|
+
menuData: AppRouteModule[];
|
|
6
|
+
levelMenuData: AppRouteModule[];
|
|
7
|
+
};
|
|
8
|
+
export default function ({ menuData, watchOpenKeys }: {
|
|
9
|
+
menuData?: any;
|
|
10
|
+
watchOpenKeys?: boolean;
|
|
11
|
+
}): {
|
|
12
|
+
menuState: MenuState;
|
|
13
|
+
matchedKeys: {
|
|
14
|
+
openKeys: string[];
|
|
15
|
+
selectedKeys: string[];
|
|
16
|
+
};
|
|
17
|
+
matchedMenu: ComputedRef<AppRouteModule[]>;
|
|
18
|
+
breadcrumbRouters: ComputedRef<AntRoute[]>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import { BasicLayoutProps } from '../../ProLayout';
|
|
3
|
+
export default function (dark: ComputedRef<BasicLayoutProps['dark']>, { change }: {
|
|
4
|
+
change: (value: boolean | 'system' | undefined) => void;
|
|
5
|
+
}): {
|
|
6
|
+
isDark: ComputedRef<boolean | undefined>;
|
|
7
|
+
innerDark: import("vue").Ref<boolean | "system" | undefined, boolean | "system" | undefined>;
|
|
8
|
+
toggleMode: (val: boolean | "system" | undefined) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function hasDarkValue(value: BasicLayoutProps['dark']): value is boolean | "system";
|
|
11
|
+
export declare function toggleLayoutTheme({ event, isDark, value, toggle }: {
|
|
12
|
+
event?: MouseEvent | null;
|
|
13
|
+
isDark: ComputedRef<boolean | undefined>;
|
|
14
|
+
value?: BasicLayoutProps['dark'];
|
|
15
|
+
toggle?: (dark: BasicLayoutProps['dark']) => void;
|
|
16
|
+
}): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { default as PageLoading } from './PageLoading';
|
|
2
|
-
import { default as BaseMenu } from './components/SiderMenu/BaseMenu';
|
|
3
|
-
import { default as SiderMenuWrapper } from './components/SiderMenu';
|
|
4
1
|
import type { PageContainerProps } from './components/PageContainer';
|
|
2
|
+
import type { AppItemProps } from './components/AppsLogoComponents/props';
|
|
5
3
|
import type { AnimateConfig } from './utils/animate';
|
|
6
|
-
import
|
|
4
|
+
import type { MenuMode } from './_utils';
|
|
7
5
|
import GProLayout from './ProLayout';
|
|
8
|
-
import
|
|
6
|
+
import PageLock from './components/PageLock';
|
|
7
|
+
import SiderMenuWrapper from './components/SiderMenu';
|
|
8
|
+
import RightContent from './components/RightContent';
|
|
9
|
+
import BaseMenu from './components/SiderMenu/BaseMenu';
|
|
10
|
+
import PageContainer from './components/PageContainer';
|
|
11
|
+
import SearchPageInput from './components/RightContent/Search';
|
|
9
12
|
export * from './Context';
|
|
10
13
|
export * from './typings';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export {
|
|
14
|
-
export type { ContextType, CreateContext } from './hooks/context';
|
|
14
|
+
export * from './utils';
|
|
15
|
+
export * from './RouteTypings';
|
|
16
|
+
export { default as useLayoutMenu } from './hooks/menu';
|
|
15
17
|
export { baseMenuProps } from './components/SiderMenu/props';
|
|
16
|
-
export
|
|
17
|
-
export type { SiderMenuWrapperProps } from './components/SiderMenu';
|
|
18
|
-
export type { MenuMode, OpenEventHandler, SelectInfo } from './components/SiderMenu/typings';
|
|
19
|
-
export { DefaultHeader } from './components/GlobalHeader/DefaultHeader';
|
|
18
|
+
export { default as ProAppPage } from './components/AppPage';
|
|
20
19
|
export { default as GlobalFooter } from './components/GlobalFooter';
|
|
21
20
|
export { default as SettingDrawer } from './components/SettingDrawer';
|
|
22
21
|
export { default as PageTranstion } from './components/PageTranstion';
|
|
23
|
-
export {
|
|
24
|
-
export
|
|
25
|
-
export type { GlobalFooterProps } from './components/GlobalFooter';
|
|
26
|
-
export type { ProSettings } from './defaultSettings';
|
|
22
|
+
export { default as DefaultHeader } from './components/GlobalHeader/DefaultHeader';
|
|
23
|
+
export { default as AppsLogoList } from './components/AppsLogoComponents/AppLogoList';
|
|
27
24
|
export type { BasicLayoutProps } from './ProLayout';
|
|
28
|
-
export {
|
|
29
|
-
export type {
|
|
25
|
+
export type { ProSettingsProps } from './defaultSettings';
|
|
26
|
+
export type { TabsRouteProps } from './components/TabsRoute';
|
|
27
|
+
export type { GlobalFooterProps } from './components/GlobalFooter';
|
|
28
|
+
export type { SiderMenuWrapperProps } from './components/SiderMenu';
|
|
29
|
+
export type { MergerSettingsType } from './components/SettingDrawer';
|
|
30
|
+
export type { BaseMenuProps } from './components/SiderMenu/BaseMenu';
|
|
31
|
+
export type { DefaultHeaderProps } from './components/GlobalHeader/DefaultHeader';
|
|
32
|
+
export type { OpenEventHandler, SelectInfo } from './components/SiderMenu/typings';
|
|
33
|
+
export { GProLayout, PageLock, BaseMenu, SiderMenuWrapper, PageContainer, RightContent, SearchPageInput };
|
|
34
|
+
export type { MenuMode, AppItemProps, AnimateConfig, PageContainerProps, };
|