DetailMain.vue 600 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="">
  3. <template v-if="detailsInfo.length">
  4. <CellInfo v-for="(item,index) in detailsInfo" :key="index"
  5. :label="item.label"
  6. :value="item.content"
  7. :icon="item.icon"
  8. ></CellInfo>
  9. </template>
  10. <template v-else>
  11. <CellInfo v-for="(item,index) in detailsInfo" :key="index"
  12. :label="item.label"
  13. ></CellInfo>
  14. </template>
  15. </view>
  16. </template>
  17. <script>
  18. import CellInfo from '@/components/CellInfo.vue'
  19. export default {
  20. components:{
  21. CellInfo
  22. },
  23. props:{
  24. detailsInfo: {
  25. type:Array,
  26. default:[]
  27. }
  28. }
  29. }
  30. </script>
  31. <style>
  32. </style>