Thi*_*ath 2 reactjs material-ui
我使用react和Material-UI开发一个Web应用程序并做出反应.当我使用分页时,我得到了以下错误.
index.js:1452 Warning: Material-UI: You are using the typography variant caption which will be restyled in the next major release.
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2
Run Code Online (Sandbox Code Playgroud)
我在代码中以下面的方式使用分页
import TablePagination from '@material-ui/core/TablePagination';
<TablePagination
component="div"
count={this.handleChangeFilter(searchedVal).length}
rowsPerPage={rowsPerPage}
page={page}
backIconButtonProps={{
'aria-label': 'Previous Page',
}}
nextIconButtonProps={{
'aria-label': 'Next Page',
}}
onChangePage={this.handleChangePage}
onChangeRowsPerPage={this.handleChangeRowsPerPage}
/>
Run Code Online (Sandbox Code Playgroud)
请告诉我如何解决它在下面的错误图像
Roo*_*oot 10
此错误意味着排版将在下一版本中更改,因此您应该迁移到下一版本.https: //material-ui.com/style/typography#migration-to-typography-v2 为您提供有关如何使用的指南通过添加以下内容迁移到下一个版本:
const theme = createMuiTheme({
typography: {
useNextVariants: true,
},
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5162 次 |
| 最近记录: |