Flo*_*gar 6 reactjs material-ui
我DataGrid在我的组件中添加了 simple
<div className='Employees'>
<Button onClick={queryEmployees}>Employees</Button>
<DataGrid rows={rows} columns={columns} autoHeight={true}/>
...
</div>
Run Code Online (Sandbox Code Playgroud)
我在控制台中收到此错误
Material-UI: The key `caption` provided to the classes prop is not implemented in ForwardRef(TablePagination).
You can only override one of the following:
root,toolbar,spacer,selectLabel,selectRoot,select,selectIcon,input,menuItem,displayedRows,actions.
Run Code Online (Sandbox Code Playgroud)
我不明白这个错误,也不明白是什么导致了它,我不知道如何调试它。
我也遇到同样的错误。
"material-table": "^1.69.2",
"@material-ui/core": "^5.0.0-alpha.24",
"@material-ui/data-grid": "^4.0.0-alpha.21",
Run Code Online (Sandbox Code Playgroud)
但我对以下版本没有任何问题。
"@material-ui/core": "^4.11.0",
"material-table": "^1.69.2",
"@material-ui/data-grid": "^4.0.0-alpha.18",
Run Code Online (Sandbox Code Playgroud)
更新:
DataGrid 属于实验室,请单击此处了解更多信息。
请检查当前可用的文档版本和您的@material/core版本以解决该问题。
| 归档时间: |
|
| 查看次数: |
2116 次 |
| 最近记录: |