vben
2020-11-15 661db0c767772bb7a30da9d3eeaf2b47858ccf0b
src/components/Table/src/style/index.less
@@ -1,5 +1,5 @@
@import (reference) '../../../../design/index.less';
@border-color: hsla(0, 0%, 80.8%, 0.25);
@border-color: #cecece4d;
.basic-table {
  &-title {
@@ -27,33 +27,12 @@
  }
  &-toolbar {
    display: flex;
    align-items: center;
    > * {
      margin-right: 10px;
    }
  }
  .resize-table-th {
    position: relative !important;
    .table-draggable-handle {
      position: absolute;
      right: -5px;
      bottom: 0;
      left: auto !important;
      height: 100% !important;
      cursor: col-resize;
      transform: none !important;
      touch-action: none;
    }
  }
  &-drag-body {
    position: relative;
    cursor: move;
  }
  .drag-line td {
    border-top: 2px dashed @primary-color;
  }
  .ant-table-wrapper {
@@ -62,7 +41,7 @@
    border-radius: 2px;
    .ant-table-title {
      padding: 0 0 10px 0 !important;
      padding: 0 0 8px 0 !important;
    }
    .ant-table.ant-table-bordered .ant-table-title {
@@ -70,18 +49,28 @@
    }
  }
  &.inset {
    .ant-table-wrapper {
      padding: 0;
    }
  }
  //
  .ant-table {
    border: none;
    &-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 6px;
      border-bottom: none;
    }
    .ant-table-thead > tr > th,
    .ant-table-header {
      background: #f1f3f4;
      background-color: #f1f3f4 !important;
    }
    .ant-table-tbody > tr.ant-table-row-selected td {
@@ -93,17 +82,21 @@
  .ant-table-bordered .ant-table-body > table,
  .ant-table-bordered .ant-table-fixed-left table,
  .ant-table-bordered .ant-table-fixed-right table {
    border: 1px solid @border-color;
    border: 1px solid @border-color !important;
  }
  .ant-table-thead {
    tr {
      border: none;
    }
    th {
      border: none;
    }
  }
  .ant-table-bordered .ant-table-tbody > tr > td {
    border-bottom: 1px solid @border-color;
    border-bottom: 1px solid @border-color !important;
    &:last-child {
      border-right: none !important;
@@ -129,12 +122,7 @@
  .ant-table-bordered .ant-table-thead > tr > th,
  .ant-table-bordered .ant-table-tbody > tr > td {
    border-right: 1px solid @border-color;
  }
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 9px 8px !important;
    border-right: 1px solid @border-color !important;
  }
  .ant-pagination {
@@ -153,10 +141,14 @@
  }
  .ant-table-fixed-right .ant-table-header {
    border-left: 1px solid @border-color;
    border-left: 1px solid @border-color !important;
    .ant-table-fixed {
      border-bottom: none;
      .ant-table-thead th {
        background: rgb(241, 243, 244);
      }
    }
  }
@@ -187,7 +179,7 @@
  .ant-table-bordered .ant-table-thead > tr:not(:last-child) > th,
  .ant-table-tbody > tr > td {
    word-break: break-word;
    border-color: @border-color;
    border-color: @border-color !important;
  }
  .ant-table-footer {