AdminDashboard.vue 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <wrapper margin>
  3. <div class="c-cards">
  4. <tenant-card class="c-cards__item" />
  5. <card
  6. class="c-cards__item"
  7. type="info"
  8. title="总次数"
  9. tip="100"
  10. />
  11. <card
  12. class="c-cards__item"
  13. type="safety"
  14. title="安全异常"
  15. desc="累计异常数:30"
  16. />
  17. <card
  18. class="c-cards__item"
  19. type="performance"
  20. title="性能异常"
  21. desc="累计异常数:30"
  22. count="3"
  23. />
  24. </div>
  25. </wrapper>
  26. </template>
  27. <script>
  28. import Card from './components/Card'
  29. import TenantCard from './components/CardTenant'
  30. export default {
  31. name: 'AdminDashboard',
  32. components: {
  33. Card,
  34. TenantCard
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .c-cards {
  40. display: grid;
  41. grid-template-columns: repeat(5, 1fr);
  42. grid-column-gap: $spacing;
  43. &__item {
  44. min-width: 0;
  45. }
  46. }
  47. </style>