BottomCharts.vue 884 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div id="box">
  3. <div class="box-title">
  4. <dv-decoration-5 class="header-center-decoration" />
  5. <div class="center-title">{{ this.title }}</div>
  6. </div>
  7. <slot class="content" name="default"></slot>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "BorderItem",
  13. props: {
  14. title: {
  15. type: String,
  16. default: "",
  17. },
  18. },
  19. data() {
  20. return {};
  21. },
  22. };
  23. </script>
  24. <style lang="scss">
  25. #box {
  26. width: 100%;
  27. height: 100%;
  28. .box-title {
  29. height: 20%;
  30. display: flex;
  31. flex-direction: column;
  32. .header-center-decoration {
  33. width: 95%;
  34. height: 70px;
  35. }
  36. .center-title {
  37. position: absolute;
  38. font-size: 12px;
  39. font-weight: bold;
  40. left: 50%;
  41. top: 14px;
  42. transform: translateX(-50%);
  43. }
  44. }
  45. .content{
  46. height: 100%;
  47. }
  48. .aa {
  49. display: flex;
  50. }
  51. }
  52. </style>