单元格内容超出列宽时,表头和表体出现错位

This commit is contained in:
yangchch6 2019-10-12 17:25:39 +08:00
parent 9cd84f5381
commit 14103fad2a
5 changed files with 8 additions and 9 deletions

View File

@ -436,7 +436,7 @@ var TableCell = function (_Component) {
className: className, className: className,
onClick: this.handleClick, onClick: this.handleClick,
title: title, title: title,
style: _extends({ color: fontColor, backgroundColor: bgColor }, column.style) style: _extends({ maxWidth: column.width, color: fontColor, backgroundColor: bgColor }, column.style)
}, },
indentText, indentText,
expandIcon, expandIcon,

File diff suppressed because one or more lines are too long

9
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

@ -287,7 +287,7 @@ class TableCell extends Component{
className={className} className={className}
onClick={this.handleClick} onClick={this.handleClick}
title={title} title={title}
style={{color:fontColor,backgroundColor:bgColor,...column.style}} style={{maxWidth:column.width, color:fontColor, backgroundColor:bgColor, ...column.style}}
> >
{indentText} {indentText}
{expandIcon} {expandIcon}