修复收缩菜单收起后鼠标放到三级菜单上二级消失的bug

This commit is contained in:
zhigang.li 2018-09-17 21:57:08 +08:00
parent 8710e73342
commit 912fa28659
4 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<Dropdown @on-click="handleClick" transfer :placement="placement">
<Dropdown @on-click="handleClick" :transfer="hideTitle" :placement="placement">
<a class="drop-menu-a" type="text" @mouseover="handleMousemove($event, children)" :style="{textAlign: !hideTitle ? 'left' : ''}"><common-icon :size="rootIconSize" :color="textColor" :type="parentItem.icon"/><span class="menu-title" v-if="!hideTitle">{{ showTitle(parentItem) }}</span><Icon style="float: right;" v-if="!hideTitle" type="ios-arrow-forward" :size="16"/></a>
<DropdownMenu slot="list">
<template v-for="child in children">

View File

@ -38,3 +38,6 @@
.menu-title{
padding-left: 6px;
}
.ivu-select-dropdown{
overflow: visible !important;
}

View File

@ -136,6 +136,7 @@ export default {
},
watch: {
'$route' (newRoute) {
console.log(newRoute)
this.setBreadCrumb(newRoute.matched)
this.setTagNavList(getNewTagList(this.tagNavList, newRoute))
}

View File

@ -46,6 +46,7 @@ export default {
route: route,
type: 'push'
})
console.log(route)
this.$router.push(route)
},
createTagQuery () {