vue将数组分割成多维数组 两个或多个渲染

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