Commit 4c4ee858 authored by 夏敏伟's avatar 夏敏伟

修改样式bug

parent d52c8f08
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
<el-menu default-active="1" class="second-router" mode="horizontal" @open="handleOpen" @close="handleClose" <el-menu default-active="1" class="second-router" mode="horizontal" @open="handleOpen" @close="handleClose"
background-color="transparent" text-color="#fff" @select="handleSelect"> background-color="transparent" text-color="#fff" @select="handleSelect">
<template v-for="(item, index) in module"> <template v-for="(item, index) in module">
<el-menu-item :class="index == choice_status ? 'change-bg' : 'change-bg1'" <el-menu-item
:class="[index == choice_status ? 'change-bg' : 'change-bg1', item.name == '生成报告' ? 'createBrief' : '']"
:index="(index + 1).toString()" @click="href_choice(item, index)"> :index="(index + 1).toString()" @click="href_choice(item, index)">
<div> <div>
<i :class="item.icon"></i> <i :class="item.icon"></i>
<span v-text="item.name"></span> <span v-if="item.name != '生成报告'" v-text="item.name"></span>
</div> </div>
</el-menu-item> </el-menu-item>
</template> </template>
...@@ -46,11 +47,13 @@ ...@@ -46,11 +47,13 @@
&:not(:first-child) { &:not(:first-child) {
margin-left: 10px; margin-left: 10px;
} }
}
&:last-child { .createBrief {
float: right; float: right;
background: none !important; background: none !important;
&>div>i{
&>div>i {
margin-top: 10px; margin-top: 10px;
font-size: 20px; font-size: 20px;
color: white; color: white;
...@@ -58,7 +61,6 @@ ...@@ -58,7 +61,6 @@
} }
} }
} }
}
.myMain { .myMain {
width: 100%; width: 100%;
......
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