diff --git a/scss/components/_table.scss b/scss/components/_table.scss index b11759965..261af870b 100644 --- a/scss/components/_table.scss +++ b/scss/components/_table.scss @@ -14,50 +14,39 @@ position: absolute; background: $Table-bg; z-index: 5; - - // https://github.com/baidu/amis/pull/1080 - // top: auto; - // box-shadow: none; - - top: -999999px; - &.in { - top: auto; - } + top: auto; + box-shadow: none; } &-fixedLeft { - box-shadow: $Table-fixedLeft-boxShadow; left: 0; - // https://github.com/baidu/amis/pull/1080 - // &.in { - // box-shadow: $Table-fixedLeft-boxShadow; - // } + &.in { + box-shadow: $Table-fixedLeft-boxShadow; + } - // .#{$ns}Table-table > thead > tr > th:last-child { - // border-right: $Table-thead-borderWidth solid $Table-thead-borderColor; - // } + .#{$ns}Table-table > thead > tr > th:last-child { + border-right: $Table-thead-borderWidth solid $Table-thead-borderColor; + } } &-fixedRight { - box-shadow: $Table-fixedRight-boxShadow; right: 0; - // https://github.com/baidu/amis/pull/1080 - // &.in { - // box-shadow: $Table-fixedRight-boxShadow; - // } + &.in { + box-shadow: $Table-fixedRight-boxShadow; + } - // .#{$ns}Table-table { - // > thead > tr > th:first-child, - // > tbody > tr > td:first-child { - // padding-left: $TableCell-paddingX; - // } + .#{$ns}Table-table { + > thead > tr > th:first-child, + > tbody > tr > td:first-child { + padding-left: $TableCell-paddingX; + } - // > thead > tr > th:first-child { - // border-left: $Table-thead-borderWidth solid $Table-thead-borderColor; - // } - // } + > thead > tr > th:first-child { + border-left: $Table-thead-borderWidth solid $Table-thead-borderColor; + } + } } &-fixedTop {