qdt-admin-layout 1.0.3 → 1.0.7
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/package.json
CHANGED
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
!appGetters.isMobile &&
|
|
26
26
|
appGetters.showLogo &&
|
|
27
27
|
(appGetters.navMode === "head" || appGetters.struct === "top-bottom");
|
|
28
|
-
return renderLogo && <Logo
|
|
28
|
+
return renderLogo && <Logo />;
|
|
29
29
|
},
|
|
30
30
|
// 左侧汉堡包
|
|
31
31
|
defaultHamburger() {
|
|
@@ -122,27 +122,25 @@ export default {
|
|
|
122
122
|
const noContent =
|
|
123
123
|
depth === 1 && this.collapse && this.mode === "vertical";
|
|
124
124
|
return (
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</SubMenu>
|
|
145
|
-
</div>
|
|
125
|
+
<SubMenu
|
|
126
|
+
key={fullPath}
|
|
127
|
+
index={fullPath}
|
|
128
|
+
inline-indent={this.inlineIndent}
|
|
129
|
+
popper-class={this.themeClass}
|
|
130
|
+
popper-append-to-body
|
|
131
|
+
>
|
|
132
|
+
<template slot="title">
|
|
133
|
+
{depth == 1 && (
|
|
134
|
+
<div style="padding: 10% 0;">
|
|
135
|
+
{this.renderMenuIcon(h, menu, depth)}
|
|
136
|
+
<div>{menu.meta.title}</div>
|
|
137
|
+
</div>
|
|
138
|
+
)}
|
|
139
|
+
|
|
140
|
+
{!noContent && this.renderMenuContent(h, menu, depth)}
|
|
141
|
+
</template>
|
|
142
|
+
{children}
|
|
143
|
+
</SubMenu>
|
|
146
144
|
);
|
|
147
145
|
},
|
|
148
146
|
// 渲染有子级且需要显示父级的菜单
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.menu-display {
|
|
2
2
|
margin-left: 5px;
|
|
3
3
|
ul {
|
|
4
|
-
border-left: 1px solid rgb(228, 231, 237);
|
|
5
4
|
}
|
|
6
5
|
ul:first-child {
|
|
7
6
|
border: none;
|
|
@@ -22,7 +21,8 @@
|
|
|
22
21
|
// 菜单图标
|
|
23
22
|
.menu-icon {
|
|
24
23
|
color: inherit;
|
|
25
|
-
font-size:
|
|
24
|
+
font-size: 34px;
|
|
25
|
+
margin-bottom: 5px;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// 子级菜单激活时,父级同样高亮
|