Material-UI:提供给classes属性的键“default”未在Checkbox中实现

时间:2018-04-23 06:40:06

标签: reactjs material-design material-ui

在我的react js应用程序中使用材料Ui。 与版本: - “material-ui”:“^ 0.20.0”, “mui-datatables”:“1.1.5”,

尝试集成Data表并在此段代码中传递此配置。

    const options = {
    filter: false,
    selectableRows: true,
    filterType: 'multiselect',
    print: false,
    download: false,
    responsive: 'stacked',
    onRowsSelect: (rowsSelected, allRows) => {
        console.log(rowsSelected, allRows);
    },
};
class Dashboard extends Component {
    render() {
        return (
            <div className="">
                <List data={data} column={columns} option={options}></List>               
            </div>
        );
    }
}

每当我通过“selectableRows:true”时,它会在浏览器的控制台上发出警告。

        Warning: Material-UI: the key `default` provided to the classes property is not implemented in Checkbox.
    You can only override one of the following: root,checked,disabled,colorPrimary,colorSecondary


Warning: Material-UI: the key `checkedPrimary` provided to the classes property is not implemented in Checkbox.
You can only override one of the following: 
root,checked,disabled,colorPrimary,colorSecondary

Warning: Material-UI: the key `checkedSecondary` provided to the classes property is not implemented in Checkbox.
You can only override one of the following: root,checked,disabled,colorPrimary,colorSecondary

0 个答案:

没有答案