build修改

This commit is contained in:
wanghaoo 2018-08-28 09:57:44 +08:00
parent 1bc99b26cd
commit b7ca6ce11e
2 changed files with 4 additions and 2 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -207,7 +207,7 @@ var Table = function (_Component) {
} }
Table.prototype.componentDidMount = function componentDidMount() { Table.prototype.componentDidMount = function componentDidMount() {
this.resetScrollY(); setTimeout(this.resetScrollY, 300);
if (this.columnManager.isAnyColumnsFixed()) { if (this.columnManager.isAnyColumnsFixed()) {
this.syncFixedTableRowHeight(); this.syncFixedTableRowHeight();
this.resizeEvent = (0, _addEventListener2["default"])(window, 'resize', (0, _utils.debounce)(this.syncFixedTableRowHeight, 150)); this.resizeEvent = (0, _addEventListener2["default"])(window, 'resize', (0, _utils.debounce)(this.syncFixedTableRowHeight, 150));
@ -236,7 +236,9 @@ var Table = function (_Component) {
}; };
Table.prototype.componentDidUpdate = function componentDidUpdate() { Table.prototype.componentDidUpdate = function componentDidUpdate() {
this.syncFixedTableRowHeight(); if (this.columnManager.isAnyColumnsFixed()) {
this.syncFixedTableRowHeight();
}
}; };
Table.prototype.componentWillUnmount = function componentWillUnmount() { Table.prototype.componentWillUnmount = function componentWillUnmount() {