修改 headStyle

This commit is contained in:
yangchch6 2019-07-09 14:30:13 +08:00
parent 71a4d4ed41
commit d4df00c3e8
3 changed files with 3 additions and 3 deletions

View File

@ -1017,7 +1017,7 @@ var Table = function (_Component) {
if (data.length == 0 && hideHeaderScroll) {
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
bodyStyle.marginBottom = '-' + this.scrollbarWidth + 'px';
headStyle.marginBottom = '-' + this.scrollbarWidth + 'px';
}
if (scroll.y) {
// maxHeight will make fixed-Table scrolling not working

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.1.5",
"version": "2.1.6-beta.1",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -867,7 +867,7 @@ class Table extends Component {
if(data.length == 0 && hideHeaderScroll){
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
bodyStyle.marginBottom = `-${this.scrollbarWidth}px`;
headStyle.marginBottom = `-${this.scrollbarWidth}px`;
}
if (scroll.y) {
// maxHeight will make fixed-Table scrolling not working