ant-design-blazor/components/modal/modalDialog/Modal.razor

19 lines
733 B
C#
Raw Normal View History

@namespace AntDesign
@inherits AntDomComponentBase
<DialogWrapper @ref="_dialogWrapper"
Config="@BuildDialogOptions()"
Visible="@Visible"
DestroyOnClose="@DestroyOnClose"
OnAfterShow="@OnAfterDialogShow"
OnBeforeDestroy="@OnBeforeDialogWrapperDestroy"
Style="@Style">
<CascadingValue Value=@($"#ant-modal-wrap_{_dialogWrapper.Id}") Name="PopupContainerSelector">
<CascadingValue Value="true" Name="InModal">
<CascadingValue Value="@_dialogWrapper.Dialog.IsShow()" Name="ModalCompleteShow">
@ChildContent
</CascadingValue>
</CascadingValue>
</CascadingValue>
</DialogWrapper>