ant-design-blazor/components/modal/modalDialog/Modal.razor
zxyao 31aac9f914 refactor: unified use of FeedbackComponent for modal comfirm and drawer (#1263)
* refactor: support to use the same template for confirm and modal

* refactor: support to use the same template for drawer

* refactor: separate interface IOkCancelRef

* chore: modify EventUtil class summary

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-04 15:40:54 +08:00

20 lines
779 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<DialogWrapper @ref="_dialogWrapper"
Config="@BuildDialogOptions()"
Visible="@Visible"
DestroyOnClose="@DestroyOnClose"
OnAfterShow="@OnAfterDialogShow"
OnAfterHide="@OnAfterHide"
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>