From 68a6153190060b51dcd0250b585fb22cb3781b11 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Wed, 22 Dec 2021 01:56:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ShowSaveDialog=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E5=9B=9E=E8=B0=83=E5=A7=94?= =?UTF-8?q?=E6=89=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Dialog/DialogService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/Components/Dialog/DialogService.cs b/src/BootstrapBlazor/Components/Dialog/DialogService.cs index 453a8a4c0..2aa1dce47 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogService.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogService.cs @@ -198,9 +198,10 @@ public class DialogService : BootstrapServiceBase /// /// /// + /// /// /// - public async Task ShowSaveDialog(string title, Func> saveCallback, Dictionary? parameters = null, Dialog? dialog = null) where TComponent : ComponentBase + public async Task ShowSaveDialog(string title, Func> saveCallback, Dictionary? parameters = null, Action? configureOption = null, Dialog? dialog = null) where TComponent : ComponentBase { var option = new DialogOption() { @@ -209,6 +210,7 @@ public class DialogService : BootstrapServiceBase ShowSaveButton = true, OnSaveAsync = saveCallback }; + configureOption?.Invoke(option); await Invoke(option, dialog); } } -- Gitee