ant-design-blazor/components/drawer/DrawerContainer.razor
TimChen 8f00e1d393 feat: drawer support return value (#279)
* feat: drawer support return value

* feat: drawer supports return value

* feat: drawer support return value

* feat: drawer support return value

* docs: avoid duplicate names

* fix: demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-30 13:40:51 +08:00

30 lines
1.1 KiB
C#

@namespace AntDesign
@inherits AntDomComponentBase
@foreach (DrawerRef drawerRef in _drawerRefs)
{
var drawerConfig = drawerRef.Config;
<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.HandleOnCancel">
@drawerConfig.ChildContent
</Drawer>
}