材质UI复选框不确定属性不起作用

时间:2016-10-18 07:03:14

标签: reactjs material-ui

如何在材质界面中的复选框中显示indeterminate="true"状态:

<Checkbox
  label={obj.module}
  style={styles.checkbox}
  value={this.state.value}
  />

1 个答案:

答案 0 :(得分:0)

它目前不受支持,但我认为它可能出现在此线程的下一组版本中。

https://github.com/callemall/material-ui/issues/4828

与此同时,你可以通过创建像这样的组件

来插入它

indeterminate checkbox in React JSX

并自己设计风格。