UsageQuota.vue 746 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="usage-quota" :class="{ 'is-template': isTemplate }">
  3. <h3>{{ title }}</h3>
  4. <p>{{ value }}</p>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'UsageQuota',
  10. props: {
  11. title: {
  12. type: String,
  13. },
  14. value: {
  15. type: [Number, String],
  16. },
  17. isTemplate: {
  18. type: Boolean,
  19. default: false,
  20. },
  21. },
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .usage-quota {
  26. width: 100%;
  27. height: 84px;
  28. padding: 20px 10px;
  29. margin-bottom: 16px;
  30. box-sizing: border-box;
  31. box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  32. h3 {
  33. font-size: 14px;
  34. font-weight: normal;
  35. }
  36. p{
  37. color: #3591FF;
  38. }
  39. &.is-template {
  40. box-shadow: none;
  41. border: 1px solid #e5e6eb;
  42. }
  43. }
  44. </style>