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="width: 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;
    }


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM