ant-design-blazor/components/drawer/DrawerContainer.razor
zxyao 9739cd4161 fix(drawer): unexpected behavior of Drawer(#1749) (#1771)
* fix: unexpected behavior of Drawer(#1749)

1. The scroll bar of the body is enabled after closing one of the
   multiple drawers
2. Bad parameter NoAnimation.

* chore: remove debug output

* chore: add comments for ComponentStatus

* fix:  different behaviors in WASM and Server modes

* chore: remove debug output
2021-07-25 22:41:06 +08:00

29 lines
1.0 KiB
C#

@namespace AntDesign
@inherits AntDomComponentBase
@foreach (DrawerRef 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"
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>
}