Skip to content

Commit 638bb2e

Browse files
committed
refactor: 移动部分参数到组件内
1 parent 7997535 commit 638bb2e

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@ public partial class AutoComplete
4444
[Parameter]
4545
public string? LoadingIcon { get; set; }
4646

47+
/// <summary>
48+
/// 获得/设置 匹配数据时显示的数量
49+
/// </summary>
50+
[Parameter]
51+
[NotNull]
52+
public int? DisplayCount { get; set; }
53+
54+
/// <summary>
55+
/// 获得/设置 是否开启模糊查询,默认为 false
56+
/// </summary>
57+
[Parameter]
58+
public bool IsLikeMatch { get; set; }
59+
60+
/// <summary>
61+
/// 获得/设置 匹配时是否忽略大小写,默认为 true
62+
/// </summary>
63+
[Parameter]
64+
public bool IgnoreCase { get; set; } = true;
65+
4766
/// <summary>
4867
/// IStringLocalizer 服务实例
4968
/// </summary>

src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,6 @@ public abstract class PopoverCompleteBase<TValue> : BootstrapInputBase<TValue>,
7474
[Parameter]
7575
public int Debounce { get; set; }
7676

77-
/// <summary>
78-
/// 获得/设置 匹配数据时显示的数量
79-
/// </summary>
80-
[Parameter]
81-
[NotNull]
82-
public int? DisplayCount { get; set; }
83-
84-
/// <summary>
85-
/// 获得/设置 是否开启模糊查询,默认为 false
86-
/// </summary>
87-
[Parameter]
88-
public bool IsLikeMatch { get; set; }
89-
90-
/// <summary>
91-
/// 获得/设置 匹配时是否忽略大小写,默认为 true
92-
/// </summary>
93-
[Parameter]
94-
public bool IgnoreCase { get; set; } = true;
95-
9677
/// <summary>
9778
/// 获得/设置 下拉菜单选择回调方法 默认 null
9879
/// </summary>

0 commit comments

Comments
 (0)