Blame view

src/components/menu/mixin.js 324 Bytes
0b9c3d37   zhigang.li   update
1
  import { findComponentUpward, findComponentsUpward } from '../../utils/assist';
acba45fe   zhigang.li   move computed val...
2
3
  export default {
      computed: {
a21e798b   zhigang.li   udpate
4
5
6
          hasParentSubmenu () {
              return findComponentUpward(this, 'Submenu');
          },
acba45fe   zhigang.li   move computed val...
7
8
9
10
          parentSubmenuNum () {
              return findComponentsUpward(this, 'Submenu').length;
          }
      }
0b9c3d37   zhigang.li   update
11
  };