Commit 3c735ee7 authored by 康振飞's avatar 康振飞

菜单优化

parent 9e0461c0
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
<span class="menu"> <span class="menu">
<a class="home"> <a class="home">
<Icon type="ios-keypad" /> <Icon type="ios-keypad" />
<div class="top-menu-box"> <div class="top_menu_box">
<ul class="top-menu">
<ul class="top_menu">
<li v-for="(item,i) in filterSider"> <li v-for="(item,i) in filterSider">
<ul> <ul class="row_ul">
<li class="title">{{item.title}}</li> <li class="title">{{item.title}}</li>
<li v-for="(li,j) in item.children"> <li v-for="(li,j) in item.children">
<a>{{li.title}}</a> <a >{{li.title}}</a>
</li> </li>
</ul> </ul>
</li> </li>
</ul> </ul>
...@@ -21,7 +22,7 @@ ...@@ -21,7 +22,7 @@
</span> </span>
<i-header-breadcrumb v-if="showBreadcrumb && !headerMenu && !isMobile" ref="breadcrumb" /> <i-header-breadcrumb v-if="showBreadcrumb && !headerMenu && !isMobile" ref="breadcrumb" />
<i-header-search v-if="showSearch && !headerMenu && !isMobile && !showBreadcrumb" /> <i-header-search v-if="showSearch && !headerMenu && !isMobile && !showBreadcrumb" />
<div class="header-right"> <div class="header_right">
<i-header-search <i-header-search
v-if="(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))" v-if="(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))"
/> />
...@@ -279,6 +280,9 @@ export default { ...@@ -279,6 +280,9 @@ export default {
}; };
</script> </script>
<style lang="less"> <style lang="less">
.i-layout-header-trigger:hover {
background: #343b4a!important;
}
.product-layout { .product-layout {
.ivu-layout-header { .ivu-layout-header {
height: 50px; height: 50px;
...@@ -311,27 +315,38 @@ export default { ...@@ -311,27 +315,38 @@ export default {
transition: font-size 0.5s, margin 0.5s, transform 0.5s; transition: font-size 0.5s, margin 0.5s, transform 0.5s;
} }
} }
.top-menu-box{ .top_menu_box{
display: none; display: none;
border-radius: 5px;
position: absolute; position: absolute;
z-index: 99999; z-index: 99999;
left: 70%; left: 70%;
top: 66%; top: 66%;
min-width: 1800px; min-width: 1084px;
min-height: 300px; min-height: 300px;
background: #f5f6fa; background: #f5f6fa;
-webkit-transition: display 0.5s, -webkit-transform 0.5s;/* Safari */ -webkit-transition: display 0.5s, -webkit-transform 0.5s;/* Safari */
transition: display 0.5s, transform 0.5s; transition: display 0.5s, transform 0.5s;
} }
.top-menu { .top_menu {
border-radius: 4px; border-radius: 4px;
color: #2680eb; color: #2680eb;
list-style: none; list-style: none;
text-align: left; text-align: left;
li:first-of-type{
ul:first-of-type{
li:first-of-type{
border-top-left-radius: 5px;
}
}
}
li { li {
width: 100%; width: 100%;
display: block; display: block;
float: left; // float: left;
// height: 47px;
line-height: 46px;
border-bottom: 1px solid #ccc;
ul { ul {
width: 100%; width: 100%;
list-style: none; list-style: none;
...@@ -340,10 +355,12 @@ export default { ...@@ -340,10 +355,12 @@ export default {
list-style: none; list-style: none;
margin-right: 10px; margin-right: 10px;
width: 150px; width: 150px;
border: none;
a{ a{
display: inline-block; display: inline-block;
padding: 0 10px; padding: 0 10px;
height: 30px; height: 30px;
line-height: 30px;
} }
a:hover{ a:hover{
background: #2680EB; background: #2680EB;
...@@ -358,7 +375,6 @@ export default { ...@@ -358,7 +375,6 @@ export default {
color: white; color: white;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
height: 47px;
} }
.title:hover{ .title:hover{
color: #ddd; color: #ddd;
...@@ -372,7 +388,7 @@ export default { ...@@ -372,7 +388,7 @@ export default {
width: 60px; width: 60px;
z-index: 88888; z-index: 88888;
} }
.home:hover .top-menu-box { .home:hover .top_menu_box {
display: block; display: block;
} }
.home:hover i{ .home:hover i{
...@@ -385,7 +401,7 @@ export default { ...@@ -385,7 +401,7 @@ export default {
line-height: 50px; line-height: 50px;
} }
} }
.header-right { .header_right {
float: right; float: right;
height: 50px; height: 50px;
color: white; color: white;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<MainLayout /> <MainLayout />
</template> </template>
<script> <script>
import MainLayout from "./basic-layout"; import MainLayout from "./basic-layout/product";
// 配置 // 配置
import Setting from "@/setting"; import Setting from "@/setting";
// 方法 // 方法
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment