fixed Menu bug in 2.5.16
This commit is contained in:
parent
2e018fc7b5
commit
b71a171d36
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<Menu active-name="1-2" :open-names="['1']">
|
||||
<Menu active-name="1-2" :open-names="['1']" theme="dark">
|
||||
<Submenu name="1">
|
||||
<template slot="title">
|
||||
<Icon type="ios-analytics"></Icon>
|
||||
|
|
|
@ -7,7 +7,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
hasParentSubmenu () {
|
||||
return findComponentUpward(this, 'Submenu');
|
||||
return !!findComponentUpward(this, 'Submenu');
|
||||
},
|
||||
parentSubmenuNum () {
|
||||
return findComponentsUpward(this, 'Submenu').length;
|
||||
|
|
Loading…
Add table
Reference in a new issue