Commit b71a171d36e1327ee8fe1cc4f35fe97887f0786c

Authored by 梁灏
1 parent 2e018fc7

fixed Menu bug in 2.5.16

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
examples/routers/menu.vue
1 1 <template>
2   - <Menu active-name="1-2" :open-names="['1']">
  2 + <Menu active-name="1-2" :open-names="['1']" theme="dark">
3 3 <Submenu name="1">
4 4 <template slot="title">
5 5 <Icon type="ios-analytics"></Icon>
... ...
src/components/menu/mixin.js
... ... @@ -7,7 +7,7 @@ export default {
7 7 },
8 8 computed: {
9 9 hasParentSubmenu () {
10   - return findComponentUpward(this, 'Submenu');
  10 + return !!findComponentUpward(this, 'Submenu');
11 11 },
12 12 parentSubmenuNum () {
13 13 return findComponentsUpward(this, 'Submenu').length;
... ...