滚动分页场景嵌套滚动分页表格场景

This commit is contained in:
wanghaoo 2019-01-17 18:41:20 +08:00
parent 4403e3c6a8
commit c155912250
4 changed files with 9 additions and 19 deletions

17
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

@ -558,6 +558,7 @@ class TableHeader extends Component {
if(da.textAlign){
thClassName += ` text-${da.textAlign}`;
}
delete da.textAlign;
const keyTemp = {};
//避免key为undefined
// if(da.dataindex && da.key ===undefined ){

View File

@ -79,14 +79,8 @@ class TableRow extends Component{
componentDidUpdate(prevProps) {
if(this.props.treeType){
this.setRowParentIndex();
this.setRowHeight()
// if(this.props.fixedIndex!== prevProps.fixedIndex){
// this.setRowHeight()
// }
}else if(this.props.index !== prevProps.index){
this.setRowHeight()
}
this.setRowHeight()
}
componentWillUnmount() {
const { record, onDestroy, index } = this.props;