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

This commit is contained in:
Argo Window10 2019-12-12 21:06:30 +08:00
parent 5528dbebbe
commit ecd008d846
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
@inherits PaginationBase
<CascadingValue Value="this">
<nav class="d-flex align-items-center" aria-label="分页组件">
<nav class="@(PageCount > 1 ? "d-flex align-items-center" : "d-none 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="@(PageCount > 1 ? "pagination" : "pagination d-none")">
<ul class="pagination">
<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++)
{