masastack / MASA.Blazor

Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
https://docs.masastack.com/blazor/getting-started/installation
MIT License
1.11k stars 149 forks source link

How to let Pagination show Length automatically by providing total and limite #1843

Closed huxinshuo closed 1 month ago

huxinshuo commented 1 month ago

能否仅提供总数(total)和每页数量(limite)让Pagination自动展现页数(Length),虽然可以手动算出页数。

capdiem commented 1 month ago

@huxinshuo 这个需求对目前来说没有提高什么效率,你仅仅使用 Math.Ceiling(total/size) 就可以了。

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 4 days with no activity.