<li v-for="(item,index) in listTemp" :key="index">
<div v-for="(cell,i) in item" :key="i">
<p>{{cell.content}}</p>
</div>
</li>
computed:{
listTemp:function(){
let index =0;
let count = 2;
let arrTemp = [];
let experts = this.experts;
for(let i=0;i<this.experts.length;i++){
index = parseInt(i/count);
if (arrTemp.length <= index) {
arrTemp.push([]);
}
arrTemp[index].push(experts[i])
}
return arrTemp
}
}
computed:{
listTemp:function(){
let index =0;
let count = 2;
let arrTemp = [];
let experts = this.experts;
for(let i=0;i<this.experts.length;i++){
index = parseInt(i/count);
if (arrTemp.length <= index) {
arrTemp.push([]);
}
arrTemp[index].push(experts[i])
}
return arrTemp
}
}