Merge branch 'master' of github.com:tinper-bee/bee-table

This commit is contained in:
jonyshi 2019-06-26 16:39:53 +08:00
commit 472fcda865
4 changed files with 47 additions and 19 deletions

58
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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();

View File

@ -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; //数据结束位置