mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
Fix fixed Table align and bordered style, close #1740
This commit is contained in:
parent
74c0cb97ab
commit
6944a8e7c1
@ -1,5 +1,5 @@
|
||||
---
|
||||
order: 16
|
||||
order: 15
|
||||
title: 树形数据展示
|
||||
---
|
||||
|
||||
|
@ -191,11 +191,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.@{table-prefix-cls}-bordered {
|
||||
&-bordered {
|
||||
table {
|
||||
border: 1px solid @border-color-split;
|
||||
}
|
||||
|
||||
&.@{table-prefix-cls}-fixed-header {
|
||||
border: 1px solid @border-color-split;
|
||||
table {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
}
|
||||
@ -361,8 +368,9 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&-fixed-header &-body-inner {
|
||||
overflow: scroll;
|
||||
&-fixed-header &-body-inner,
|
||||
&-fixed-header &-header {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
&-fixed {
|
||||
@ -386,17 +394,31 @@
|
||||
&-fixed-left {
|
||||
left: 0;
|
||||
box-shadow: @shadow-1-right;
|
||||
border-radius: @border-radius-base 0 0 0;
|
||||
& .@{table-prefix-cls}-body-inner {
|
||||
.@{table-prefix-cls}-header {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
// hide scrollbar in left fixed columns
|
||||
.@{table-prefix-cls}-body-inner {
|
||||
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 {
|
||||
right: 0;
|
||||
box-shadow: @shadow-1-left;
|
||||
&,
|
||||
table {
|
||||
border-radius: 0 @border-radius-base 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&&-scroll-position-left &-fixed-left {
|
||||
box-shadow: none;
|
||||
|
Loading…
Reference in New Issue
Block a user