@include c(table) {
  width: 100%;
  position: relative;
  border: 1px solid map-get($c-table, border-color);
  border-bottom: 0;

  tr {
    display: flex;
  }

  th,
  td {
    padding: px2rpx(18px) px2rpx(22px);
    flex: 1;
    border-left: 1px solid map-get($c-table, border-color);
    border-bottom: 1px solid map-get($c-table, border-color);

    &:first-child {
      border-left: 0;
    }

    @each $item in map-get($c-table, th-widths) {
      &.w#{calc($item / 1px)} {
        flex: 0 1 auto;
        width: px2rpx($item);
      }
    }
  }
}
