2021-02-09 00:31:44 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
2020-07-12 23:19:55 +08:00
|
|
|
|
|
|
|
|
|
namespace AntDesign
|
|
|
|
|
{
|
|
|
|
|
public class ModalClosingEventArgs
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public ModalClosingEventArgs() { }
|
|
|
|
|
|
|
|
|
|
public ModalClosingEventArgs(MouseEventArgs mouseEvent, bool cancel)
|
|
|
|
|
{
|
|
|
|
|
Cancel = cancel;
|
|
|
|
|
MouseEvent = mouseEvent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MouseEventArgs MouseEvent { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置一个值,该值指示是否应取消事件。
|
|
|
|
|
/// 返回结果: true 如果应取消事件;否则为 false。
|
2021-02-09 00:31:44 +08:00
|
|
|
|
/// Gets or sets a value indicating whether the event should be cancelled.
|
|
|
|
|
/// Return result: true if the event should be cancelled; otherwise false.
|
2020-07-12 23:19:55 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Cancel { get; set; }
|
2021-04-04 15:40:54 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reject to close
|
|
|
|
|
/// </summary>
|
|
|
|
|
public void Reject()
|
|
|
|
|
{
|
|
|
|
|
Cancel = true;
|
|
|
|
|
}
|
2020-07-12 23:19:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|