index.vue 620 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="bs-manage-main-wrap">
  3. <side-menu
  4. @getPageInfo="getPageInfo"
  5. />
  6. <menu-content
  7. :catalog-info="catalogInfo"
  8. />
  9. </div>
  10. </template>
  11. <script>
  12. import SideMenu from './SideMenu'
  13. import MenuContent from './MenuContent'
  14. export default {
  15. name: '',
  16. props: {
  17. },
  18. components: { SideMenu, MenuContent },
  19. data () {
  20. return {
  21. catalogInfo: 'component'
  22. }
  23. },
  24. mounted () {},
  25. methods: {
  26. getPageInfo (type) {
  27. this.catalogInfo = type
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .bs-manage-main-wrap {
  34. display: flex;
  35. height: 100%;
  36. }
  37. </style>