【发布时间】:2016-10-18 19:29:58
【问题描述】:
我有一个<Table/> 和<TableRow>,在单击该行时,该行保持突出显示。我试过<TableRow disableTouchRipple={true}>,但没有运气。即使它已被点击,我如何才能删除它?
代码如下:
<Table>
<TableBody displayRowCheckbox={false}>
<TableRow>
<TableRowColumn>Row 1</TableRowColumn>
<TableRowColumn>Content 1</TableRowColumn>
</TableRow>
<TableRow>
<TableRowColumn>Row 2</TableRowColumn>
<TableRowColumn>Content 2</TableRowColumn>
</TableRow>
</TableBody>
</Table>
【问题讨论】:
-
您是否真的希望这些行可以通过复选框来选择,并且只应用所选行的 CSS,或者您只是想要一个没有可选行的普通表格?
标签: javascript css reactjs react-jsx material-ui