New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
table的展示数据量被自动处理为pageSize #16823
Comments
这不合理,那设置 |
如果不希望使用内建的分页功能,可以用 |
pageSize仅用于给用户展示每页数量这个信息及用户变更每页显示条数同步至业务数据中。 |
啊,我也遇到这个问题了,合并行时,第一页就只展示10条,展开的3条就不展示了 |
+1 @afc163 |
Reproduction link
https://codepen.io/yummy/pen/WBybzZ
Steps to reproduce
数据源有13条,但是被分页的pageSize限制了只显示10条。
What is expected?
dataSource有多少数据就显示多少条,而不是由分页的参数决定。
What is actually happening?
dataSource的数据量被pageSize限制。
大部分场景都是在使用真分页而不是假分页。在真分页的业务场景下,pagination的pageSize,pageNo,totalSize是由业务开发者自己决定的,组件应只负责拿到数据直接展示,如dataSource给12条就展示12条,table组件不应再结合pageSize来自主决定实际显示的数据。
成为问题的场景:
表格合并行的时候,如原始数据为:
最终渲染出的行数应该是
array[0].nestList array[1].nestList = 3
, 而不是array.length = 2
。造成的结果就是后端给10条数据,实际表格可能需要展示15行数据,把展评的数据传给table时,table仅仅展示了10条。望考虑。
The text was updated successfully, but these errors were encountered: