ventBoxHsq.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div class="vent-box1-bg">
  3. <!-- <div class="box1-top">
  4. <div class="title">
  5. <slot name="title"></slot>
  6. </div>
  7. </div> -->
  8. <div class="box1-center">
  9. <div class="box-container">
  10. <slot name="container"></slot>
  11. </div>
  12. </div>
  13. <!-- <div class="box1-bottom"></div> -->
  14. </div>
  15. </template>
  16. <script>
  17. import { defineComponent } from 'vue';
  18. export default defineComponent({
  19. name: 'VentBox1',
  20. setup() {},
  21. });
  22. </script>
  23. <style lang="less" scoped>
  24. @import '/@/design/theme.less';
  25. @{theme-green} {
  26. .vent-box1-bg {}
  27. }
  28. .vent-box1-bg {
  29. // --image-box1-bg: url('@/assets/images/home-container/configurable/hsq/2-10.png');
  30. // --image-box1-bg1: url('@/assets/images/home-container/configurable/hsq/2-5.png');
  31. width: 100%;
  32. min-height: 80px;
  33. position: relative;
  34. overflow-x: hidden;
  35. // background: var(--image-box1-bg) no-repeat;
  36. // background-size: 100% 100%;
  37. // .box1-top {
  38. // width: 100%;
  39. // height: 40px;
  40. // .title {
  41. // width: 177px;
  42. // height: 40px;
  43. // display: flex;
  44. // // justify-content: center;
  45. // align-items: center;
  46. // color: #01fdfb;
  47. // font-weight: bolder;
  48. // padding-left: 30px;
  49. // background: var(--image-box1-bg1) no-repeat;
  50. // background-size: 100% 100%;
  51. // }
  52. // }
  53. .box1-center {
  54. width: 100%;
  55. height: 100%;
  56. position: relative;
  57. .box-container {
  58. width: calc(100% - 2px);
  59. min-height: 50px;
  60. // position: relative;
  61. padding: 10px;
  62. color: #fff;
  63. // &::before {
  64. // content: '';
  65. // display: block;
  66. // position: absolute;
  67. // top: 5px;
  68. // left: 0;
  69. // width: 1px;
  70. // height: calc(100% - 10px);
  71. // }
  72. // &::after {
  73. // content: '';
  74. // display: block;
  75. // position: absolute;
  76. // right: 1px;
  77. // top: 5px;
  78. // width: 1px;
  79. // height: calc(100% - 10px);
  80. // }
  81. }
  82. }
  83. // .box1-bottom {
  84. // width: 100%;
  85. // height: 35px;
  86. // position: absolute;
  87. // bottom: 0px;
  88. // z-index: 1;
  89. // pointer-events: none;
  90. // }
  91. }
  92. </style>