qdt-admin-layout 1.0.2 → 1.0.6
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
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
{this.$slots.default.map((item) => {
|
|
93
93
|
return (
|
|
94
94
|
<ul
|
|
95
|
-
style="display:inline-block;width:200px;vertical-align: top;margin:0;
|
|
95
|
+
style="display:inline-block;width:200px;vertical-align: top;margin:0;"
|
|
96
96
|
class={this.popupMenuClass}
|
|
97
97
|
>
|
|
98
98
|
{item}
|
|
@@ -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
|
// 渲染有子级且需要显示父级的菜单
|
|
@@ -159,7 +157,9 @@ export default {
|
|
|
159
157
|
style="font-weight:800;color:black"
|
|
160
158
|
class="popover-menu__title"
|
|
161
159
|
>
|
|
162
|
-
|
|
160
|
+
<div class="title-boder">
|
|
161
|
+
{this.renderMenuContent(h, x, depth)}
|
|
162
|
+
</div>
|
|
163
163
|
</div>
|
|
164
164
|
<div class="el-menu el-menu--inline">{childrens}</div>
|
|
165
165
|
</div>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.menu-display {
|
|
2
2
|
margin-left: 5px;
|
|
3
|
-
border-radius: 2px;
|
|
4
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
5
3
|
ul {
|
|
6
4
|
border-left: 1px solid rgb(228, 231, 237);
|
|
7
5
|
}
|
|
@@ -9,6 +7,11 @@
|
|
|
9
7
|
border: none;
|
|
10
8
|
}
|
|
11
9
|
}
|
|
10
|
+
.title-boder {
|
|
11
|
+
height: 38px;
|
|
12
|
+
border-bottom: 1px solid rgb(228, 231, 237);
|
|
13
|
+
}
|
|
14
|
+
|
|
12
15
|
.el-menu--collapse .el-submenu {
|
|
13
16
|
height: 88px !important;
|
|
14
17
|
}
|
|
@@ -19,7 +22,8 @@
|
|
|
19
22
|
// 菜单图标
|
|
20
23
|
.menu-icon {
|
|
21
24
|
color: inherit;
|
|
22
|
-
font-size:
|
|
25
|
+
font-size: 34px;
|
|
26
|
+
margin-bottom: 5px;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
// 子级菜单激活时,父级同样高亮
|
|
@@ -61,19 +65,29 @@
|
|
|
61
65
|
//菜单hover时,左侧图标放大(弹出菜单的父级不放大)
|
|
62
66
|
.el-menu-item:not(.popover-menu__title),
|
|
63
67
|
.el-submenu__title {
|
|
64
|
-
|
|
65
|
-
> .el-tooltip > .menu-icon {
|
|
68
|
+
.menu-icon {
|
|
66
69
|
transition: transform 0.1s;
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
&:hover {
|
|
70
|
-
|
|
71
|
-
> .el-tooltip > .menu-icon {
|
|
73
|
+
.menu-icon {
|
|
72
74
|
transform: scale(1.2);
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
|
|
79
|
+
.el-menu--popup {
|
|
80
|
+
.popover-menu__title {
|
|
81
|
+
height: 40px !important;
|
|
82
|
+
line-height: 40px !important;
|
|
83
|
+
border: none;
|
|
84
|
+
}
|
|
85
|
+
.el-menu-item {
|
|
86
|
+
height: 40px !important;
|
|
87
|
+
line-height: 40px !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
77
91
|
.el-menu-item,
|
|
78
92
|
.el-submenu__title {
|
|
79
93
|
text-overflow: ellipsis;
|
|
@@ -134,8 +148,8 @@
|
|
|
134
148
|
// 顶级节点的高度以及hover时的下边框
|
|
135
149
|
> .el-menu-item,
|
|
136
150
|
> .el-submenu > .el-submenu__title {
|
|
137
|
-
height:
|
|
138
|
-
line-height:
|
|
151
|
+
height: 40px;
|
|
152
|
+
line-height: 40px;
|
|
139
153
|
|
|
140
154
|
&:hover {
|
|
141
155
|
border-bottom: 2px solid $--color-primary;
|