Merge branch 'master' of github.com:tinper-bee/bee-table
This commit is contained in:
commit
472fcda865
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -159,9 +159,9 @@ class Table extends Component {
|
|||
EventUtil.addHandler(this.contentTable,'focus',this.onFocus);
|
||||
setTimeout(this.resetScrollX, 300);
|
||||
//含有纵向滚动条
|
||||
if(this.props.scroll.y){
|
||||
// if(this.props.scroll.y){
|
||||
this.scrollbarWidth = measureScrollbar();
|
||||
}
|
||||
// }
|
||||
//后续也放在recevice里面
|
||||
if (!this.props.originWidth) {
|
||||
this.computeTableWidth();
|
||||
|
|
|
@ -61,6 +61,8 @@ export default function bigData(Table) {
|
|||
|
||||
}
|
||||
if (nextProps.data !== props.data) {
|
||||
_this.cachedRowHeight = []; //缓存每行的高度
|
||||
_this.cachedRowParentIndex = [];
|
||||
_this.computeCachedRowParentIndex(nextProps.data);
|
||||
if(nextProps.data.length>0){
|
||||
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||
|
|
Loading…
Reference in New Issue