frame.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div id="frame">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <div class="w_1200">
  6. <el-col :span="5" class="left">
  7. <slot name="menu"></slot>
  8. </el-col>
  9. <el-col :span="19" class="right">
  10. <slot></slot>
  11. </el-col>
  12. </div>
  13. </el-col>
  14. </el-row>
  15. </div>
  16. </template>
  17. <script>
  18. import { mapState, createNamespacedHelpers } from 'vuex';
  19. export default {
  20. name: 'adminFrame',
  21. props: {},
  22. components: {},
  23. data: function() {
  24. return {};
  25. },
  26. created() {},
  27. methods: {},
  28. computed: {
  29. ...mapState(['user', 'menuParams']),
  30. pageTitle() {
  31. return `${this.$route.meta.title}`;
  32. },
  33. },
  34. metaInfo() {
  35. return { title: this.$route.meta.title };
  36. },
  37. };
  38. </script>
  39. <style lang="less" scoped>
  40. .main {
  41. padding: 10px 0;
  42. background: #e9edf6;
  43. .left {
  44. min-height: 537px;
  45. margin: 0 15px 0 0;
  46. background: #fff;
  47. }
  48. .right {
  49. width: 935px;
  50. min-height: 630px;
  51. background: #fff;
  52. }
  53. }
  54. </style>