2020-05-29 00:33:49 +08:00
|
|
|
@namespace AntDesign
|
2020-04-23 17:13:56 +08:00
|
|
|
@inherits AntDomComponentBase
|
2020-03-22 21:24:41 +08:00
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="@ClassMapper.Class" @ref="@Ref" style="@DrawerStyle @Style" id="@Id">
|
|
|
|
@if (Mask)
|
2020-03-22 21:24:41 +08:00
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="ant-drawer-mask" @onclick="_=>MaskClick()" style="@MaskStyle"></div>
|
2020-03-22 21:24:41 +08:00
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="ant-drawer-content-wrapper @WrapClassName " style="@WrapperStyle">
|
2020-03-22 21:24:41 +08:00
|
|
|
<div class="ant-drawer-content">
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="ant-drawer-wrapper-body" style="@(IsLeftOrRight?"height:100%":"")">
|
|
|
|
@if (_title.Value != null || Closable)
|
2020-03-22 21:24:41 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
<div class="@TitleClassMapper.Class">
|
|
|
|
@if (_title.Value != null)
|
|
|
|
{
|
|
|
|
<div class="ant-drawer-title">
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (TitleTemplate != null)
|
2020-03-22 21:24:41 +08:00
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
@TitleTemplate
|
2020-03-22 21:24:41 +08:00
|
|
|
}
|
2020-05-18 18:42:22 +08:00
|
|
|
@if (!string.IsNullOrEmpty(TitleString))
|
2020-03-22 21:24:41 +08:00
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
@((MarkupString)TitleString)
|
2020-03-22 21:24:41 +08:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
@if (Closable)
|
2020-03-22 21:24:41 +08:00
|
|
|
{
|
2020-05-18 18:42:22 +08:00
|
|
|
<button @onclick="_=>CloseClick()" aria-label="Close" class="ant-drawer-close">
|
2020-03-22 21:24:41 +08:00
|
|
|
<AntIcon type="close"></AntIcon>
|
|
|
|
</button>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
<div class="ant-drawer-body" style="@BodyStyle">
|
2020-03-22 21:24:41 +08:00
|
|
|
@if (ContentTemplate != null)
|
|
|
|
{
|
2020-04-23 17:13:56 +08:00
|
|
|
@ContentTemplate
|
2020-03-22 21:24:41 +08:00
|
|
|
}
|
|
|
|
@if (string.IsNullOrEmpty(ContentString))
|
|
|
|
{
|
|
|
|
@((MarkupString)ContentString)
|
|
|
|
}
|
|
|
|
@ChildContent
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|