mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +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>
35 lines
938 B
C#
35 lines
938 B
C#
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
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。
|
|
/// Gets or sets a value indicating whether the event should be cancelled.
|
|
/// Return result: true if the event should be cancelled; otherwise false.
|
|
/// </summary>
|
|
public bool Cancel { get; set; }
|
|
|
|
/// <summary>
|
|
/// Reject to close
|
|
/// </summary>
|
|
public void Reject()
|
|
{
|
|
Cancel = true;
|
|
}
|
|
}
|
|
}
|