Browse Source

修复子菜单同级出现子菜单项会同时选中bug

daxiongYang 6 years ago
parent
commit
602feba312
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/assets/scss/_base.scss

+ 5 - 5
src/assets/scss/_base.scss

@ -132,7 +132,7 @@ img {
132 132
    }
133 133
    .el-menu {
134 134
      > .el-menu-item,
135
      > .el-submenu .el-submenu__title {
135
      > .el-submenu > .el-submenu__title {
136 136
        color: #fff;
137 137
        &:focus,
138 138
        &:hover {
@ -141,7 +141,7 @@ img {
141 141
        }
142 142
      }
143 143
      > .el-menu-item.is-active,
144
      > .el-submenu.is-active .el-submenu__title {
144
      > .el-submenu.is-active > .el-submenu__title {
145 145
        border-bottom-color: mix(#fff, $navbar--background-color, 85%);
146 146
      }
147 147
      .el-menu-item i,
@ -227,7 +227,7 @@ img {
227 227
      text-decoration: none;
228 228
    }
229 229
    .el-menu-item,
230
    .el-submenu .el-submenu__title {
230
    .el-submenu > .el-submenu__title {
231 231
      height: 50px;
232 232
      line-height: 50px;
233 233
    }
@ -263,7 +263,7 @@ img {
263 263
    > .el-menu--popup {
264 264
      background-color: $sidebar--background-color-dark;
265 265
      .el-menu-item,
266
      .el-submenu .el-submenu__title {
266
      .el-submenu > .el-submenu__title {
267 267
        color: $sidebar--color-text-dark;
268 268
        &:focus,
269 269
        &:hover {
@ -276,7 +276,7 @@ img {
276 276
        background-color: mix(#000, $sidebar--background-color-dark, 15%);
277 277
      }
278 278
      .el-menu-item.is-active,
279
      .el-submenu.is-active .el-submenu__title {
279
      .el-submenu.is-active > .el-submenu__title {
280 280
        color: mix(#fff, $sidebar--color-text-dark, 80%);
281 281
      }
282 282
    }