@zjlab-fe/data-hub-ui 0.27.1 → 0.27.2
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.
|
@@ -92,7 +92,7 @@ const MainLayoutSider = (props) => {
|
|
|
92
92
|
return (jsxs("div", { className: itemClass, style: itemStyle, onClick: () => onMenuClick(child), children: [child.icon, !internalCollapsed && jsx("span", { style: { marginLeft: '8px' }, children: child.label })] }));
|
|
93
93
|
};
|
|
94
94
|
return (jsxs(Sider, { collapsible: true, collapsed: internalCollapsed, collapsedWidth: "60", className: side_menu, width: 180, trigger: null, children: [jsx("div", { className: menu_content, style: { padding: internalCollapsed ? '20px 8px 0 8px' : '0 8px 20px 8px' }, children: menus.length > 0 &&
|
|
95
|
-
menus.map((item) => (jsxs("div", { className: menu_content_contain, children: [!internalCollapsed && jsx("div", { className: menu_content_title, children: item.label }), item.children && (jsx("div", { className: menu_content_subcontain, children: item.children.map((child, i) => {
|
|
95
|
+
menus.map((item) => (jsxs("div", { className: menu_content_contain, style: { width: internalCollapsed ? '34px' : '150px' }, children: [!internalCollapsed && jsx("div", { className: menu_content_title, children: item.label }), item.children && (jsx("div", { className: menu_content_subcontain, children: item.children.map((child, i) => {
|
|
96
96
|
const menuItem = renderMenuItem(child);
|
|
97
97
|
return internalCollapsed ? (jsx(Tooltip, { placement: "right", title: child.label, children: menuItem }, child.key + `${i}`)) : (jsx("div", { children: menuItem }, child.key + `${i}`));
|
|
98
98
|
}) }))] }, item.key))) }), jsx(TriggerIcon, {})] }));
|
|
@@ -55,12 +55,22 @@ style.textContent = `@charset "UTF-8";
|
|
|
55
55
|
position: absolute;
|
|
56
56
|
z-index: 999;
|
|
57
57
|
background: #ffffff;
|
|
58
|
-
border
|
|
58
|
+
border: none;
|
|
59
59
|
border-right: none;
|
|
60
60
|
border-left: none;
|
|
61
61
|
border-bottom: none;
|
|
62
62
|
bottom: 14px;
|
|
63
|
-
left:
|
|
63
|
+
left: 50%;
|
|
64
|
+
transform: translateX(-50%);
|
|
65
|
+
}
|
|
66
|
+
.index-module__trigger-icon___LwUuZ::before {
|
|
67
|
+
content: "";
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: -13px;
|
|
70
|
+
left: 0;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 1px;
|
|
73
|
+
background: #f1f3f7;
|
|
64
74
|
}
|
|
65
75
|
.index-module__trigger-icon___LwUuZ:hover {
|
|
66
76
|
color: #1775fe;
|
|
@@ -71,8 +81,8 @@ style.textContent = `@charset "UTF-8";
|
|
|
71
81
|
}
|
|
72
82
|
.index-module__menu-content___ZdUR3 {
|
|
73
83
|
overflow-y: scroll;
|
|
74
|
-
height: calc(100vh -
|
|
75
|
-
padding-bottom:
|
|
84
|
+
height: calc(100vh - 65px);
|
|
85
|
+
padding-bottom: 62px !important;
|
|
76
86
|
scrollbar-width: none;
|
|
77
87
|
-ms-overflow-style: none;
|
|
78
88
|
}
|
|
@@ -88,6 +98,7 @@ style.textContent = `@charset "UTF-8";
|
|
|
88
98
|
justify-content: center;
|
|
89
99
|
align-items: flex-start;
|
|
90
100
|
gap: 12px;
|
|
101
|
+
margin: 0 auto;
|
|
91
102
|
}
|
|
92
103
|
.index-module__menu-content___ZdUR3 .index-module__menu-content-title___m8GfK {
|
|
93
104
|
margin-top: 24px;
|
|
@@ -108,6 +119,7 @@ style.textContent = `@charset "UTF-8";
|
|
|
108
119
|
justify-content: center;
|
|
109
120
|
align-items: flex-start;
|
|
110
121
|
gap: 4px;
|
|
122
|
+
margin-bottom: 4px;
|
|
111
123
|
}
|
|
112
124
|
.index-module__menu-content___ZdUR3 .index-module__menu-content-item___sRn7B {
|
|
113
125
|
font-family: "AlibabaPuHuiTi-3-55-Regular";
|