This commit is contained in:
AllenFang
2019-11-16 14:11:16 +08:00
parent e667317fbe
commit b5d536b8f4
5 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ export default class ExpandCell extends Component {
if (tabIndex !== -1) attrs.tabIndex = tabIndex;
return (
<td onClick={ this.handleClick } { ...attrs }>
<td className="expand-cell" onClick={ this.handleClick } { ...attrs }>
{
expandColumnRenderer ? expandColumnRenderer({
expandable,

View File

@@ -28,7 +28,7 @@ export default class ExpansionHeaderCell extends Component {
};
return (
<th data-row-selection { ...attrs }>
<th className="expand-cell-header" data-row-selection { ...attrs }>
{
expandHeaderColumnRenderer ?
expandHeaderColumnRenderer({ isAnyExpands }) :

View File

@@ -86,7 +86,7 @@ export default class SelectionCell extends Component {
<BootstrapContext.Consumer>
{
({ bootstrap4 }) => (
<td onClick={ this.handleClick } { ...attrs }>
<td className="selection-cell" onClick={ this.handleClick } { ...attrs }>
{
selectionRenderer ? selectionRenderer({
mode: inputType,

View File

@@ -112,7 +112,7 @@ export default class SelectionHeaderCell extends Component {
);
}
return (
<th data-row-selection { ...attrs }>{ content }</th>
<th className="selection-cell-header" data-row-selection { ...attrs }>{ content }</th>
);
}
}

View File

@@ -2,6 +2,7 @@
exports[`<SelectionCell /> render should render component correctly 1`] = `
<td
className="selection-cell"
onClick={[Function]}
>
<input