tableHeader 容错处理
This commit is contained in:
parent
a750a2131d
commit
d25c1a764f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -170,6 +170,11 @@ class Table extends Component {
|
||||||
if (this.columnManager.isAnyColumnsFixed()) {
|
if (this.columnManager.isAnyColumnsFixed()) {
|
||||||
this.syncFixedTableRowHeight();
|
this.syncFixedTableRowHeight();
|
||||||
}
|
}
|
||||||
|
//如果contentDomWidth为0则需要重新计算,适应模态框中表格;
|
||||||
|
if(this.contentDomWidth == 0){
|
||||||
|
this.computeTableWidth();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|
|
@ -37,7 +37,7 @@ class TableHeader extends Component {
|
||||||
// let a = this.props.rows[0];
|
// let a = this.props.rows[0];
|
||||||
|
|
||||||
let _row = [];
|
let _row = [];
|
||||||
this.props.rows[0].forEach(item => {
|
this.props.rows[0] && this.props.rows[0].forEach(item => {
|
||||||
let newItem = item.key != "checkbox" ? ObjectAssign(item) : item;
|
let newItem = item.key != "checkbox" ? ObjectAssign(item) : item;
|
||||||
_row.push(newItem);
|
_row.push(newItem);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue