Skip to content

Commit 7b1a2f2

Browse files
authored
refactor(QueryPageOptions): rename paramater IsTriggerPagination (#5195)
* refactor(): 重命名参数 * test: 更新单元测试
1 parent c607323 commit 7b1a2f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ protected async Task QueryData(bool triggerByPagination = false)
458458
{
459459
var queryOption = BuildQueryPageOptions();
460460
// 是否为分页查询
461-
queryOption.TriggerByPagination = triggerByPagination;
461+
queryOption.IsTriggerByPagination = triggerByPagination;
462462
// 设置是否为首次查询
463463
queryOption.IsFirstQuery = _firstQuery;
464464

src/BootstrapBlazor/Options/QueryPageOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ public class QueryPageOptions
128128
/// <summary>
129129
/// 获得 是否为刷新分页查询 默认 false
130130
/// </summary>
131-
public bool TriggerByPagination { get; set; }
131+
public bool IsTriggerByPagination { get; set; }
132132
}

test/UnitTest/Components/TableTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ public void IsAutoQueryFirstQuery_Ok()
10831083
{
10841084
isQuery = true;
10851085
isFirstQuery = option.IsFirstQuery;
1086-
triggerByPagination = option.TriggerByPagination;
1086+
triggerByPagination = option.IsTriggerByPagination;
10871087
return Task.FromResult(new QueryData<Foo>()
10881088
{
10891089
Items = Array.Empty<Foo>(),

0 commit comments

Comments
 (0)