BaseMain.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <div class="baseMainContainer">
  3. <div class="header">
  4. <div class="left">{{ title }}</div>
  5. <div class="right"><slot name="headerR"></slot></div>
  6. </div>
  7. <div class="content-area">
  8. <slot name="mainArea"></slot>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. name: 'BaseMain',
  15. props:{
  16. title:String,
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. .baseMainContainer{
  22. width: px-to-rem(361);
  23. margin: px-to-rem(15) px-to-rem(19);
  24. .header{
  25. background:url('@/assets/image/common/header-bg.png') no-repeat;
  26. background-size: contain;
  27. width: 100%;
  28. height: px-to-rem(47);
  29. line-height: px-to-rem(47);
  30. display: flex;
  31. justify-content: space-between;
  32. .left{
  33. margin-left: px-to-rem(44);
  34. font-weight: bold;
  35. font-size: px-to-rem(18);
  36. color: #FFFFFF;
  37. text-shadow:px-to-rem(0) px-to-rem(2) px-to-rem(9) #003F85;
  38. }
  39. .right{
  40. margin-right: px-to-rem(11);
  41. }
  42. }
  43. .content-area{
  44. width: px-to-rem(360);
  45. min-height: px-to-rem(252);
  46. background: linear-gradient(to bottom, #324862 0%, #313A44 50%, #324862 100%);
  47. border-radius: 0 0 px-to-rem(10) px-to-rem(10);
  48. }
  49. }
  50. </style>