@gx-design-vue/pro-layout 0.1.0-alpha.0
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/LICENSE +21 -0
- package/README.md +76 -0
- package/dist/Context/expose.d.ts +6 -0
- package/dist/Context/expose.js +7 -0
- package/dist/Context/index.d.ts +43 -0
- package/dist/Context/index.js +18 -0
- package/dist/ProLayout.d.ts +539 -0
- package/dist/ProLayout.js +371 -0
- package/dist/WrapContent.d.ts +100 -0
- package/dist/WrapContent.js +45 -0
- package/dist/components/AppPage/context.d.ts +9 -0
- package/dist/components/AppPage/context.js +7 -0
- package/dist/components/AppPage/index.d.ts +73 -0
- package/dist/components/AppPage/index.js +71 -0
- package/dist/components/AppPage/style.d.ts +10 -0
- package/dist/components/AppPage/style.js +40 -0
- package/dist/components/BaseMenu/index.d.ts +255 -0
- package/dist/components/BaseMenu/index.js +381 -0
- package/dist/components/BaseMenu/props.d.ts +105 -0
- package/dist/components/BaseMenu/props.js +94 -0
- package/dist/components/BaseMenu/style.d.ts +6 -0
- package/dist/components/BaseMenu/style.js +155 -0
- package/dist/components/BreadCrumb/Breadcrumb.d.ts +33 -0
- package/dist/components/BreadCrumb/Breadcrumb.js +75 -0
- package/dist/components/BreadCrumb/index.d.ts +7 -0
- package/dist/components/BreadCrumb/index.js +44 -0
- package/dist/components/BreadCrumb/style.d.ts +8 -0
- package/dist/components/BreadCrumb/style.js +87 -0
- package/dist/components/CollapsedIcon/index.d.ts +33 -0
- package/dist/components/CollapsedIcon/index.js +51 -0
- package/dist/components/CollapsedIcon/style.d.ts +9 -0
- package/dist/components/CollapsedIcon/style.js +34 -0
- package/dist/components/FooterToolbar/index.d.ts +76 -0
- package/dist/components/FooterToolbar/index.js +96 -0
- package/dist/components/FooterToolbar/props.d.ts +47 -0
- package/dist/components/FooterToolbar/props.js +33 -0
- package/dist/components/FooterToolbar/style/index.d.ts +14 -0
- package/dist/components/FooterToolbar/style/index.js +48 -0
- package/dist/components/FooterToolbar/style/stylish.d.ts +18 -0
- package/dist/components/FooterToolbar/style/stylish.js +16 -0
- package/dist/components/GlobalFooter/index.d.ts +73 -0
- package/dist/components/GlobalFooter/index.js +77 -0
- package/dist/components/GlobalFooter/style.d.ts +6 -0
- package/dist/components/GlobalFooter/style.js +29 -0
- package/dist/components/GlobalHeader/DefaultHeader.d.ts +164 -0
- package/dist/components/GlobalHeader/DefaultHeader.js +149 -0
- package/dist/components/GlobalHeader/index.d.ts +164 -0
- package/dist/components/GlobalHeader/index.js +78 -0
- package/dist/components/GlobalHeader/props.d.ts +70 -0
- package/dist/components/GlobalHeader/props.js +56 -0
- package/dist/components/GlobalHeader/style/defaultHeader.d.ts +6 -0
- package/dist/components/GlobalHeader/style/defaultHeader.js +108 -0
- package/dist/components/GlobalHeader/style/header.d.ts +6 -0
- package/dist/components/GlobalHeader/style/header.js +41 -0
- package/dist/components/LogoContent/index.d.ts +80 -0
- package/dist/components/LogoContent/index.js +90 -0
- package/dist/components/LogoContent/props.d.ts +57 -0
- package/dist/components/LogoContent/props.js +37 -0
- package/dist/components/LogoContent/style.d.ts +6 -0
- package/dist/components/LogoContent/style.js +63 -0
- package/dist/components/PageContainer/PageHeader.d.ts +39 -0
- package/dist/components/PageContainer/PageHeader.js +53 -0
- package/dist/components/PageContainer/index.d.ts +197 -0
- package/dist/components/PageContainer/index.js +222 -0
- package/dist/components/PageContainer/props.d.ts +138 -0
- package/dist/components/PageContainer/props.js +103 -0
- package/dist/components/PageContainer/style/index.d.ts +14 -0
- package/dist/components/PageContainer/style/index.js +52 -0
- package/dist/components/PageContainer/style/pageHeader.d.ts +6 -0
- package/dist/components/PageContainer/style/pageHeader.js +44 -0
- package/dist/components/PageTranstion/index.d.ts +40 -0
- package/dist/components/PageTranstion/index.js +71 -0
- package/dist/components/PageTranstion/keyFrame/back.d.ts +16 -0
- package/dist/components/PageTranstion/keyFrame/back.js +158 -0
- package/dist/components/PageTranstion/keyFrame/bounce.d.ts +18 -0
- package/dist/components/PageTranstion/keyFrame/bounce.js +178 -0
- package/dist/components/PageTranstion/keyFrame/fade.d.ts +34 -0
- package/dist/components/PageTranstion/keyFrame/fade.js +342 -0
- package/dist/components/PageTranstion/keyFrame/flip.d.ts +12 -0
- package/dist/components/PageTranstion/keyFrame/flip.js +92 -0
- package/dist/components/PageTranstion/keyFrame/lightSpeed.d.ts +12 -0
- package/dist/components/PageTranstion/keyFrame/lightSpeed.js +72 -0
- package/dist/components/PageTranstion/keyFrame/roll.d.ts +10 -0
- package/dist/components/PageTranstion/keyFrame/roll.js +35 -0
- package/dist/components/PageTranstion/keyFrame/rotate.d.ts +18 -0
- package/dist/components/PageTranstion/keyFrame/rotate.js +149 -0
- package/dist/components/PageTranstion/keyFrame/slide.d.ts +16 -0
- package/dist/components/PageTranstion/keyFrame/slide.js +102 -0
- package/dist/components/PageTranstion/keyFrame/zoom.d.ts +18 -0
- package/dist/components/PageTranstion/keyFrame/zoom.js +165 -0
- package/dist/components/PageTranstion/style.d.ts +10 -0
- package/dist/components/PageTranstion/style.js +51 -0
- package/dist/components/SiderMenu/Arrow.d.ts +6 -0
- package/dist/components/SiderMenu/Arrow.js +15 -0
- package/dist/components/SiderMenu/SiderMenu.d.ts +180 -0
- package/dist/components/SiderMenu/SiderMenu.js +265 -0
- package/dist/components/SiderMenu/index.d.ts +193 -0
- package/dist/components/SiderMenu/index.js +51 -0
- package/dist/components/SiderMenu/props.d.ts +77 -0
- package/dist/components/SiderMenu/props.js +67 -0
- package/dist/components/SiderMenu/style/index.d.ts +12 -0
- package/dist/components/SiderMenu/style/index.js +162 -0
- package/dist/components/SiderMenu/typings.d.ts +38 -0
- package/dist/components/SiderMenu/typings.js +1 -0
- package/dist/components/TabsRoute/index.d.ts +95 -0
- package/dist/components/TabsRoute/index.js +405 -0
- package/dist/components/TabsRoute/props.d.ts +78 -0
- package/dist/components/TabsRoute/props.js +47 -0
- package/dist/components/TabsRoute/style.d.ts +15 -0
- package/dist/components/TabsRoute/style.js +133 -0
- package/dist/components/TabsRoute/utils/config.d.ts +18 -0
- package/dist/components/TabsRoute/utils/config.js +64 -0
- package/dist/config/animate.d.ts +11 -0
- package/dist/config/animate.js +76 -0
- package/dist/config/index.d.ts +34 -0
- package/dist/config/index.js +30 -0
- package/dist/hooks/collapsed/index.d.ts +15 -0
- package/dist/hooks/collapsed/index.js +50 -0
- package/dist/hooks/layout/useLayoutExpose.d.ts +15 -0
- package/dist/hooks/layout/useLayoutExpose.js +22 -0
- package/dist/hooks/layout/usePageContent.d.ts +6 -0
- package/dist/hooks/layout/usePageContent.js +28 -0
- package/dist/hooks/menu/context.d.ts +21 -0
- package/dist/hooks/menu/context.js +7 -0
- package/dist/hooks/menu/index.d.ts +29 -0
- package/dist/hooks/menu/index.js +118 -0
- package/dist/hooks/theme/index.d.ts +11 -0
- package/dist/hooks/theme/index.js +13 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +24 -0
- package/dist/pro-layout.esm.js +6042 -0
- package/dist/pro-layout.js +37 -0
- package/dist/props/collapsedProps.d.ts +39 -0
- package/dist/props/collapsedProps.js +45 -0
- package/dist/props/defaultSettings.d.ts +62 -0
- package/dist/props/defaultSettings.js +56 -0
- package/dist/props/index.d.ts +226 -0
- package/dist/props/index.js +109 -0
- package/dist/props/themeProps.d.ts +14 -0
- package/dist/props/themeProps.js +10 -0
- package/dist/style/index.d.ts +24 -0
- package/dist/style/index.js +62 -0
- package/dist/types/Breadcrumb.d.ts +22 -0
- package/dist/types/Breadcrumb.js +1 -0
- package/dist/types/MenuTypings.d.ts +46 -0
- package/dist/types/MenuTypings.js +1 -0
- package/dist/types/RouteTypings.d.ts +96 -0
- package/dist/types/RouteTypings.js +1 -0
- package/dist/types/SlotsTypings.d.ts +124 -0
- package/dist/types/SlotsTypings.js +32 -0
- package/dist/types/typings.d.ts +73 -0
- package/dist/types/typings.js +3 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/menu.d.ts +24 -0
- package/dist/utils/menu.js +134 -0
- package/dist/utils/style/index.d.ts +44 -0
- package/dist/utils/style/index.js +103 -0
- package/global.d.ts +11 -0
- package/package.json +73 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { BaseMenuProps, MenuClassNamesType, MenuStylesType, ProLayoutMenuFunProps } from "../../types/MenuTypings.js";
|
|
2
|
+
import { ProLayoutConfig } from "../../config/index.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import { CSSProperties, PropType } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/BaseMenu/props.d.ts
|
|
7
|
+
declare const defaultMenuProps: Partial<BaseMenuProps>;
|
|
8
|
+
declare const modelValueMenuProps: {
|
|
9
|
+
openKeys: {
|
|
10
|
+
type: PropType<ProLayoutMenuFunProps["openKeys"]>;
|
|
11
|
+
default: () => any[];
|
|
12
|
+
};
|
|
13
|
+
selectedKeys: {
|
|
14
|
+
type: PropType<ProLayoutMenuFunProps["selectedKeys"]>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare const commonMenuFunProps: {
|
|
19
|
+
onOpenKeys: {
|
|
20
|
+
type: PropType<ProLayoutMenuFunProps["onOpenKeys"]>;
|
|
21
|
+
};
|
|
22
|
+
onSelect: {
|
|
23
|
+
type: PropType<ProLayoutMenuFunProps["onSelect"]>;
|
|
24
|
+
};
|
|
25
|
+
menuItemRender: {
|
|
26
|
+
type: PropType<BaseMenuProps["menuItemRender"]>;
|
|
27
|
+
default: () => any;
|
|
28
|
+
};
|
|
29
|
+
menuTextRender: {
|
|
30
|
+
type: PropType<BaseMenuProps["menuTextRender"]>;
|
|
31
|
+
default: () => any;
|
|
32
|
+
};
|
|
33
|
+
subMenuItemRender: {
|
|
34
|
+
type: PropType<BaseMenuProps["subMenuItemRender"]>;
|
|
35
|
+
default: () => any;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare const baseMenuProps: {
|
|
39
|
+
class: {
|
|
40
|
+
type: PropType<string>;
|
|
41
|
+
};
|
|
42
|
+
classNames: {
|
|
43
|
+
type: PropType<MenuClassNamesType>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
styles: {
|
|
47
|
+
type: PropType<MenuStylesType>;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: PropType<BaseMenuProps["type"]>;
|
|
52
|
+
};
|
|
53
|
+
menuRenderType: {
|
|
54
|
+
type: PropType<"header" | "sider">;
|
|
55
|
+
};
|
|
56
|
+
style: {
|
|
57
|
+
type: PropType<CSSProperties>;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
iconfontUrl: {
|
|
61
|
+
type: PropType<ProLayoutConfig["iconfontUrl"]>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
mode: {
|
|
65
|
+
type: PropType<BaseMenuProps["mode"]>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
menuData: {
|
|
69
|
+
type: PropType<BaseMenuProps["menuData"]>;
|
|
70
|
+
default: () => any[];
|
|
71
|
+
};
|
|
72
|
+
menuProps: {
|
|
73
|
+
type: PropType<BaseMenuProps["menuProps"]>;
|
|
74
|
+
default: () => any;
|
|
75
|
+
};
|
|
76
|
+
onClick: PropType<BaseMenuProps["onClick"]>;
|
|
77
|
+
onOpenKeys: {
|
|
78
|
+
type: PropType<BaseMenuProps["onOpenKeys"]>;
|
|
79
|
+
};
|
|
80
|
+
onSelect: {
|
|
81
|
+
type: PropType<BaseMenuProps["onSelect"]>;
|
|
82
|
+
};
|
|
83
|
+
menuItemRender: {
|
|
84
|
+
type: PropType<BaseMenuProps["menuItemRender"]>;
|
|
85
|
+
default: () => any;
|
|
86
|
+
};
|
|
87
|
+
menuTextRender: {
|
|
88
|
+
type: PropType<BaseMenuProps["menuTextRender"]>;
|
|
89
|
+
default: () => any;
|
|
90
|
+
};
|
|
91
|
+
subMenuItemRender: {
|
|
92
|
+
type: PropType<BaseMenuProps["subMenuItemRender"]>;
|
|
93
|
+
default: () => any;
|
|
94
|
+
};
|
|
95
|
+
openKeys: {
|
|
96
|
+
type: PropType<ProLayoutMenuFunProps["openKeys"]>;
|
|
97
|
+
default: () => any[];
|
|
98
|
+
};
|
|
99
|
+
selectedKeys: {
|
|
100
|
+
type: PropType<ProLayoutMenuFunProps["selectedKeys"]>;
|
|
101
|
+
default: () => any[];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { baseMenuProps, commonMenuFunProps, defaultMenuProps, modelValueMenuProps };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defaultSettingProps } from "../../props/defaultSettings.js";
|
|
2
|
+
import { pick } from "es-toolkit";
|
|
3
|
+
|
|
4
|
+
//#region src/components/BaseMenu/props.ts
|
|
5
|
+
const defaultMenuProps = {
|
|
6
|
+
mode: "inline",
|
|
7
|
+
menuProps: null
|
|
8
|
+
};
|
|
9
|
+
const modelValueMenuProps = {
|
|
10
|
+
openKeys: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
selectedKeys: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const commonMenuFunProps = {
|
|
20
|
+
onOpenKeys: { type: Function },
|
|
21
|
+
onSelect: { type: Function },
|
|
22
|
+
menuItemRender: {
|
|
23
|
+
type: [
|
|
24
|
+
Function,
|
|
25
|
+
Boolean,
|
|
26
|
+
Array,
|
|
27
|
+
String,
|
|
28
|
+
Number
|
|
29
|
+
],
|
|
30
|
+
default: () => void 0
|
|
31
|
+
},
|
|
32
|
+
menuTextRender: {
|
|
33
|
+
type: [
|
|
34
|
+
Function,
|
|
35
|
+
Boolean,
|
|
36
|
+
Array,
|
|
37
|
+
String,
|
|
38
|
+
Number
|
|
39
|
+
],
|
|
40
|
+
default: () => void 0
|
|
41
|
+
},
|
|
42
|
+
subMenuItemRender: {
|
|
43
|
+
type: [
|
|
44
|
+
Function,
|
|
45
|
+
Boolean,
|
|
46
|
+
Array,
|
|
47
|
+
String,
|
|
48
|
+
Number
|
|
49
|
+
],
|
|
50
|
+
default: () => void 0
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const baseMenuProps = {
|
|
54
|
+
...modelValueMenuProps,
|
|
55
|
+
...pick(commonMenuFunProps, [
|
|
56
|
+
"menuItemRender",
|
|
57
|
+
"subMenuItemRender",
|
|
58
|
+
"menuTextRender"
|
|
59
|
+
]),
|
|
60
|
+
class: { type: String },
|
|
61
|
+
classNames: {
|
|
62
|
+
type: Object,
|
|
63
|
+
default: () => ({})
|
|
64
|
+
},
|
|
65
|
+
styles: {
|
|
66
|
+
type: Object,
|
|
67
|
+
default: () => ({})
|
|
68
|
+
},
|
|
69
|
+
type: { type: String },
|
|
70
|
+
menuRenderType: { type: String },
|
|
71
|
+
style: {
|
|
72
|
+
type: Object,
|
|
73
|
+
default: () => ({})
|
|
74
|
+
},
|
|
75
|
+
iconfontUrl: defaultSettingProps.iconfontUrl,
|
|
76
|
+
mode: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "inline"
|
|
79
|
+
},
|
|
80
|
+
menuData: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: () => []
|
|
83
|
+
},
|
|
84
|
+
menuProps: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => null
|
|
87
|
+
},
|
|
88
|
+
onClick: [Function, Object],
|
|
89
|
+
onOpenKeys: { type: Function },
|
|
90
|
+
onSelect: { type: Function }
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
export { baseMenuProps, commonMenuFunProps, defaultMenuProps, modelValueMenuProps };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { unit } from "@gx-design-vue/pro-provider";
|
|
2
|
+
|
|
3
|
+
//#region src/components/BaseMenu/style.ts
|
|
4
|
+
const ProBaseMenuStyle = (token) => {
|
|
5
|
+
const fontSize = unit(token.layout?.menuItemIconSize || token.fontSize);
|
|
6
|
+
const collapsedFontSize = unit((token.layout?.menuItemIconSize || token.fontSize) + 2);
|
|
7
|
+
const siderToken = token.layout?.sider;
|
|
8
|
+
const headerToken = token.layout?.header;
|
|
9
|
+
return {
|
|
10
|
+
[`${token.antCls}-menu`]: { [`&${token.componentCls}`]: {
|
|
11
|
+
background: "transparent",
|
|
12
|
+
border: "none",
|
|
13
|
+
[`&${token.componentCls}-inline,&${token.componentCls}-inline-collapsed`]: {
|
|
14
|
+
color: siderToken?.colorTextMenu,
|
|
15
|
+
[`${token.componentCls}-item-right-content`]: {
|
|
16
|
+
position: "absolute",
|
|
17
|
+
right: 0,
|
|
18
|
+
top: "50%",
|
|
19
|
+
transform: "translateY(-50%)",
|
|
20
|
+
lineHeight: "normal"
|
|
21
|
+
},
|
|
22
|
+
[`${token.antCls}-menu-submenu`]: { "&-selected": { [`>${token.antCls}-menu-submenu-title`]: {
|
|
23
|
+
color: siderToken?.colorTextSubMenuSelected ?? token.colorPrimary,
|
|
24
|
+
"&:hover": { color: siderToken?.colorTextSubMenuSelected ?? token.colorPrimary }
|
|
25
|
+
} } }
|
|
26
|
+
},
|
|
27
|
+
[`&${token.componentCls}-horizontal`]: {
|
|
28
|
+
color: headerToken?.colorTextMenu,
|
|
29
|
+
[`${token.componentCls}-item-right-content`]: { marginLeft: token.marginXXS },
|
|
30
|
+
[`${token.antCls}-menu-submenu`]: { "&-selected": { [`>${token.antCls}-menu-submenu-title`]: {
|
|
31
|
+
color: headerToken?.colorTextMenuSelected,
|
|
32
|
+
"&:hover": { color: headerToken?.colorTextMenuSelected }
|
|
33
|
+
} } }
|
|
34
|
+
},
|
|
35
|
+
[`${token.componentCls}-submenu`]: { paddingBottom: "0px" },
|
|
36
|
+
[`${token.antCls}-menu-title-content`]: {
|
|
37
|
+
width: "100%",
|
|
38
|
+
height: "100%",
|
|
39
|
+
display: "inline-flex"
|
|
40
|
+
},
|
|
41
|
+
[`${token.antCls}-menu-title-content`]: { "&:first-child": { width: "100%" } },
|
|
42
|
+
[`${token.componentCls}-item-icon`]: {
|
|
43
|
+
display: "flex",
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
marginRight: token.marginXXS
|
|
46
|
+
},
|
|
47
|
+
[`&&-collapsed`]: {
|
|
48
|
+
[`${token.antCls}-menu-item,
|
|
49
|
+
${token.antCls}-menu-item-group > ${token.antCls}-menu-item-group-list > ${token.antCls}-menu-item,
|
|
50
|
+
${token.antCls}-menu-item-group > ${token.antCls}-menu-item-group-list > ${token.antCls}-menu-submenu > ${token.antCls}-menu-submenu-title,
|
|
51
|
+
${token.antCls}-menu-submenu > ${token.antCls}-menu-submenu-title`]: {
|
|
52
|
+
paddingInline: "0 !important",
|
|
53
|
+
marginBlock: "4px !important"
|
|
54
|
+
},
|
|
55
|
+
[`${token.antCls}-menu-item-group > ${token.antCls}-menu-item-group-list > ${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title,
|
|
56
|
+
${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title`]: {
|
|
57
|
+
borderRadius: token.borderRadiusLG,
|
|
58
|
+
backgroundColor: siderToken?.colorBgMenuItemSelected,
|
|
59
|
+
color: siderToken?.colorTextSubMenuSelected ?? token.colorPrimary
|
|
60
|
+
},
|
|
61
|
+
[`${token.componentCls}-group`]: { [`${token.antCls}-menu-item-group-title`]: { paddingInline: 0 } },
|
|
62
|
+
[`&${token.componentCls}-menu-inline`]: { [`${token.antCls}-menu-item-group > ${token.antCls}-menu-item-group-list > ${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title,
|
|
63
|
+
${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title`]: { backgroundColor: siderToken?.colorBgMenuItemSelected } },
|
|
64
|
+
[`&${token.componentCls}-menu-horizontal`]: { [`${token.antCls}-menu-item-group > ${token.antCls}-menu-item-group-list > ${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title,
|
|
65
|
+
${token.antCls}-menu-submenu-selected > ${token.antCls}-menu-submenu-title`]: { backgroundColor: headerToken?.colorBgMenuItemSelected } },
|
|
66
|
+
[`${token.componentCls}-item-icon`]: { marginRight: 0 }
|
|
67
|
+
},
|
|
68
|
+
[`${token.componentCls}-item-title`]: {
|
|
69
|
+
position: "relative",
|
|
70
|
+
display: "flex",
|
|
71
|
+
flexDirection: "row",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
[`${token.componentCls}-item-icon`]: {
|
|
74
|
+
[`${token.componentCls}-item-image`]: { width: collapsedFontSize },
|
|
75
|
+
".anticon": { fontSize }
|
|
76
|
+
},
|
|
77
|
+
[`${token.componentCls}-item-text`]: {
|
|
78
|
+
maxWidth: "100%",
|
|
79
|
+
textOverflow: "ellipsis",
|
|
80
|
+
overflow: "hidden",
|
|
81
|
+
wordBreak: "break-all",
|
|
82
|
+
whiteSpace: "nowrap"
|
|
83
|
+
},
|
|
84
|
+
"&-collapsed": {
|
|
85
|
+
minWidth: 40,
|
|
86
|
+
height: 40,
|
|
87
|
+
[`${token.componentCls}-item-text-has-icon`]: { display: "none !important" },
|
|
88
|
+
[`${token.componentCls}-item-icon`]: {
|
|
89
|
+
[`&${token.componentCls}-item-collapsed-icon-text`]: { ".anticon": { fontSize: token.fontSize } },
|
|
90
|
+
[`${token.componentCls}-item-image`]: { width: collapsedFontSize },
|
|
91
|
+
".anticon": { fontSize: collapsedFontSize }
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"&-collapsed-level-0": {
|
|
95
|
+
flexDirection: "column",
|
|
96
|
+
justifyContent: "center",
|
|
97
|
+
[`&>${token.componentCls}-item-icon`]: { ".anticon": { display: "inline-flex" } }
|
|
98
|
+
},
|
|
99
|
+
[`&${token.componentCls}-group-item-title`]: {
|
|
100
|
+
gap: token.marginXS,
|
|
101
|
+
height: 18,
|
|
102
|
+
overflow: "hidden"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"&-group": { [`${token.antCls}-menu-item-group-title`]: {
|
|
106
|
+
fontSize: 12,
|
|
107
|
+
color: token.colorTextLabel,
|
|
108
|
+
".anticon": { marginInlineEnd: 8 }
|
|
109
|
+
} },
|
|
110
|
+
"&-group-divider": {
|
|
111
|
+
color: token.colorTextSecondary,
|
|
112
|
+
fontSize: 12,
|
|
113
|
+
lineHeight: 20
|
|
114
|
+
}
|
|
115
|
+
} },
|
|
116
|
+
[`${token.componentCls}-submenu-popup${token.antCls}-menu-submenu-popup`]: {
|
|
117
|
+
background: "transparent",
|
|
118
|
+
"-webkit-backdrop-filter": "blur(8px)",
|
|
119
|
+
backdropFilter: "blur(8px)",
|
|
120
|
+
[`${token.antCls}-menu>${token.antCls}-menu-item,${token.antCls}-menu>${token.antCls}-menu-submenu>${token.antCls}-menu-submenu-title`]: {
|
|
121
|
+
height: 32,
|
|
122
|
+
lineHeight: unit(32)
|
|
123
|
+
},
|
|
124
|
+
[`${token.componentCls}-item-title`]: {
|
|
125
|
+
display: "flex",
|
|
126
|
+
flexDirection: "row",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
gap: token.marginXS,
|
|
129
|
+
[`${token.componentCls}-item-icon`]: {
|
|
130
|
+
[`${token.componentCls}-item-image`]: { width: collapsedFontSize },
|
|
131
|
+
".anticon": { fontSize }
|
|
132
|
+
},
|
|
133
|
+
[`${token.componentCls}-item-text`]: {
|
|
134
|
+
maxWidth: "100%",
|
|
135
|
+
textOverflow: "ellipsis",
|
|
136
|
+
overflow: "hidden",
|
|
137
|
+
wordBreak: "break-all",
|
|
138
|
+
whiteSpace: "nowrap"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
[`&${token.componentCls}-submenu-popup-sider`]: { [`${token.antCls}-menu-submenu-selected ${token.antCls}-menu-submenu-title`]: {
|
|
142
|
+
background: siderToken?.colorBgMenuItemSelected,
|
|
143
|
+
"&:hover": { color: siderToken?.colorTextMenuSelected }
|
|
144
|
+
} },
|
|
145
|
+
[`&${token.componentCls}-submenu-popup-header`]: { [`${token.antCls}-menu-submenu-selected ${token.antCls}-menu-submenu-title`]: {
|
|
146
|
+
background: siderToken?.colorBgMenuItemSelected,
|
|
147
|
+
"&:hover": { color: siderToken?.colorTextMenuSelected }
|
|
148
|
+
} },
|
|
149
|
+
[`&>${token.antCls}-menu${token.antCls}-menu-sub`]: { background: token.colorBgElevated }
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
//#endregion
|
|
155
|
+
export { ProBaseMenuStyle };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ProRoute } from "../../types/Breadcrumb.js";
|
|
2
|
+
import * as vue161 from "vue";
|
|
3
|
+
import { PropType } from "vue";
|
|
4
|
+
import * as vue_jsx_runtime6 from "vue/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/BreadCrumb/Breadcrumb.d.ts
|
|
7
|
+
declare const Breadcrumb: vue161.DefineComponent<vue161.ExtractPropTypes<{
|
|
8
|
+
hashId: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
};
|
|
11
|
+
className: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
};
|
|
14
|
+
routes: {
|
|
15
|
+
type: PropType<ProRoute[]>;
|
|
16
|
+
default: () => any[];
|
|
17
|
+
};
|
|
18
|
+
}>, () => vue_jsx_runtime6.JSX.Element, {}, {}, {}, vue161.ComponentOptionsMixin, vue161.ComponentOptionsMixin, {}, string, vue161.PublicProps, Readonly<vue161.ExtractPropTypes<{
|
|
19
|
+
hashId: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
className: {
|
|
23
|
+
type: PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
routes: {
|
|
26
|
+
type: PropType<ProRoute[]>;
|
|
27
|
+
default: () => any[];
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
routes: ProRoute[];
|
|
31
|
+
}, {}, {}, {}, string, vue161.ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Breadcrumb as default };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useProLayoutContext } from "../../Context/index.js";
|
|
2
|
+
import { Fragment, computed, createTextVNode, createVNode, defineComponent, isVNode } from "vue";
|
|
3
|
+
import { classNames, isString, isUrl } from "@gx-design-vue/pro-utils";
|
|
4
|
+
import { Dropdown, Menu, MenuItem, SubMenu } from "ant-design-vue";
|
|
5
|
+
import { DownOutlined, HomeOutlined } from "@ant-design/icons-vue";
|
|
6
|
+
import { useRouter } from "vue-router";
|
|
7
|
+
|
|
8
|
+
//#region src/components/BreadCrumb/Breadcrumb.tsx
|
|
9
|
+
function _isSlot(s) {
|
|
10
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
11
|
+
}
|
|
12
|
+
const Breadcrumb = /* @__PURE__ */ defineComponent({
|
|
13
|
+
name: "BreadCrumb",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
props: {
|
|
16
|
+
hashId: { type: String },
|
|
17
|
+
className: { type: String },
|
|
18
|
+
routes: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => []
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
const router = useRouter();
|
|
25
|
+
const layoutContext = useProLayoutContext();
|
|
26
|
+
const prefixCls = computed(() => classNames(`${props.className}-routes`));
|
|
27
|
+
function onRouterClick(row, isLast) {
|
|
28
|
+
if (row.children && row.children.length > 0 || isLast) return;
|
|
29
|
+
if (row.name === "Root") router.push({ path: row.path });
|
|
30
|
+
const menuRow = layoutContext?.menu?.value?.flatMenus?.find((item) => item.name === row.name);
|
|
31
|
+
if (menuRow) {
|
|
32
|
+
const toPath = isString(menuRow.redirect) ? menuRow.redirect : menuRow.path || "";
|
|
33
|
+
const target = menuRow.meta?.link || "";
|
|
34
|
+
const hasUrl = isUrl(target);
|
|
35
|
+
if (router && router.currentRoute.value?.fullPath !== toPath) if (hasUrl && target && menuRow.meta?.linkStatus === 1) window.open(target);
|
|
36
|
+
else router.push({ path: toPath });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const RenderMenus = (menus) => {
|
|
40
|
+
return menus.map((menu) => {
|
|
41
|
+
const changeTitle = menu.name === router.currentRoute.value?.name ? layoutContext.currentMeta.value?.title : "";
|
|
42
|
+
if (menu.children && menu.children.length > 0) {
|
|
43
|
+
let _slot;
|
|
44
|
+
return createVNode(SubMenu, {
|
|
45
|
+
"key": menu.name,
|
|
46
|
+
"title": changeTitle || menu.breadcrumbName
|
|
47
|
+
}, _isSlot(_slot = RenderMenus(menu.children)) ? _slot : { default: () => [_slot] });
|
|
48
|
+
}
|
|
49
|
+
return createVNode(MenuItem, {
|
|
50
|
+
"key": menu.name,
|
|
51
|
+
"onClick": () => onRouterClick(menu)
|
|
52
|
+
}, { default: () => [changeTitle || menu.breadcrumbName] });
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return () => {
|
|
56
|
+
const currentName = router.currentRoute.value?.name;
|
|
57
|
+
return createVNode("nav", { "class": classNames(prefixCls.value, props.hashId) }, [createVNode("ol", null, [props.routes.map((row, index) => {
|
|
58
|
+
let _slot2;
|
|
59
|
+
const changeTitle = row.name === currentName ? layoutContext.currentMeta.value?.title : "";
|
|
60
|
+
const breadcrumbItem = createVNode("div", {
|
|
61
|
+
"class": classNames(`${prefixCls.value}-link`, index === props.routes.length - 1 && `${prefixCls.value}-link-last`, props.hashId),
|
|
62
|
+
"onClick": () => onRouterClick(row, index === props.routes.length - 1)
|
|
63
|
+
}, [row.homeIcon ? row.homeIcon === true ? createVNode(HomeOutlined, null, null) : row.homeIcon : changeTitle || row.breadcrumbName]);
|
|
64
|
+
return createVNode(Fragment, null, [createVNode("li", {
|
|
65
|
+
"key": row.name,
|
|
66
|
+
"class": classNames(`${prefixCls.value}-item`, props.hashId)
|
|
67
|
+
}, [row.children && row.children.length > 0 ? createVNode(Dropdown, { "overlay": createVNode(Menu, { "selectedKeys": layoutContext.selectedKeys.value }, _isSlot(_slot2 = RenderMenus(row.children)) ? _slot2 : { default: () => [_slot2] }) }, { default: () => [createVNode("div", { "class": classNames(`${prefixCls.value}-overlay-link`, props.hashId) }, [changeTitle || row.breadcrumbName, createVNode(DownOutlined, null, null)])] }) : breadcrumbItem]), index < props.routes.length - 1 && createVNode("li", { "class": classNames(`${prefixCls.value}-separator`, props.hashId) }, [createTextVNode("/")])]);
|
|
68
|
+
})])]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var Breadcrumb_default = Breadcrumb;
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export { Breadcrumb_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue168 from "vue";
|
|
2
|
+
import * as ant_design_vue_es__util_type22 from "ant-design-vue/es/_util/type";
|
|
3
|
+
|
|
4
|
+
//#region src/components/BreadCrumb/index.d.ts
|
|
5
|
+
declare const _default: vue168.DefineComponent<{}, () => ant_design_vue_es__util_type22.VueNode, {}, {}, {}, vue168.ComponentOptionsMixin, vue168.ComponentOptionsMixin, {}, string, vue168.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue168.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { useProLayoutContext } from "../../Context/index.js";
|
|
2
|
+
import Breadcrumb_default from "./Breadcrumb.js";
|
|
3
|
+
import { ProBreadCrumbStyle } from "./style.js";
|
|
4
|
+
import { computed, createVNode, defineComponent } from "vue";
|
|
5
|
+
import { useProStyle } from "@gx-design-vue/pro-provider";
|
|
6
|
+
import { classNames, getPrefixCls } from "@gx-design-vue/pro-utils";
|
|
7
|
+
import { cloneDeep as cloneDeep$1 } from "es-toolkit";
|
|
8
|
+
|
|
9
|
+
//#region src/components/BreadCrumb/index.tsx
|
|
10
|
+
var BreadCrumb_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "BreadCrumb",
|
|
12
|
+
setup() {
|
|
13
|
+
const layoutContext = useProLayoutContext();
|
|
14
|
+
const baseClassName = (layoutContext?.getPrefixCls || getPrefixCls)({
|
|
15
|
+
isPor: true,
|
|
16
|
+
suffixCls: "breadcrumb"
|
|
17
|
+
});
|
|
18
|
+
const { wrapSSR, hashId } = useProStyle("ProBreadCrumb", [ProBreadCrumbStyle], baseClassName);
|
|
19
|
+
const breadcrumbRoutes = computed(() => {
|
|
20
|
+
const breadcrumb = layoutContext?.breadcrumb?.value || {};
|
|
21
|
+
const homeIcon = breadcrumb.homeIcon;
|
|
22
|
+
return (homeIcon && breadcrumb.routes?.length ? [{
|
|
23
|
+
path: "/",
|
|
24
|
+
name: "Root",
|
|
25
|
+
homeIcon,
|
|
26
|
+
breadcrumbName: "首页"
|
|
27
|
+
}] : []).concat(cloneDeep$1(breadcrumb.routes || []));
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
const breadcrumbRender = layoutContext.breadcrumbRender.value === false ? false : layoutContext.breadcrumbRender.value || layoutContext?.breadcrumb?.value?.breadcrumbRender;
|
|
31
|
+
return wrapSSR(createVNode("div", { "class": classNames(baseClassName, hashId.value, layoutContext?.breadcrumb?.value?.position === "header" && `${baseClassName}-header`) }, [breadcrumbRender === false ? createVNode("span", null, null) : typeof breadcrumbRender === "function" ? breadcrumbRender?.({
|
|
32
|
+
...layoutContext?.breadcrumb?.value || {},
|
|
33
|
+
routes: breadcrumbRoutes.value
|
|
34
|
+
}) : createVNode(Breadcrumb_default, {
|
|
35
|
+
"className": baseClassName,
|
|
36
|
+
"hashId": hashId.value,
|
|
37
|
+
"routes": breadcrumbRoutes.value
|
|
38
|
+
}, null)]));
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { BreadCrumb_default as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSObject, GenerateStyle, ProAliasToken } from "@gx-design-vue/pro-provider";
|
|
2
|
+
|
|
3
|
+
//#region src/components/BreadCrumb/style.d.ts
|
|
4
|
+
declare function genFocusOutline(token: ProAliasToken, offset?: number): CSSObject;
|
|
5
|
+
declare function genFocusStyle(token: ProAliasToken, offset?: number): CSSObject;
|
|
6
|
+
declare const ProBreadCrumbStyle: GenerateStyle;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ProBreadCrumbStyle, genFocusOutline, genFocusStyle };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { resetComponent, unit } from "@gx-design-vue/pro-provider";
|
|
2
|
+
|
|
3
|
+
//#region src/components/BreadCrumb/style.ts
|
|
4
|
+
function genFocusOutline(token, offset) {
|
|
5
|
+
return {
|
|
6
|
+
outline: `${unit(3)} solid ${token.colorPrimaryBorder}`,
|
|
7
|
+
outlineOffset: offset ?? 1,
|
|
8
|
+
transition: "outline-offset 0s, outline 0s"
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function genFocusStyle(token, offset) {
|
|
12
|
+
return { "&:focus-visible": genFocusOutline(token, offset) };
|
|
13
|
+
}
|
|
14
|
+
const ProBreadCrumbStyle = (token) => {
|
|
15
|
+
const iconCls = ".anticon";
|
|
16
|
+
const breadCrumbRouters = `${token.componentCls}-routes`;
|
|
17
|
+
return { [token.componentCls]: {
|
|
18
|
+
[`&${token.componentCls}-header`]: {},
|
|
19
|
+
[breadCrumbRouters]: {
|
|
20
|
+
...resetComponent(token),
|
|
21
|
+
color: token.colorTextDescription,
|
|
22
|
+
fontSize: token.fontSize,
|
|
23
|
+
[iconCls]: { fontSize: token.fontSize },
|
|
24
|
+
ol: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexWrap: "wrap",
|
|
27
|
+
margin: 0,
|
|
28
|
+
padding: 0,
|
|
29
|
+
listStyle: "none"
|
|
30
|
+
},
|
|
31
|
+
"li": { cursor: "pointer" },
|
|
32
|
+
[`${breadCrumbRouters}-item`]: {
|
|
33
|
+
display: "flex",
|
|
34
|
+
alignItems: "center"
|
|
35
|
+
},
|
|
36
|
+
[`${breadCrumbRouters}-link`]: {
|
|
37
|
+
color: token.colorTextDescription,
|
|
38
|
+
transition: `color ${token.motionDurationMid}`,
|
|
39
|
+
padding: `0 ${unit(token.paddingXXS)}`,
|
|
40
|
+
borderRadius: token.borderRadiusSM,
|
|
41
|
+
height: token.fontSize * token.lineHeight,
|
|
42
|
+
display: "flex",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
gap: token.marginXXS,
|
|
45
|
+
marginInline: token.calc(token.marginXXS).mul(-1).equal(),
|
|
46
|
+
[`&${breadCrumbRouters}-link-last`]: {
|
|
47
|
+
color: token.colorText,
|
|
48
|
+
"&:hover": {
|
|
49
|
+
color: token.colorText,
|
|
50
|
+
backgroundColor: "unset"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"&:hover": {
|
|
54
|
+
color: token.colorText,
|
|
55
|
+
backgroundColor: token.colorBgTextHover
|
|
56
|
+
},
|
|
57
|
+
...genFocusStyle(token)
|
|
58
|
+
},
|
|
59
|
+
"li:last-child": { cursor: "default" },
|
|
60
|
+
[`${breadCrumbRouters}-separator`]: {
|
|
61
|
+
marginInline: token.marginXS,
|
|
62
|
+
color: token.colorTextDescription
|
|
63
|
+
},
|
|
64
|
+
[`${breadCrumbRouters}-overlay-link`]: {
|
|
65
|
+
borderRadius: token.borderRadiusSM,
|
|
66
|
+
height: token.fontSize * token.lineHeight,
|
|
67
|
+
transition: `color ${token.motionDurationMid}`,
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "center",
|
|
70
|
+
padding: `0 ${unit(token.paddingXXS)}`,
|
|
71
|
+
marginInline: token.calc(token.marginXXS).mul(-1).equal(),
|
|
72
|
+
[`> ${iconCls}`]: {
|
|
73
|
+
marginInlineStart: token.marginXXS,
|
|
74
|
+
fontSize: token.fontSizeIcon
|
|
75
|
+
},
|
|
76
|
+
"&:hover": {
|
|
77
|
+
color: token.colorText,
|
|
78
|
+
backgroundColor: token.colorBgTextHover
|
|
79
|
+
},
|
|
80
|
+
...genFocusStyle(token)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
} };
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
export { ProBreadCrumbStyle, genFocusOutline, genFocusStyle };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CollapsedButtonRender, CollapsedIconRender } from "../../types/SlotsTypings.js";
|
|
2
|
+
import * as vue220 from "vue";
|
|
3
|
+
import { PropType } from "vue";
|
|
4
|
+
import { CustomRender } from "@gx-design-vue/pro-utils";
|
|
5
|
+
import * as ant_design_vue_es__util_type24 from "ant-design-vue/es/_util/type";
|
|
6
|
+
|
|
7
|
+
//#region src/components/CollapsedIcon/index.d.ts
|
|
8
|
+
declare function renderCollapsedButton(buttonRender: CollapsedButtonRender | undefined, collapsed: boolean, dom?: CustomRender): CustomRender;
|
|
9
|
+
declare function defaultRenderCollapsedButton(props: {
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
iconRender?: CollapsedIconRender;
|
|
12
|
+
}): CustomRender;
|
|
13
|
+
declare const _default: vue220.DefineComponent<vue220.ExtractPropTypes<{
|
|
14
|
+
isMobile: PropType<boolean>;
|
|
15
|
+
collapsed: PropType<boolean>;
|
|
16
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
17
|
+
iconRender: {
|
|
18
|
+
type: PropType<CollapsedIconRender>;
|
|
19
|
+
default: () => any;
|
|
20
|
+
};
|
|
21
|
+
}>, () => ant_design_vue_es__util_type24.VueNode, {}, {}, {}, vue220.ComponentOptionsMixin, vue220.ComponentOptionsMixin, {}, string, vue220.PublicProps, Readonly<vue220.ExtractPropTypes<{
|
|
22
|
+
isMobile: PropType<boolean>;
|
|
23
|
+
collapsed: PropType<boolean>;
|
|
24
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
25
|
+
iconRender: {
|
|
26
|
+
type: PropType<CollapsedIconRender>;
|
|
27
|
+
default: () => any;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
iconRender: CollapsedIconRender;
|
|
31
|
+
}, {}, {}, {}, string, vue220.ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { _default as default, defaultRenderCollapsedButton, renderCollapsedButton };
|