mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
1b48d862e2
* ConfirmService To Interface * backwards compatibility
24 lines
716 B
C#
24 lines
716 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using OneOf;
|
|
|
|
namespace AntDesign;
|
|
|
|
public interface IConfirmService
|
|
{
|
|
Task<ConfirmResult> Show(
|
|
OneOf<string, RenderFragment> content,
|
|
OneOf<string, RenderFragment> title,
|
|
ConfirmButtons confirmButtons,
|
|
ConfirmIcon confirmIcon,
|
|
ConfirmButtonOptions options,
|
|
ConfirmAutoFocusButton? autoFocusButton = ConfirmAutoFocusButton.Ok);
|
|
|
|
Task<ConfirmResult> Show
|
|
(OneOf<string, RenderFragment> content,
|
|
OneOf<string, RenderFragment> title,
|
|
ConfirmButtons confirmButtons = ConfirmButtons.OKCancel,
|
|
ConfirmIcon confirmIcon = ConfirmIcon.Info);
|
|
}
|