build
This commit is contained in:
parent
472fcda865
commit
39610f5853
|
@ -324,9 +324,9 @@ var Table = function (_Component) {
|
||||||
_utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus);
|
_utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus);
|
||||||
setTimeout(this.resetScrollX, 300);
|
setTimeout(this.resetScrollX, 300);
|
||||||
//含有纵向滚动条
|
//含有纵向滚动条
|
||||||
if (this.props.scroll.y) {
|
// if(this.props.scroll.y){
|
||||||
this.scrollbarWidth = (0, _utils.measureScrollbar)();
|
this.scrollbarWidth = (0, _utils.measureScrollbar)();
|
||||||
}
|
// }
|
||||||
//后续也放在recevice里面
|
//后续也放在recevice里面
|
||||||
if (!this.props.originWidth) {
|
if (!this.props.originWidth) {
|
||||||
this.computeTableWidth();
|
this.computeTableWidth();
|
||||||
|
|
|
@ -84,6 +84,8 @@ function bigData(Table) {
|
||||||
_this.endIndex = _this.currentIndex + _this.loadCount; //数据结束位置
|
_this.endIndex = _this.currentIndex + _this.loadCount; //数据结束位置
|
||||||
}
|
}
|
||||||
if (nextProps.data !== props.data) {
|
if (nextProps.data !== props.data) {
|
||||||
|
_this.cachedRowHeight = []; //缓存每行的高度
|
||||||
|
_this.cachedRowParentIndex = [];
|
||||||
_this.computeCachedRowParentIndex(nextProps.data);
|
_this.computeCachedRowParentIndex(nextProps.data);
|
||||||
if (nextProps.data.length > 0) {
|
if (nextProps.data.length > 0) {
|
||||||
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "2.1.4-alpha.1",
|
"version": "2.1.4-alpha.2",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue