Revert "feat: 不分页时不显示分页组件"

This reverts commit ecd008d846.
This commit is contained in:
Argo Zhang 2019-12-13 14:36:15 +08:00
parent 5a9dd7a4d5
commit 3b0d371ec1
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
@inherits PaginationBase
<CascadingValue Value="this">
<nav class="@(PageCount > 1 ? "d-flex align-items-center" : "d-none align-items-center")" aria-label="分页组件">
<nav class="d-flex align-items-center" aria-label="分页组件">
<div class="pagination-bar">
显示第 <span>@((PageIndex - 1) * PageItems + 1)</span> 到第 <span>@(Math.Min(PageIndex * PageItems, TotalCount))</span> 条记录,总共 <span>@TotalCount</span> 条记录 每页显示
<div class="btn-group dropup">
@ -15,7 +15,7 @@
</div>
条记录
</div>
<ul class="pagination">
<ul class="@(PageCount > 1 ? "pagination" : "pagination d-none")">
<li class="page-item" @onclick="MovePrev"><div class="page-link" aria-label="上一页"><i class="fa fa-angle-double-left"></i></div></li>
@for (int i = StartPageIndex; i <= EndPageIndex; i++)
{