ant-design-blazor/components/drawer/DrawerContainer.razor
TimChen 19f51c87fa fix(module: drawer): close event bug (#599)
* fix: drawer close event bug

* refactor: translate some comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-16 19:42:48 +08:00

30 lines
1.1 KiB
C#

@namespace AntDesign
@inherits AntDomComponentBase
@foreach (IDrawerRef drawerRef in _drawerRefs)
{
var drawerConfig = drawerRef.Options;
<Drawer @ref="@drawerRef.Drawer"
@key="@drawerConfig"
Content="@drawerConfig.Content"
Closable="@drawerConfig.Closable"
MaskClosable="@drawerConfig.MaskClosable"
Mask="@drawerConfig.Mask"
NoAnimation="@drawerConfig.NoAnimation"
Keyboard="@drawerConfig.Keyboard"
Title="@drawerConfig.Title"
Placement="@drawerConfig.Placement"
MaskStyle="@drawerConfig.MaskStyle"
BodyStyle="@drawerConfig.BodyStyle"
WrapClassName="@drawerConfig.WrapClassName"
Width="@drawerConfig.Width"
Height="@drawerConfig.Height"
ZIndex="@drawerConfig.ZIndex"
OffsetX="@drawerConfig.OffsetX"
OffsetY="@drawerConfig.OffsetY"
Visible="@drawerConfig.Visible"
OnClose="@drawerRef.CloseAsync">
@drawerConfig.ChildContent
</Drawer>
}