Commit 434dd065 by liimin

优化一些显示

1 parent 0630c826
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
display: none; display: none;
} }
} }
&.is-opened { // &.is-opened {
margin-bottom: $menu-item-mb; // margin-bottom: $menu-item-mb;
} // }
} }
.el-menu-item { .el-menu-item {
&.is-menu { &.is-menu {
......
...@@ -3,7 +3,7 @@ $header-height: 48px; ...@@ -3,7 +3,7 @@ $header-height: 48px;
$header-background: #a3b6c6; $header-background: #a3b6c6;
$header-color: #fff; $header-color: #fff;
$header-padding: 15px; $header-padding: 15px;
$logo-height: 133px; $logo-height: 124px;
// 左侧菜单样式变量 // 左侧菜单样式变量
$menu-background: #2a3f54; $menu-background: #2a3f54;
$menu-color: #fff; $menu-color: #fff;
......
...@@ -22,7 +22,7 @@ module.exports = { ...@@ -22,7 +22,7 @@ module.exports = {
header_background: '#a3b6c6', header_background: '#a3b6c6',
header_color: '#fff', header_color: '#fff',
header_padding: '15px', header_padding: '15px',
logo_height: '133px', logo_height: '124px',
// 左侧菜单样式变量 // 左侧菜单样式变量
menu_background: '#2a3f54', menu_background: '#2a3f54',
menu_color: '#fff', menu_color: '#fff',
......
<template> <template>
<div class="com-up-log"> <div class="com-up-log">
<a :href="v.link" target="blank" @click="clickHandler()">更新日志</a> <a :href="v.link" target="blank" @click="clickHandler()" :class="{ isNew: v.isNew }">更新日志</a>
<span class="isNew" v-if="v.isNew">New</span>
</div> </div>
</template> </template>
...@@ -46,7 +45,8 @@ export default { ...@@ -46,7 +45,8 @@ export default {
.com-up-log { .com-up-log {
position: relative; position: relative;
margin-right: 6px; margin-right: 6px;
.isNew { .isNew:after {
content: 'New';
position: absolute; position: absolute;
width: 30px; width: 30px;
height: 16px; height: 16px;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
</div> </div>
<!-- 有二级菜单的一级菜单 --> <!-- 有二级菜单的一级菜单 -->
<el-submenu v-else :index="item.id" @mouseenter.native.stop="mouseenter(item)" @mouseleave.native.stop="mouseleave" popper-class="el-submenu-popper-base"> <el-submenu v-else :index="item.id" @mouseenter.native.stop="mouseenter(item)" @mouseleave.native.stop="mouseleave" popper-class="el-submenu-popper-base" hide-timeout="0" show-timeout="0">
<template slot="title"> <template slot="title">
<i class="i" :class="genClass(item)"></i> <i class="i" :class="genClass(item)"></i>
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.title }}</span>
...@@ -79,12 +79,12 @@ export default { ...@@ -79,12 +79,12 @@ export default {
min-height: 20px; min-height: 20px;
} }
/deep/.el-submenu { /deep/.el-submenu {
&:not(.is-opened) { // &:not(.is-opened) {
margin-bottom: $menu-item-mb; // margin-bottom: $menu-item-mb;
} // }
&__title { &__title {
height: 40px; height: 60px;
line-height: 40px; line-height: 60px;
background-color: transparent !important; background-color: transparent !important;
border-radius: 4px; border-radius: 4px;
padding-left: 28px !important; padding-left: 28px !important;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!