猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
587 B

2 months ago
2 months ago
  1. <template>
  2. <view class="comp-card">
  3. <view class="comp-card-data mt20">
  4. <up-grid :border="false">
  5. <up-grid-item v-for="(item,index) in props.cardData" :key="index" style="width: 220rpx;">
  6. <text class="title color-999 size-28">{{item.title}}</text>
  7. <text class="num mt20 size-28" :style="{color:item.color}">{{item.num}}</text>
  8. </up-grid-item>
  9. </up-grid>
  10. </view>
  11. </view>
  12. </template>
  13. <script setup>
  14. const props = defineProps({
  15. cardData:{
  16. type:Array,
  17. default:()=>[]
  18. }
  19. })
  20. </script>
  21. <style scoped lang="scss">
  22. .comp-card {
  23. &-data{
  24. }
  25. }
  26. </style>