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,15 +47,16 @@ ...@@ -46,15 +47,16 @@
&:not(:first-child) { &:not(:first-child) {
margin-left: 10px; margin-left: 10px;
} }
}
.createBrief {
float: right;
background: none !important;
&:last-child { &>div>i {
float: right; margin-top: 10px;
background: none !important; font-size: 20px;
&>div>i{ color: white;
margin-top: 10px;
font-size: 20px;
color: white;
}
} }
} }
} }
......
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