单元格内容超出列宽时,表头和表体出现错位
This commit is contained in:
parent
9cd84f5381
commit
14103fad2a
|
@ -436,7 +436,7 @@ var TableCell = function (_Component) {
|
|||
className: className,
|
||||
onClick: this.handleClick,
|
||||
title: title,
|
||||
style: _extends({ color: fontColor, backgroundColor: bgColor }, column.style)
|
||||
style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style)
|
||||
},
|
||||
indentText,
|
||||
expandIcon,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -287,7 +287,7 @@ class TableCell extends Component{
|
|||
className={className}
|
||||
onClick={this.handleClick}
|
||||
title={title}
|
||||
style={{color:fontColor,backgroundColor:bgColor,...column.style}}
|
||||
style={{maxWidth:column.width, color:fontColor, backgroundColor:bgColor, ...column.style}}
|
||||
>
|
||||
{indentText}
|
||||
{expandIcon}
|
||||
|
|
Loading…
Reference in New Issue