mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
6bf817d1ea
* refactor: change the name of ModalRef to ConfirmRef in order to create a Modal dialog in service mode BREAKING CHANGE: all using of ModalRef must rename to ConfirmRef * refactor: chang the name of ModalTemplate to ConfirmTemplate in order to create a Modal dialog in service mode BREAKING CHANGE: all using of ModalTemplate must rename to ConfirmTemplate * feat(module: modal): support creating Modal dialog from ModalService Co-authored-by: James Yeung <shunjiey@hotmail.com>
40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
@foreach (ModalRef modalRef in _modalRefs)
|
|
{
|
|
var options = modalRef.Config;
|
|
<Modal @key="@options"
|
|
AfterClose="@options.AfterClose"
|
|
BodyStyle="@options.BodyStyle"
|
|
CancelText="@options.CancelText"
|
|
Centered="@options.Centered"
|
|
Closable="@options.Closable"
|
|
Draggable="@options.Draggable"
|
|
DragInViewport="@options.DragInViewport"
|
|
CloseIcon="@options.CloseIcon"
|
|
ConfirmLoading="@options.ConfirmLoading"
|
|
DestroyOnClose="@options.DestroyOnClose"
|
|
Footer="@options.Footer"
|
|
ForceRender="@options.ForceRender"
|
|
GetContainer="@options.GetContainer"
|
|
Keyboard="@options.Keyboard"
|
|
Mask="@options.Mask"
|
|
MaskClosable="@options.MaskClosable"
|
|
MaskStyle="@options.MaskStyle"
|
|
OkText="@options.OkText"
|
|
OkType="@options.OkType"
|
|
Title="@options.Title"
|
|
Visible="@options.Visible"
|
|
Width="@options.Width"
|
|
WrapClassName="@options.WrapClassName"
|
|
ZIndex="@options.ZIndex"
|
|
OnCancel="@options.GetOnCancel()"
|
|
OnOk="@options.GetOnOk()"
|
|
OkButtonProps="@options.OkButtonProps"
|
|
CancelButtonProps="@options.CancelButtonProps"
|
|
>
|
|
@options.Content
|
|
</Modal>
|
|
} |