We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c31155 commit a387ef4Copy full SHA for a387ef4
1 file changed
src/TableCell.tsx
@@ -105,6 +105,19 @@ export default class TableCell<ValueType> extends React.Component<TableCellProps
105
[`${prefixCls}-cell-break-word`]: !!column.width,
106
});
107
108
+ if (column.ellipsis) {
109
+ if (typeof text === 'string') {
110
+ tdProps.title = text;
111
+ } else if (
112
+ text &&
113
+ text.props &&
114
+ text.props.children &&
115
+ typeof text.props.children === 'string'
116
+ ) {
117
+ tdProps.title = text.children;
118
+ }
119
120
+
121
return (
122
<BodyCell className={cellClassName} onClick={this.handleClick} {...tdProps}>
123
{indentText}
0 commit comments