我在 React 应用程序和以下组件中使用了语义UI :
class TableCell extends Component {
render() {
return (
<SU_Table.Cell {...newProps}>
{this.props.children}
</SU_Table.Cell>
);
}
是否可以在全局级别上更改表格单元格内容的内容的颜色或样式... / p>
这样的东西行得通吗?
class TableCell extends Component {
render() {
return (
<SU_Table.Cell {{color: 'green', ...newProps}}>
{this.props.children}
</SU_Table.Cell>
);
}