fixed Menu bug in 2.5.16

This commit is contained in:
梁灏 2018-03-14 11:03:29 +08:00
parent 2e018fc7b5
commit b71a171d36
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -7,7 +7,7 @@ export default {
},
computed: {
hasParentSubmenu () {
return findComponentUpward(this, 'Submenu');
return !!findComponentUpward(this, 'Submenu');
},
parentSubmenuNum () {
return findComponentsUpward(this, 'Submenu').length;