mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 08:51:27 +08:00
19f51c87fa
* fix: drawer close event bug * refactor: translate some comments Co-authored-by: ElderJames <shunjiey@hotmail.com>
30 lines
579 B
C#
30 lines
579 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class DrawerClosingEventArgs
|
|
{
|
|
private bool _rejected;
|
|
|
|
public DrawerClosingEventArgs() { }
|
|
|
|
public DrawerClosingEventArgs(bool reject)
|
|
{
|
|
_rejected = reject;
|
|
}
|
|
|
|
internal bool Rejected { get => _rejected; }
|
|
|
|
/// <summary>
|
|
/// Reject to close
|
|
/// </summary>
|
|
public void Reject()
|
|
{
|
|
_rejected = true;
|
|
}
|
|
}
|
|
}
|