<van-cell v-for="retlist in retlist.list" :key="retlist.getpId" :value="retlist.userName" :label="retlist.positionName" icon="https://b.yzcdn.cn/vant/icon-demo-1126.png" /> 这样没有label属性<van-cell v-for="retlist in retlist.list" :key="retlist.getpId" :value="retlist.userName" label="retlist.positionName" icon="https://b.yzcdn.cn/vant/icon-demo-1126.png" /> label属性写死了也没有但是<van-cell title="单元格" value="内容" label="描述信息" />这样写又有lable属性
<van-cell v-for="retlist in retlist.list" :key="retlist.getpId" :value="retlist.userName" :label="retlist.positionName" icon="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
<van-cell v-for="retlist in retlist.list" :key="retlist.getpId" :value="retlist.userName" label="retlist.positionName" icon="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
不确定是否是因为你循环变量名与实例变量名重复的原因
<van-cell v-for="item in retlist.list" :key="item.getpId" :value="item.userName" :label="item.positionName" icon="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
你可以改个变量名试下,就算不是也相当不建议这样写
2.1m questions
2.1m answers
62 comments
56.7k users