Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
3c735ee7
Commit
3c735ee7
authored
Apr 03, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单优化
parent
9e0461c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
product.vue
layouts/basic-layout/product.vue
+29
-13
default.vue
layouts/default.vue
+1
-1
No files found.
layouts/basic-layout/product.vue
View file @
3c735ee7
...
...
@@ -4,13 +4,14 @@
<span
class=
"menu"
>
<a
class=
"home"
>
<Icon
type=
"ios-keypad"
/>
<div
class=
"top-menu-box"
>
<ul
class=
"top-menu"
>
<div
class=
"top_menu_box"
>
<ul
class=
"top_menu"
>
<li
v-for=
"(item,i) in filterSider"
>
<ul>
<ul
class=
"row_ul"
>
<li
class=
"title"
>
{{
item
.
title
}}
</li>
<li
v-for=
"(li,j) in item.children"
>
<a
>
{{
li
.
title
}}
</a>
<a
>
{{
li
.
title
}}
</a>
</li>
</ul>
</li>
...
...
@@ -21,7 +22,7 @@
</span>
<i-header-breadcrumb
v-if=
"showBreadcrumb && !headerMenu && !isMobile"
ref=
"breadcrumb"
/>
<i-header-search
v-if=
"showSearch && !headerMenu && !isMobile && !showBreadcrumb"
/>
<div
class=
"header
-
right"
>
<div
class=
"header
_
right"
>
<i-header-search
v-if=
"(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))"
/>
...
...
@@ -279,6 +280,9 @@ export default {
};
</
script
>
<
style
lang=
"less"
>
.i-layout-header-trigger:hover {
background: #343b4a!important;
}
.product-layout {
.ivu-layout-header {
height: 50px;
...
...
@@ -311,27 +315,38 @@ export default {
transition: font-size 0.5s, margin 0.5s, transform 0.5s;
}
}
.top
-menu-
box{
.top
_menu_
box{
display: none;
border-radius: 5px;
position: absolute;
z-index: 99999;
left: 70%;
top: 66%;
min-width: 1
800
px;
min-width: 1
084
px;
min-height: 300px;
background: #f5f6fa;
-webkit-transition: display 0.5s, -webkit-transform 0.5s;/* Safari */
transition: display 0.5s, transform 0.5s;
}
.top
-
menu {
.top
_
menu {
border-radius: 4px;
color: #2680eb;
list-style: none;
text-align: left;
li:first-of-type{
ul:first-of-type{
li:first-of-type{
border-top-left-radius: 5px;
}
}
}
li {
width: 100%;
display: block;
float: left;
// float: left;
// height: 47px;
line-height: 46px;
border-bottom: 1px solid #ccc;
ul {
width: 100%;
list-style: none;
...
...
@@ -340,10 +355,12 @@ export default {
list-style: none;
margin-right: 10px;
width: 150px;
border: none;
a{
display: inline-block;
padding: 0 10px;
height: 30px;
line-height: 30px;
}
a:hover{
background: #2680EB;
...
...
@@ -358,7 +375,6 @@ export default {
color: white;
text-align: center;
font-weight: bold;
height: 47px;
}
.title:hover{
color: #ddd;
...
...
@@ -372,7 +388,7 @@ export default {
width: 60px;
z-index: 88888;
}
.home:hover .top
-menu-
box {
.home:hover .top
_menu_
box {
display: block;
}
.home:hover i{
...
...
@@ -385,7 +401,7 @@ export default {
line-height: 50px;
}
}
.header
-
right {
.header
_
right {
float: right;
height: 50px;
color: white;
...
...
layouts/default.vue
View file @
3c735ee7
...
...
@@ -2,7 +2,7 @@
<MainLayout
/>
</
template
>
<
script
>
import
MainLayout
from
"./basic-layout"
;
import
MainLayout
from
"./basic-layout
/product
"
;
// 配置
import
Setting
from
"@/setting"
;
// 方法
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment