Blame view

src/components/menu/mixin.js 204 Bytes
acba45fe   zhigang.li   move computed val...
1
2
3
4
5
6
7
8
  import { findComponentsUpward } from '../../utils/assist';
  export default {
      computed: {
          parentSubmenuNum () {
              return findComponentsUpward(this, 'Submenu').length;
          }
      }
  }