| 12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <view class="">
- <template v-if="detailsInfo.length">
- <CellInfo v-for="(item,index) in detailsInfo" :key="index"
- :label="item.label"
- :value="item.content"
- :icon="item.icon"
- ></CellInfo>
- </template>
- <template v-else>
- <CellInfo v-for="(item,index) in detailsInfo" :key="index"
- :label="item.label"
- ></CellInfo>
- </template>
- </view>
- </template>
- <script>
- import CellInfo from '@/components/CellInfo.vue'
- export default {
- components:{
- CellInfo
- },
- props:{
- detailsInfo: {
- type:Array,
- default:[]
- }
- }
- }
- </script>
- <style>
- </style>
|