最近在写uniapp项目的时候一直在用到这个u-cell-group组件,今天就讲一下这个组件!
通常我们在写列表的时候会遇到这种情况
因为后台给我们返的数据只有后面的内容,所以前面的内容就需要我们来写了,那么我们直接上代码
<u-cell-group>
<u-cell-item v-for="(item,index) in cellData" :key="index" @click="goDetails(item)" :title="item.name" :arrow="true">
<template slot="label">
<span>{{"技术类别:"+item.qualifications}}</span>
</template>
</u-cell-item>
</u-cell-group>
我们只需要添加一个标签就可以了