增加横向滚动条位置还原API

This commit is contained in:
wanghaoo 2019-02-14 14:34:12 +08:00
parent 4378adf3f6
commit 480d22d28d
5 changed files with 12 additions and 2 deletions

View File

@ -291,6 +291,9 @@ var Table = function (_Component) {
this.computeTableWidth();
this.firstDid = true; //避免重复update
}
if (nextProps.resetScroll) {
this.resetScrollY();
}
// console.log('this.scrollTop**********',this.scrollTop);
};

3
dist/demo.js vendored
View File

@ -10859,6 +10859,9 @@
this.computeTableWidth();
this.firstDid = true; //避免重复update
}
if (nextProps.resetScroll) {
this.resetScrollY();
}
// console.log('this.scrollTop**********',this.scrollTop);
};

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -56,6 +56,7 @@ import 'bee-table/build/Table.css';
| sort | 排序的属性 | object| { mode:'single'//单列排序, backSource:false //默认是前端排序值为true为后端排序 } mode:multiple-多列排序
| syncHover | 是否同步Hover状态到左侧Checkbox关闭此功能有助于提升性能 | bool| true
| loadBuffer | 使用BigData高阶组件实现大数据加载时上下加载的缓存 | number| 5
| resetScroll | 将表格横向滚动条位置还原 | bool| false
> 快捷键部分参考示例 (快捷键在table中的简单使用应用)

View File

@ -191,7 +191,10 @@ class Table extends Component {
this.computeTableWidth();
this.firstDid = true;//避免重复update
}
if(nextProps.resetScroll){
this.resetScrollY();
}
// console.log('this.scrollTop**********',this.scrollTop);
}