【发布时间】:2021-09-02 08:09:21
【问题描述】:
enter code here我正在尝试覆盖材料表中的分页组件。我添加的功能运行良好 - 但是我在控制台中收到警告。警告如下。
Material-UI:提供给 classes 属性的键
selectRoot不是 在 MTablePaginationInner 中实现。您只能覆盖其中一个 以下:根。Material-UI:提供给 classes 属性的键
caption不是 在 MTablePaginationInner 中实现。您只能覆盖其中一个 以下:根
这里是material-ui表的代码片段
<MaterialTable
columns={columns}
data={invoices}
icons={IconsForMaterialTable}
options={{ paging:true}}
components={{
Pagination: (subProps) => {
return <Box display="flex" justifyContent="flex-end"> <Box width="260px" justifyContent="flex-end">
<MTablePagination {...subProps} count={pageCount} onChangePage={(e, page) => setPage(page)} page={page} rowsPerPage={rowsPerPage}/>
</Box></Box>
}}}
/>
【问题讨论】:
标签: reactjs material-ui material-table