fast-table
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -53,2 +53,3 @@ 'use strict'; | ||
_this.data = data || []; | ||
_this.showData(); | ||
_this._cached = {}; | ||
@@ -55,0 +56,0 @@ }; |
@@ -85,4 +85,4 @@ 'use strict'; | ||
var Table = function (_React$Component) { | ||
_inherits(Table, _React$Component); | ||
var Table = function (_React$PureComponent) { | ||
_inherits(Table, _React$PureComponent); | ||
@@ -242,3 +242,3 @@ function Table(props) { | ||
showData: showData, | ||
bodHeight: _this.dataManager._bodyHeight | ||
bodyHeight: _this.dataManager._bodyHeight | ||
}; | ||
@@ -440,7 +440,2 @@ }; | ||
}, { | ||
key: 'shouldComponentUpdate', | ||
value: function shouldComponentUpdate() { | ||
return false; | ||
} | ||
}, { | ||
key: 'setScrollPosition', | ||
@@ -484,3 +479,4 @@ value: function setScrollPosition(position) { | ||
style = _props.style, | ||
prefixCls = _props.prefixCls; | ||
prefixCls = _props.prefixCls, | ||
useScrollY = _props.useScrollY; | ||
@@ -501,3 +497,3 @@ var hasLeftFixed = this.columnManager.isAnyColumnsLeftFixed(); | ||
var fullHeight = _this2.fullSize(); | ||
if (fullHeight < height) { | ||
if (fullHeight < height || !useScrollY) { | ||
height = fullHeight; | ||
@@ -530,3 +526,3 @@ } | ||
return Table; | ||
}(_react2.default.Component); | ||
}(_react2.default.PureComponent); | ||
@@ -533,0 +529,0 @@ Table.defaultProps = _types.TableDefaultParams; |
@@ -25,2 +25,3 @@ 'use strict'; | ||
expandedRowByClick: true, | ||
useScrollY: true, | ||
@@ -27,0 +28,0 @@ rowRef: function rowRef() { |
{ | ||
"name": "fast-table", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116495
29
3047