// h-table中被其他表格用到的基础样式
// 用于处理按需加载组件样式拆包中的 各类表格均使用到h-table中某些样式的问题


.#{$table-prefix-cls} {
  // 因为无数据时内部tip用的是h-table-tip，所以需要额外补充样式，后续待editgird补充了这一样式后可以删除
  &-tip {
    overflow: auto;

    @include scrollbar;

    table {
      width: 100%;
      min-height: $table-tiptext-height;

      td {
        text-align: center;
      }
    }
  }

  &-tiptext {
    position: absolute;
    // pointer-events: none;
    text-align: center;
    overflow-y: auto;
    min-height: $table-tiptext-height;
    // height:$table-tiptext-height;
    line-height: $table-tiptext-line-height;
    @if $--size-switch == yes {
      font-size: $--size-font-size-base;
    }
  }

  &__column-resize-proxy {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px solid $border-color-base;
    z-index: 10;

    @include theme-border-left-color($__table-column-resize-proxy_border-left-color);
  }

  &__column-move-proxy {
    position: absolute;
    z-index: 10;
  }
  // 拖拽后的占位元素带有h-table-cell所以基础的需要补起来
  &-cell {
    padding-left: $table-cell-padding-left;
    padding-right: $table-cell-padding-right;
    overflow: hidden;
    // text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
    box-sizing: border-box;

    &-ellipsis {
      word-break: keep-all;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    &-with-expand {
      @if $--size-switch == yes {
      } @else {
        height: $table-with-expand-height;
        line-height: $table-with-expand-line-height;
      }
      padding: $table-with-expand-padding;
      text-align: center;
    }

    &-with-drag i {
      @if $--size-switch == yes {
        line-height: 1;
      }
      cursor: move;
    }

    &-expand {
      cursor: pointer;
      transition: transform $transition-time $ease-in-out;
      display: inline-block;

      i {
        font-size: $font-size-base;

        @include theme-font-color($__table-tr-expand-td-icon_font-color);
      }

      &-expanded {
        transform: rotate(90deg);
      }
    }
    & .h-checkbox-wrapper,.h-radio-wrapper {
      @if $--size-switch == yes { //需要去除checkbox的上下padding，否则在最小模式下的单元格会被撑开
        padding-top:0;
        padding-bottom:0;
      } 
    }
  }
}


// 拖拽时的占位样式
.move-proxy-th {
  border: 1px solid $border-color-base;

  @include theme-border-color($__table-move-proxy-th_border-color);
}
