Skip to content

Commit 58af2d4

Browse files
committed
refactor: IsFixedSearch 移动到基类
1 parent 3a7ffe4 commit 58af2d4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/BootstrapBlazor/Components/Select/Select.razor.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ public partial class Select<TValue> : ISelect, ILookup
6868
[Parameter]
6969
public Func<string, IEnumerable<SelectedItem>>? OnSearchTextChanged { get; set; }
7070

71-
/// <summary>
72-
/// Gets or sets whether the search bar in the dropdown is fixed. Default is false.
73-
/// </summary>
74-
[Parameter]
75-
public bool IsFixedSearch { get; set; }
76-
7771
/// <summary>
7872
/// Gets or sets whether the select component is editable. Default is false.
7973
/// </summary>

src/BootstrapBlazor/Components/Select/SelectBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ public abstract class SelectBase<TValue> : PopoverSelectBase<TValue>
2323
[Parameter]
2424
public bool ShowSearch { get; set; }
2525

26+
/// <summary>
27+
/// Gets or sets whether the search bar in the dropdown is fixed. Default is false.
28+
/// </summary>
29+
[Parameter]
30+
public bool IsFixedSearch { get; set; }
31+
2632
/// <summary>
2733
/// Gets or sets the search icon.
2834
/// </summary>

0 commit comments

Comments
 (0)