【发布时间】:2019-01-25 08:14:27
【问题描述】:
我想在 TableRow MaterialUI 组件之间添加空格。我怎样才能做到这一点?
<S.MainTable>
<TableBody>
{rows.map(row => {
return (
<S.StyledTableRow key={row.id}>
<TableCell component="th" scope="row">{row.name}</TableCell>
<TableCell numeric>{row.calories}</TableCell>
<TableCell numeric>{row.fat}</TableCell>
<TableCell numeric>{row.carbs}</TableCell>
<TableCell numeric>{row.protein}</TableCell>
</S.StyledTableRow>
);
})}
</TableBody>
</S.MainTable>
【问题讨论】:
标签: javascript css reactjs material-ui jsx