2020-07-12 23:19:55 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-04-04 15:40:54 +08:00
|
|
|
|
using System.ComponentModel;
|
2020-07-12 23:19:55 +08:00
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
|
|
|
|
public interface IModalTemplate
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 点击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
|
|
|
/// </summary>
|
2021-04-04 15:40:54 +08:00
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
|
|
|
[Obsolete("Please replace it with OnFeedbackOkAsync")]
|
2020-07-12 23:19:55 +08:00
|
|
|
|
Task OkAsync(ModalClosingEventArgs args);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 点击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
|
|
|
/// </summary>
|
2021-04-04 15:40:54 +08:00
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
|
|
|
[Obsolete("Please replace it with OnFeedbackCancelAsync")]
|
2020-07-12 23:19:55 +08:00
|
|
|
|
Task CancelAsync(ModalClosingEventArgs args);
|
|
|
|
|
|
2021-04-04 15:40:54 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 击确定按钮时调用,可以重写它来放入自己的逻辑
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="args"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task OnFeedbackOkAsync(ModalClosingEventArgs args);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 点击取消按钮时调用,可以重写它来放入自己的逻辑
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task OnFeedbackCancelAsync(ModalClosingEventArgs args);
|
2020-07-12 23:19:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|