/**Variable**/

.vxe-table {
  .vxe-table--header-wrapper {
    .vxe-table--header-border-line {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 0;
      border-bottom: 1px solid $vxe-table-border-color;
    }
  }
  /*排序*/
  .vxe-cell--sort {
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    position: relative;
  }
  .vxe-sort--asc-btn,
  .vxe-sort--desc-btn {
    position: absolute;
    left: 0.35em;
    color: $vxe-table-column-icon-border-color;
    width: 1em;
    text-align: center;
    cursor: pointer;
    &:hover {
      color: $vxe-table-font-color;
    }
    &.sort--active {
      color: $vxe-primary-color;
    }
  }
  .vxe-sort--asc-btn {
    top: -0.04em;
  }
  .vxe-sort--desc-btn {
    bottom: -0.04em;
  }
}

.vxe-header--column {
  position: relative;
  font-weight: $vxe-table-header-font-weight;
  user-select: none;
  &.col--title-checked {
    background-color: $vxe-table-column-header-checked-background-color;
  }
  &.col--ellipsis {
    & > .vxe-cell {
      display: flex;
      align-items: center;
      .vxe-cell--title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      & > i,
      & > span {
        &:not(.vxe-cell--title) {
          flex-shrink: 0;
        }
      }
    }
  }
  .vxe-cell--required-icon {
    display: inline-block;
    color: $vxe-table-validate-error-color;
    width: 0.8em;
    height: 1em;
    line-height: 1em;
    font-family: $vxe-icon-font-family;
    font-weight: normal;
    position: relative;
    &:before {
      content: "*";
      position: absolute;
      left: 0;
      top: 0.2em;
    }
  }
  .vxe-cell--required-icon,
  .vxe-cell--edit-icon,
  .vxe-cell-help-icon,
  .vxe-cell--title {
    vertical-align: middle;
  }
  .vxe-cell--required-icon {
    margin-right: 0.1em;
  }
  .vxe-cell--edit-icon,
  .vxe-cell-help-icon {
    margin-right: 0.2em;
  }
  .vxe-cell-help-icon {
    cursor: help;
  }
  .vxe-cell--title {
    line-height: 1.5;
  }
  .vxe-resizable {
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 14px;
    height: 100%;
    text-align: center;
    z-index: 1;
    cursor: col-resize;
    &.is--line {
      &:before,
      &:after {
        content: "";
        display: inline-block;
        vertical-align: middle;
      }
      &:before {
        width: 1px;
        height: 50%;
        background-color: $vxe-table-resizable-line-color;
      }
      &:after {
        width: 0;
        height: 100%;
      }
    }
  }
}

.vxe-table--fixed-right-wrapper {
  .vxe-header--column {
    .vxe-resizable {
      right: auto;
      left: -7px;
    }
  }
}
