/// <summary> /// 重置查询方法 /// </summary> protected async Task ResetSearchClick() { if (OnResetSearchAsync != null) { await OnResetSearchAsync(SearchModel); } else if (SearchTemplate == null) { SearchModel.Reset(); } await SearchClick(); }
/// <summary> /// Default handler for resetting that delegates the action to the view model. /// </summary> protected virtual async Task OnResetAsync(MouseEventArgs e) { SearchModel?.Reset(this, e); await Task.CompletedTask; }