表格添加纵向滚动条时,scroll设置修改

This commit is contained in:
wanghaoo 2018-11-06 16:36:52 +08:00
parent 64cbe951b9
commit 12b37e145d
3 changed files with 6 additions and 6 deletions

6
dist/demo.js vendored
View File

@ -11300,11 +11300,11 @@
if (fixed) { if (fixed) {
// bodyStyle.height = bodyStyle.height || scroll.y; // bodyStyle.height = bodyStyle.height || scroll.y;
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
innerBodyStyle.overflowY = bodyStyle.overflowY || 'auto'; innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
} else { } else {
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
} }
bodyStyle.overflowY = bodyStyle.overflowY || 'auto'; bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
useFixedHeader = true; useFixedHeader = true;
// Add negative margin bottom for scroll bar overflow bug // Add negative margin bottom for scroll bar overflow bug
@ -59422,7 +59422,7 @@
_this2.setState({ _this2.setState({
columns: columns columns: columns
}); });
afterFilter(_this2.state.columns, _this2.state.columns); _this2.props.afterFilter(_this2.state.columns, _this2.state.columns);
}; };
this.getCloumnsScroll = function (columns) { this.getCloumnsScroll = function (columns) {

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -637,11 +637,11 @@ class Table extends Component {
if (fixed) { if (fixed) {
// bodyStyle.height = bodyStyle.height || scroll.y; // bodyStyle.height = bodyStyle.height || scroll.y;
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
innerBodyStyle.overflowY = bodyStyle.overflowY || 'auto'; innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
} else { } else {
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
} }
bodyStyle.overflowY = bodyStyle.overflowY || 'auto'; bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
useFixedHeader = true; useFixedHeader = true;
// Add negative margin bottom for scroll bar overflow bug // Add negative margin bottom for scroll bar overflow bug