Commit 527f3bdb authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Menu: compensate for Vue regression

parent ab53f58f
export default {
inject: ['rootMenu'],
computed: {
indexPath() {
var path = [this.index];
......@@ -12,6 +11,16 @@ export default {
}
return path;
},
rootMenu() {
var parent = this.$parent;
while (
parent &&
parent.$options.componentName !== 'ElMenu'
) {
parent = parent.$parent;
}
return parent;
},
parentMenu() {
let parent = this.$parent;
while (
......
<template>
<el-menu-collapse-transition>
<ul class="el-menu"
:key="collapse"
:key="+collapse"
:class="{
'el-menu--horizontal': mode === 'horizontal',
'el-menu--dark': theme === 'dark',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment