Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 8fd9eea

Browse files
committed
[conflict] 合并冲突
2 parents d30fbf3 + 7cd78a2 commit 8fd9eea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/TDesign/Components/TPagination.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public class TPagination : BlazorComponentBase
5858
/// 设置分页页码条的显示数量。建议范围在 5-21 之间,默认是 7。
5959
/// </summary>
6060
[Parameter] public int PageNumber { get; set; } = 7;
61+
/// <summary>
62+
/// 设置是否显示页码条。
63+
/// </summary>
64+
[Parameter]public bool ShowPageNumber { get; set; }
6165
#endregion
6266

6367

@@ -288,7 +292,7 @@ void BuildPageNumbers(RenderTreeBuilder builder, int sequence)
288292
BuildPageNumerItem(content, 100, TotalPages);
289293
#endregion
290294

291-
}, new { @class = "t-pagination__pager" });
295+
}, new { @class = "t-pagination__pager" }, ShowPageNumber);
292296

293297
/// <summary>
294298
/// 计算分页页码的开始和结束的页码。

0 commit comments

Comments
 (0)