@import '../commonStyle/index.less';

.@{prefix}-table {
  .ant-spin-nested-loading,
  .ant-spin-container,
  .ant-table-container,
  .ant-table-content {
    height: 100%;
  }

  .ant-spin-container,
  .ant-table-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ant-table {
    flex: 1;
    overflow: hidden;
  }

  .ant-table-body {
    overflow-y: auto;
    // 表内单元格不省略
    .ant-table-tbody > tr > td.ant-table-cell.d-table-cell-wrap {
      white-space: initial;
    }

    // x轨道的宽度和y轨道的高度
    &::-webkit-scrollbar {
      width: 4px;
      height: 8px;
    }

    // 轨道拖动部分的背景颜色
    &::-webkit-scrollbar-thumb {
      background-color: #0084ff;
    }

    // 轨道背景颜色
    &::-webkit-scrollbar-track {
      background-color: #f1f1f1;
      border-radius: 2px;
    }

    // x、y两条轨道的交叉处
    &::-webkit-scrollbar-corner {
      background-color: #f1f1f1;
    }
  }

  .ant-spin-nested-loading > div > .ant-spin {
    max-height: initial;
  }

  .ant-pagination-total-text span {
    color: #40a9ff;
    font-weight: bold;
  }
}
