Item.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <div class="item">
  3. <div class="item-icon">
  4. <q-icon :name="icon" />
  5. </div>
  6. <div class="item-content">
  7. <div class="item-title">
  8. {{ title }}
  9. </div>
  10. <div class="item-value">
  11. {{ value }}
  12. +
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. name: 'StatisticItem',
  20. props: {
  21. title: {
  22. type: String,
  23. default: undefined
  24. },
  25. value: {
  26. type: String,
  27. default: undefined
  28. },
  29. icon: {
  30. type: String,
  31. default: undefined
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .item {
  38. border-radius: 20px;
  39. background: #FBF4EA;
  40. padding: 64px 0;
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. gap: 20px;
  45. .item-icon {
  46. color: #EAC38A;
  47. width: 70px;
  48. .q-icon {
  49. font-size: 68px;
  50. }
  51. }
  52. .item-content {
  53. width: 70px;
  54. .item-title {
  55. font-size: 18px;
  56. color: #212121;
  57. margin-bottom: 24px;
  58. }
  59. .item-value {
  60. font-size: 18px;
  61. font-weight: bold;
  62. color: #212121;
  63. }
  64. }
  65. }
  66. </style>