在全局级别上更改表格单元格内容的颜色或样式?

时间:2019-03-23 10:25:50

标签: javascript reactjs semantic-ui

我在 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>
  );
}

0 个答案:

没有答案