card-wrap2.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="card-wrap">
  3. <div class="o-item o-left">
  4. <slot name="left"></slot>
  5. </div>
  6. <div class="o-item o-r-1">
  7. <slot name="r1"></slot>
  8. </div>
  9. <div class="o-item o-r-2">
  10. <slot name="r2"></slot>
  11. </div>
  12. <div class="o-item"></div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'CardWrap2'
  18. }
  19. </script>
  20. <style scoped lang="scss">
  21. .card-wrap {
  22. width: 100%;
  23. height: 100%;
  24. background-image: url("/static/images/bianpin_Text Box@2x.png");
  25. background-size: contain;
  26. background-position: center;
  27. background-repeat: no-repeat;
  28. display: grid;
  29. grid-template-rows: 1fr 1fr;
  30. grid-template-columns: 1fr 1fr;
  31. grid-auto-flow: row;
  32. padding: 1.3vh 0;
  33. .o-item {
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. justify-content: space-around;
  38. font-size: 0.8vw;
  39. font-weight: 500;
  40. width: 100%;
  41. height: 100%;
  42. color: white;
  43. &.o-left {
  44. grid-row-start: 1;
  45. grid-row-end: 3;
  46. font-size: 0.8vw;
  47. display: flex;
  48. flex-direction: row;
  49. align-items: center;
  50. justify-content: center;
  51. //grid-column-start: 1;
  52. //grid-column-end: 3;
  53. }
  54. .value {
  55. color: #00F2FF
  56. }
  57. }
  58. }
  59. </style>