public void Loading() { LoadingService.Show(new LoadingOption() { Background = "rgba(0, 0, 0, 0.1)", Text = "拼命加载中", IconClass = "el-icon-loading" }); }
protected async Task WithFullScreenLoading(Func <Task> action) { LoadingService.Show(new LoadingOption() { Background = "rgba(0, 0, 0, 0.1)", Text = "", IconClass = "el-icon-loading" }); await action(); LoadingService.CloseFullScreenLoading(); }
internal async Task CurrentPageChangedAsync(int page) { currentPage = page; if (CurrentPageChanged.HasDelegate) { RequireRender = true; LoadingService.Show(); await CurrentPageChanged.InvokeAsync(page); LoadingService.CloseFullScreenLoading(); } }
public async Task WithFullScreenLoading(Func <Task <BaseResponse> > action, Action <BaseResponse> callback = null) { LoadingService.Show(new LoadingOption() { Background = "rgba(0, 0, 0, 0.1)", Text = "", IconClass = "el-icon-loading" }); var result = await action(); callback?.Invoke(result); LoadingService.CloseFullScreenLoading(); }