修改 headStyle
This commit is contained in:
parent
71a4d4ed41
commit
d4df00c3e8
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue