Material React 分页组件是否有页面大小选项(每页行数)?我在列出的 API 中没有看到它。我知道 TablePagination 组件可以,但是常规组件似乎没有。
<Pagination
https://mui.com/material-ui/react-pagination/ https://mui.com/material-ui/react-pagination/
TablePagination有这个,但没有常规的Pagination。
<TablePagination
component="div"
count={100}
page={page}
rowsPerPage={rowsPerPage}
No. rowsPerPage
在分页组件中不可用。
The MUI docs https://mui.com/material-ui/react-pagination/#table-pagination say:
分页组件旨在对任意项目列表进行分页...
这意味着分页 https://mui.com/material-ui/api/pagination/#props组件不会对被划分为页面的内容类型做出假设。内容是随意的。文档继续说:
在 SEO 很重要的情况下(例如博客),它是首选。
因此,例如内容可以是连续文本流。
The 表格分页 https://mui.com/material-ui/api/table-pagination/#props组件有一个明确的 proprowsPerPage
因为它的设计目的是:
对于大量表格数据的分页...
这里,假设内容是由行分隔的项目而不是任意的内容流。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)