index.vue 812 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <a-row :class="card_style">
  3. <a-col :class="card_style" :span="24">
  4. <div :class="['monitor-overview-card', card_style]">
  5. <div>
  6. <slot name="header" />
  7. </div>
  8. <div :class="card_style">
  9. <slot>{{ '' }}</slot>
  10. </div>
  11. <div>
  12. <slot name="footer" />
  13. </div>
  14. </div>
  15. </a-col>
  16. </a-row>
  17. </template>
  18. <script>
  19. export default {
  20. name: 'MonitorCardLayout',
  21. props: {
  22. card_style: {
  23. type: String,
  24. },
  25. },
  26. }
  27. </script>
  28. <style lang="less" scoped>
  29. .monitor-overview-card {
  30. border: 1px solid #F1F1F1;
  31. // padding: 12px 24px;
  32. .header {
  33. font-weight: 500;
  34. .title-wrapper {
  35. .subtitle {
  36. font-size: 12px;
  37. color: #ccc;
  38. }
  39. }
  40. }
  41. }
  42. .no-border {
  43. border: none;
  44. }
  45. </style>