Submenu.vue 714 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <a-sub-menu :key="item.fullPath">
  3. <template v-slot:title>
  4. <span class="anticon">
  5. <svg-icon :iconClass="item.meta.icon"></svg-icon>
  6. <!-- <vab-icon :icon="item.meta.icon"></vab-icon> -->
  7. </span>
  8. <span>{{ item.meta.title }}</span>
  9. </template>
  10. <slot></slot>
  11. </a-sub-menu>
  12. </template>
  13. <script>
  14. // import VabIcon from '@/layout/vab-icon'
  15. export default {
  16. name: 'Submenu',
  17. components: { },
  18. props: {
  19. item: {
  20. type: Object,
  21. default() {
  22. return null
  23. },
  24. },
  25. routeChildren: {
  26. type: Object,
  27. default() {
  28. return null
  29. },
  30. },
  31. },
  32. methods: {},
  33. }
  34. </script>