Material-UI:未在未定义的情况下实现提供给class prop的键`field`

时间:2019-10-17 22:10:29

标签: material-ui

Material-UI: the key `field` provided to the classes prop is not implemented in undefined.
You can only override one of the following: pageFilter,topContent,title,toggleFilters,fields,topFields,actions,close,action,resetBtn,submitBtn,submitIcon,bottomContent,bottomFields.

每次使用选项并传递withTheme属性时,都会发生此错误:

withStyles(styles, { withTheme: true })

styles.js

export default function() {return {field: {width: 160}}}

如何解决这个问题?如果您需要其他信息,请告诉我

0 个答案:

没有答案