elment el-table 设置tr间距

 /deep/ .el-table__body {
      border-collapse: separate !important;
      border-spacing: 0 15px !important;
      table-layout: auto !important;
    }
    /deep/ .el-table,
    .el-table__expanded-cell {
      background-color: transparent !important;
    }
    /deep/ .el-table--enable-row-transition .el-table__body td,
    .el-table .cell {
      background-color: transparent;
    }
 <el-table
        v-loading="listLoading"//设置loading
        v-el-table-infinite-scroll="load"//滚动加载
        :data="list"
        height="560px"
        :row-class-name="tableRowClassName"//给每一行添加index做clss样式操作
        style=" 100%"
        @row-click="rowClick"//点击tr每一行
        @cell-mouse-leave="showClickIcon = false"//鼠标移入移出
        @cell-mouse-enter="ncrFormat"
        :header-cell-style="headBgImage"//改变头部样式
      >
  // 取消表格鼠标进入高亮显示
    /deep/ .el-table__row:hover > td {
      background-color: transparent;
    }
正道的光终将来临,当太阳升起的时候,光芒总会普照大地温暖人间。些许的阴霾也终会有被阳光洒满的一天
原文地址:https://www.cnblogs.com/sjruxe/p/15294349.html