<el-table

       :default-expand-all="true"

       :row-class-name="getRowClass">

</el-table>

 

getRowClass:function(row,rowIndex){

        if(row.row.childMessageTypeUserRnVos.length==0){  //判断当前行是否有子数据

              return 'row-expand-cover'

      }

}

css

    .row-expand-cover td:last-child .el-icon-arrow-right{visibility: hidden;}

 

 

Logo

前往低代码交流专区

更多推荐