mirror of https://github.com/ElemeFE/element
Menu: fix close menu bug
parent
2999279ae3
commit
8ba6b580fd
|
@ -165,7 +165,10 @@
|
||||||
this.openedMenus.push(index);
|
this.openedMenus.push(index);
|
||||||
},
|
},
|
||||||
closeMenu(index) {
|
closeMenu(index) {
|
||||||
this.openedMenus.splice(this.openedMenus.indexOf(index), 1);
|
const i = this.openedMenus.indexOf(index);
|
||||||
|
if (i !== -1) {
|
||||||
|
this.openedMenus.splice(i, 1);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleSubmenuClick(submenu) {
|
handleSubmenuClick(submenu) {
|
||||||
const { index, indexPath } = submenu;
|
const { index, indexPath } = submenu;
|
||||||
|
|
|
@ -160,6 +160,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-menu .el-submenu {
|
||||||
|
min-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
.el-submenu {
|
.el-submenu {
|
||||||
position: relative;
|
position: relative;
|
||||||
& .el-menu {
|
& .el-menu {
|
||||||
|
|
Loading…
Reference in New Issue