mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
31aac9f914
* refactor: support to use the same template for confirm and modal * refactor: support to use the same template for drawer * refactor: separate interface IOkCancelRef * chore: modify EventUtil class summary Co-authored-by: James Yeung <shunjiey@hotmail.com>
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public interface IModalTemplate
|
|
{
|
|
/// <summary>
|
|
/// 点击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
[Obsolete("Please replace it with OnFeedbackOkAsync")]
|
|
Task OkAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// 点击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
[Obsolete("Please replace it with OnFeedbackCancelAsync")]
|
|
Task CancelAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// 击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
/// <param name="args"></param>
|
|
/// <returns></returns>
|
|
Task OnFeedbackOkAsync(ModalClosingEventArgs args);
|
|
|
|
/// <summary>
|
|
/// 点击取消按钮时调用,可以重写它来放入自己的逻辑
|
|
/// </summary>
|
|
Task OnFeedbackCancelAsync(ModalClosingEventArgs args);
|
|
}
|
|
}
|