Skip to content

Commit 79ddc44

Browse files
committed
refactor: 统一 api 接口定义
1 parent f06bc6b commit 79ddc44

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function init(id, invoke) {
6161
}
6262

6363
el.classList.add('is-loading');
64-
await invoke.invokeMethodAsync('TriggerOnChange', v, useInput);
64+
await invoke.invokeMethodAsync('TriggerOnChange', v);
6565
el.classList.remove('is-loading');
6666
});
6767

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,12 @@ private async Task OnClickItem(TValue val)
215215
/// TriggerOnChange 方法
216216
/// </summary>
217217
/// <param name="val"></param>
218-
/// <param name="search"></param>
219218
[JSInvokable]
220-
public async Task TriggerOnChange(string val, bool search = true)
219+
public async Task TriggerOnChange(string val)
221220
{
222221
_displayText = val;
223222

224-
if (search)
223+
if (IsTriggerSearchByInput)
225224
{
226225
await OnSearchClick();
227226
}

0 commit comments

Comments
 (0)