Fix fixed Table align and bordered style, close #1740

This commit is contained in:
afc163 2016-05-21 18:08:09 +08:00
parent 74c0cb97ab
commit 6944a8e7c1
2 changed files with 29 additions and 7 deletions

View File

@ -1,5 +1,5 @@
--- ---
order: 16 order: 15
title: 树形数据展示 title: 树形数据展示
--- ---

View File

@ -191,11 +191,18 @@
} }
} }
&.@{table-prefix-cls}-bordered { &-bordered {
table { table {
border: 1px solid @border-color-split; border: 1px solid @border-color-split;
} }
&.@{table-prefix-cls}-fixed-header {
border: 1px solid @border-color-split;
table {
border: 0;
}
}
th { th {
border-bottom: 1px solid @border-color-split; border-bottom: 1px solid @border-color-split;
} }
@ -361,8 +368,9 @@
height: 100%; height: 100%;
} }
&-fixed-header &-body-inner { &-fixed-header &-body-inner,
overflow: scroll; &-fixed-header &-header {
overflow-y: scroll;
} }
&-fixed { &-fixed {
@ -386,16 +394,30 @@
&-fixed-left { &-fixed-left {
left: 0; left: 0;
box-shadow: @shadow-1-right; box-shadow: @shadow-1-right;
border-radius: @border-radius-base 0 0 0; .@{table-prefix-cls}-header {
& .@{table-prefix-cls}-body-inner { overflow-y: hidden;
}
// hide scrollbar in left fixed columns
.@{table-prefix-cls}-body-inner {
margin-right: -20px; margin-right: -20px;
padding-right: 20px;
}
.@{table-prefix-cls}-fixed-header & .@{table-prefix-cls}-body-inner {
padding-right: 0;
}
&,
table {
border-radius: @border-radius-base 0 0 0;
} }
} }
&-fixed-right { &-fixed-right {
right: 0; right: 0;
box-shadow: @shadow-1-left; box-shadow: @shadow-1-left;
border-radius: 0 @border-radius-base 0 0; &,
table {
border-radius: 0 @border-radius-base 0 0;
}
} }
&&-scroll-position-left &-fixed-left { &&-scroll-position-left &-fixed-left {