vue v-for list数据循环 每2或者(n)个一组

vue yekong
<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代码

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
          }
        }
喜欢