修改 headStyle
This commit is contained in:
parent
d4df00c3e8
commit
baf562cb99
|
@ -1015,10 +1015,6 @@ var Table = function (_Component) {
|
|||
}
|
||||
}
|
||||
|
||||
if (data.length == 0 && hideHeaderScroll) {
|
||||
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
|
||||
headStyle.marginBottom = '-' + this.scrollbarWidth + 'px';
|
||||
}
|
||||
if (scroll.y) {
|
||||
// maxHeight will make fixed-Table scrolling not working
|
||||
// so we only set maxHeight to body-Table here
|
||||
|
@ -1073,6 +1069,11 @@ var Table = function (_Component) {
|
|||
}
|
||||
}
|
||||
|
||||
if (data.length == 0 && hideHeaderScroll) {
|
||||
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
|
||||
headStyle.marginBottom = '-' + this.scrollbarWidth + 'px';
|
||||
}
|
||||
|
||||
var renderTable = function renderTable() {
|
||||
var hasHead = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
||||
var hasBody = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-table",
|
||||
"version": "2.1.6-beta.1",
|
||||
"version": "2.1.6-beta.2",
|
||||
"description": "Table ui component for react",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
|
|
@ -865,10 +865,6 @@ class Table extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
if(data.length == 0 && hideHeaderScroll){
|
||||
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
|
||||
headStyle.marginBottom = `-${this.scrollbarWidth}px`;
|
||||
}
|
||||
if (scroll.y) {
|
||||
// maxHeight will make fixed-Table scrolling not working
|
||||
// so we only set maxHeight to body-Table here
|
||||
|
@ -926,6 +922,11 @@ class Table extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
if(data.length == 0 && hideHeaderScroll){
|
||||
//支持 NCC 需求:表格无数据时,去掉表头滚动条 (https://github.com/iuap-design/tinper-bee/issues/207)
|
||||
headStyle.marginBottom = `-${this.scrollbarWidth}px`;
|
||||
}
|
||||
|
||||
const renderTable = (hasHead = true, hasBody = true) => {
|
||||
const tableStyle = {};
|
||||
if (!fixed && scroll.x) {
|
||||
|
|
Loading…
Reference in New Issue