增加横向滚动条位置还原API
This commit is contained in:
parent
4378adf3f6
commit
480d22d28d
|
@ -291,6 +291,9 @@ var Table = function (_Component) {
|
||||||
this.computeTableWidth();
|
this.computeTableWidth();
|
||||||
this.firstDid = true; //避免重复update
|
this.firstDid = true; //避免重复update
|
||||||
}
|
}
|
||||||
|
if (nextProps.resetScroll) {
|
||||||
|
this.resetScrollY();
|
||||||
|
}
|
||||||
|
|
||||||
// console.log('this.scrollTop**********',this.scrollTop);
|
// console.log('this.scrollTop**********',this.scrollTop);
|
||||||
};
|
};
|
||||||
|
|
|
@ -10859,6 +10859,9 @@
|
||||||
this.computeTableWidth();
|
this.computeTableWidth();
|
||||||
this.firstDid = true; //避免重复update
|
this.firstDid = true; //避免重复update
|
||||||
}
|
}
|
||||||
|
if (nextProps.resetScroll) {
|
||||||
|
this.resetScrollY();
|
||||||
|
}
|
||||||
|
|
||||||
// console.log('this.scrollTop**********',this.scrollTop);
|
// console.log('this.scrollTop**********',this.scrollTop);
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -56,6 +56,7 @@ import 'bee-table/build/Table.css';
|
||||||
| sort | 排序的属性 | object| { mode:'single'//单列排序, backSource:false //默认是前端排序,值为true为后端排序 } mode:multiple-多列排序
|
| sort | 排序的属性 | object| { mode:'single'//单列排序, backSource:false //默认是前端排序,值为true为后端排序 } mode:multiple-多列排序
|
||||||
| syncHover | 是否同步Hover状态到左侧Checkbox,关闭此功能有助于提升性能 | bool| true
|
| syncHover | 是否同步Hover状态到左侧Checkbox,关闭此功能有助于提升性能 | bool| true
|
||||||
| loadBuffer | 使用BigData高阶组件实现大数据加载时,上下加载的缓存 | number| 5
|
| loadBuffer | 使用BigData高阶组件实现大数据加载时,上下加载的缓存 | number| 5
|
||||||
|
| resetScroll | 将表格横向滚动条位置还原 | bool| false
|
||||||
|
|
||||||
> 快捷键部分参考示例 (快捷键在table中的简单使用应用)
|
> 快捷键部分参考示例 (快捷键在table中的简单使用应用)
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,10 @@ class Table extends Component {
|
||||||
this.computeTableWidth();
|
this.computeTableWidth();
|
||||||
this.firstDid = true;//避免重复update
|
this.firstDid = true;//避免重复update
|
||||||
}
|
}
|
||||||
|
if(nextProps.resetScroll){
|
||||||
|
this.resetScrollY();
|
||||||
|
}
|
||||||
|
|
||||||
// console.log('this.scrollTop**********',this.scrollTop);
|
// console.log('this.scrollTop**********',this.scrollTop);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue