Skip to content

Commit 0e26d5e

Browse files
committed
feat: 增加防抖默认值 200
1 parent 5cbe646 commit 0e26d5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Components/Search/Search.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ protected override void OnParametersSet()
198198
ButtonIcon ??= SearchButtonIcon;
199199
NoDataTip ??= Localizer[nameof(NoDataTip)];
200200
_filterItems ??= [];
201+
202+
if (Debounce == 0)
203+
{
204+
Debounce = 200;
205+
}
201206
}
202207

203208
private string _displayText = "";

0 commit comments

Comments
 (0)