Skip to content

Commit

Permalink
refactor(QueryPageOptions): rename paramater IsTriggerPagination (#5195)
Browse files Browse the repository at this point in the history
* refactor(): 重命名参数

* test: 更新单元测试
  • Loading branch information
ArgoZhang authored Jan 24, 2025
1 parent c607323 commit 7b1a2f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ protected async Task QueryData(bool triggerByPagination = false)
{
var queryOption = BuildQueryPageOptions();
// 是否为分页查询
queryOption.TriggerByPagination = triggerByPagination;
queryOption.IsTriggerByPagination = triggerByPagination;
// 设置是否为首次查询
queryOption.IsFirstQuery = _firstQuery;

Expand Down
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/Options/QueryPageOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ public class QueryPageOptions
/// <summary>
/// 获得 是否为刷新分页查询 默认 false
/// </summary>
public bool TriggerByPagination { get; set; }
public bool IsTriggerByPagination { get; set; }
}
2 changes: 1 addition & 1 deletion test/UnitTest/Components/TableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ public void IsAutoQueryFirstQuery_Ok()
{
isQuery = true;
isFirstQuery = option.IsFirstQuery;
triggerByPagination = option.TriggerByPagination;
triggerByPagination = option.IsTriggerByPagination;
return Task.FromResult(new QueryData<Foo>()
{
Items = Array.Empty<Foo>(),
Expand Down

0 comments on commit 7b1a2f2

Please sign in to comment.