no message

Former-commit-id: 410a22d6d18828f6f8ba8b9b1b36f2d2563d15be [formerly 410a22d6d18828f6f8ba8b9b1b36f2d2563d15be [formerly 410a22d6d18828f6f8ba8b9b1b36f2d2563d15be [formerly 410a22d6d18828f6f8ba8b9b1b36f2d2563d15be [formerly c31bba0bcbe5dbbe311023f64cdce8ad0d3f9276 [formerly eb8211779aea015240ac95b0534324fd4c84dc67]]]]]
Former-commit-id: 47cded5f6aa6bab091b8a0871c4b7f03fcc32c15
Former-commit-id: b91a00e9032f7240777ad683b69ad87c9c9a3d1e
Former-commit-id: 9f00370a010a33f093521145e9c86bda0d7202d6 [formerly 1308aa9caab6092d9330825d070b2300fbd126ba]
Former-commit-id: 1c8d194ca4a214c568c55e1f012f33cfb1038c64
Former-commit-id: 0a1a134939dbe74bd406d1382f325e5c63131bc9
Former-commit-id: 9cab1bd5916dd249f16ede6d8806e1538300efee
Former-commit-id: b5a4e2a15bcf9f241ee4840cdbdd8c8430b10d8a
Former-commit-id: c6a72c1ecac32ea176ea48ffeba0078e49c38f88
This commit is contained in:
liyang
2018-06-27 16:07:01 +08:00
parent 926701ea70
commit 64685a2db6
6 changed files with 24 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-menu-item :index="menu.path || uniqueid">
<i v-if="menu.icon" :class="`fa fa-${menu.icon}`"></i>
<i :class="`fa fa-${menu.icon || 'file-o'}`"></i>
<span slot="title">{{menu.title}}</span>
</el-menu-item>
</template>

View File

@@ -1,6 +1,6 @@
<template>
<div style="height: 100%;">
<el-scrollbar v-if="menus.length > 0 && !collapse">
<el-scrollbar v-if="menus.length > 0">
<div :style="{ height: `${asideHeight}px` }">
<el-menu
:collapse="collapse"
@@ -60,7 +60,9 @@ export default {
this.menus = _side.length > 0 ? _side[0].children : []
this.active = val[val.length - 1].path
this.$nextTick(() => {
this.$refs.menu.activeIndex = this.active
if (this.menus.length > 0) {
this.$refs.menu.activeIndex = this.active
}
})
},
immediate: true

View File

@@ -1,7 +1,7 @@
<template>
<el-submenu :index="menu.path || uniqueid">
<template slot="title">
<i v-if="menu.icon" :class="`fa fa-${menu.icon}`"></i>
<i :class="`fa fa-${menu.icon || 'folder-o'}`"></i>
<span slot="title">{{menu.title}}</span>
</template>
<template v-for="(child, childIndex) in menu.children">