ShowCard.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div style="height: 350px;">
  3. <el-row>
  4. <el-col :span="6">
  5. <el-card :body-style="{ padding: '0px' }">
  6. <div style="display: flex; align-items: center;">
  7. <div><img class="cardImg" :src="cardImage" alt="Card Image" style="height: 100px; border-radius: 50%;"/></div>
  8. <div>
  9. <div style="color:#909399;">{{ cardTitle }}</div>
  10. <div style="font-weight: bold;font-size: large">{{ cardMiddle }}</div>
  11. <div>
  12. <span style="color:#909399;">{{ cardBottom }}</span> ⬇️
  13. <span style="color:orangered;">{{ `${cardBottomRight}%` }}</span>
  14. </div>
  15. </div>
  16. </div>
  17. </el-card>
  18. </el-col>
  19. </el-row>
  20. </div>
  21. </template>
  22. <script setup>
  23. const props = defineProps({
  24. cardData: {
  25. type: Object,
  26. required: true,
  27. },
  28. })
  29. const { cardImage, cardTitle, cardMiddle, cardBottom, cardBottomRight } = props.cardData
  30. </script>
  31. <style scoped>
  32. </style>