UserMain.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div class="user_mains">
  3. <div class="user_main_lefts">
  4. <SideBar/>
  5. </div>
  6. <div class="user_main_rights">
  7. <router-view></router-view>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. import SideBar from "./SideBar.vue"
  13. export default{
  14. components:{
  15. SideBar,
  16. },
  17. data() {
  18. return {
  19. mainHeight: 0,
  20. };
  21. },
  22. mounted(){
  23. },
  24. beforeDestroy() {
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. //内容区布局
  32. .user_mains {
  33. width: 100%;
  34. height: 100%;
  35. overflow: hidden;
  36. display: flex;
  37. justify-content: space-between;
  38. padding: 10px;
  39. box-sizing: border-box;
  40. .user_main_lefts {
  41. width: 120px;
  42. height: 100%;
  43. display: flex;
  44. justify-content: center;
  45. }
  46. .user_main_rights {
  47. width: calc(100% - 130px);
  48. height: 100%;
  49. background-color: transparent;
  50. padding: 0 !important;
  51. box-sizing: border-box;
  52. overflow-y:auto;
  53. position: relative;
  54. .old_link
  55. {
  56. position: absolute;
  57. right: 20px;
  58. top:10px;
  59. color: #2E64FA;
  60. cursor: pointer;
  61. width: 140px;
  62. height: 30px;
  63. line-height: 30px;
  64. text-align: center;
  65. background-color: #fff;
  66. }
  67. }
  68. }
  69. </style>