borderTemplate.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="border-box-style box-content-style" :style="borderBox">
  3. <div class="justify-style">
  4. <div class="justify-style-left">
  5. <div class="icon"></div>
  6. <div class="title inline-left">{{$t(title)}}</div>
  7. <slot name="operation"></slot>
  8. </div>
  9. <div class="detail-title justify-style-right">
  10. <div>{{$t(detailTitle)}}</div>
  11. <div style="margin-left: 0.260vw"> > </div>
  12. </div>
  13. </div>
  14. <slot name="content"></slot>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. name: "borderTemplate",
  20. props:["borderBox","title","detailTitle"],
  21. mounted() {
  22. // autofit.init({
  23. // dh: 1135,
  24. // dw: 1920,
  25. // el:"body",
  26. // resize: true
  27. // })
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. .border-box-style{
  33. background: linear-gradient( 180deg, #00244D 0%, #001E41 100%);
  34. box-shadow: 0.000vw 0.104vw 0.208vw 0.052vw rgba(0,0,0,0.15);
  35. border-radius: 0.208vw 0.208vw 0.208vw 0.208vw;
  36. border: 0.104vw solid #3D73BA;
  37. opacity: 0.8;
  38. }
  39. .justify-style-left{
  40. display: flex;
  41. justify-content: left;
  42. }
  43. .justify-style-right{
  44. display: flex;
  45. justify-content: right;
  46. }
  47. .justify-style{
  48. display: flex;
  49. justify-content: space-between;
  50. }
  51. .inline-left{
  52. margin-left: 20px;
  53. }
  54. .box-content-style{
  55. padding: 1.042vw;
  56. }
  57. .box-content-style .icon {
  58. width: 0.313vw;
  59. height: 0.938vw;
  60. background: #E6F4FF;
  61. border-radius: 0.104vw 0.104vw 0.104vw 0.104vw;
  62. }
  63. .box-content-style .title{
  64. width: 6.250vw;
  65. height: 1.615vw;
  66. font-family: Microsoft YaHei, Microsoft YaHei;
  67. font-weight: bold;
  68. font-size: 1.250vw;
  69. color: #E6F4FF;
  70. text-align: left;
  71. line-height: 0.9vw;
  72. vertical-align: middle;
  73. }
  74. .box-content-style .detail-title{
  75. width: 6.333vw;
  76. height: 1.094vw;
  77. font-family: Microsoft YaHei, Microsoft YaHei;
  78. font-weight: 400;
  79. font-size: 0.833vw;
  80. color: #CFDCE5;
  81. line-height: 0.9vw;
  82. text-align: left;
  83. font-style: normal;
  84. text-transform: none;
  85. }
  86. </style>