Skip to content

Commit

Permalink
修改导航菜单的一个样式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyoubo committed Mar 5, 2019
1 parent 9fdeb82 commit f9e3283
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/TreeNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<el-button icon="el-icon-search" type="primary" size="small" @click="search" circle></el-button>
<deploy/>
</div>
<el-scrollbar :style="{height: scrollbarHeight}" ref="scrollbar" class="el-scrollbar">
<el-scrollbar :style="{height: scrollbarHeight}" ref="scrollbar" class="el-scrollbar" view-style="height: 100%">
<el-menu default-active="all" :default-openeds="defaultOpeneds" @select="handleSelect">
<el-menu-item index="all">
<i class="iconfont icon-archive"></i>
Expand Down Expand Up @@ -76,7 +76,7 @@
this.$store.dispatch('UiStatus/openTreeNav')
}
},
handleSelect (key, keyPath) {
handleSelect (key) {
this.$store.dispatch('Hexo/selectTree', key)
},
Expand Down Expand Up @@ -146,4 +146,8 @@
height: 36px;
line-height: 36px;
}
.el-scrollbar__view .el-menu {
height: 100%!important;
}
</style>

0 comments on commit f9e3283

Please sign in to comment.