fast-table
Advanced tools
Comparing version 1.4.8-beta.19 to 1.4.8-beta.20
@@ -227,2 +227,4 @@ "use strict"; | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateScrollTopEnable", function (nextProps) {}); | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleBodyScrollTop", function (e) { | ||
@@ -541,6 +543,14 @@ var target = e.target; | ||
_dataHeight: this.dataManager._bodyHeight, | ||
_dataEmpty: this.dataManager.isEmpty(), | ||
_scrollTop: dh === 0 ? 0 : this.sizeManager._scrollTop | ||
_dataEmpty: this.dataManager.isEmpty() | ||
}); | ||
if (dh !== 0 && this.sizeManager._dataHeight === 0) { | ||
this.sizeManager.update({ | ||
_scrollTop: 0 | ||
}); | ||
this.updateScrollTop({ | ||
scrollTop: 0 | ||
}); | ||
} | ||
if (nextProps.pullDown && dh < this.sizeManager._dataHeight && this.sizeManager._hasScrollY && this.sizeManager._scrollTop < 5) { | ||
@@ -547,0 +557,0 @@ var top = this.sizeManager._dataHeight - dh; |
{ | ||
"name": "fast-table", | ||
"version": "1.4.8-beta.19", | ||
"version": "1.4.8-beta.20", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -95,5 +95,8 @@ import React from 'react'; | ||
_dataHeight: this.dataManager._bodyHeight, | ||
_dataEmpty: this.dataManager.isEmpty(), | ||
_scrollTop: dh === 0 ? 0 : this.sizeManager._scrollTop | ||
_dataEmpty: this.dataManager.isEmpty() | ||
}); | ||
if (dh !== 0 && this.sizeManager._dataHeight === 0) { | ||
this.sizeManager.update({_scrollTop: 0}); | ||
this.updateScrollTop({scrollTop: 0}); | ||
} | ||
if ( | ||
@@ -288,2 +291,4 @@ nextProps.pullDown && | ||
updateScrollTopEnable = (nextProps) => {}; | ||
handleBodyScrollTop = (e) => { | ||
@@ -290,0 +295,0 @@ const target = e.target; |
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
246056
6248