2021-04-04 15:40:54 +08:00
|
|
|
|
@namespace AntDesign
|
2020-12-26 21:39:04 +08:00
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@foreach (ModalRef modalRef in _modalRefs)
|
|
|
|
|
{
|
|
|
|
|
var options = modalRef.Config;
|
|
|
|
|
if (options.TitleTemplate != null)
|
|
|
|
|
{
|
|
|
|
|
<Modal @key="@options"
|
2021-04-04 15:40:54 +08:00
|
|
|
|
ModalRef ="@modalRef"
|
2020-12-26 21:39:04 +08:00
|
|
|
|
AfterClose="@options.AfterClose"
|
2021-04-21 22:31:47 +08:00
|
|
|
|
Style="@options.Style"
|
2020-12-26 21:39:04 +08:00
|
|
|
|
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"
|
|
|
|
|
GetContainer="@options.GetContainer"
|
|
|
|
|
Keyboard="@options.Keyboard"
|
|
|
|
|
Mask="@options.Mask"
|
|
|
|
|
MaskClosable="@options.MaskClosable"
|
|
|
|
|
MaskStyle="@options.MaskStyle"
|
|
|
|
|
OkText="@options.OkText"
|
|
|
|
|
OkType="@options.OkType"
|
|
|
|
|
TitleTemplate="@options.TitleTemplate"
|
|
|
|
|
Visible="@options.Visible"
|
|
|
|
|
Width="@options.Width"
|
|
|
|
|
WrapClassName="@options.WrapClassName"
|
|
|
|
|
ZIndex="@options.ZIndex"
|
|
|
|
|
OnCancel="@options.OnCancel"
|
|
|
|
|
OnOk="@options.OnOk"
|
|
|
|
|
OkButtonProps="@options.OkButtonProps"
|
|
|
|
|
CancelButtonProps="@options.CancelButtonProps">
|
|
|
|
|
@options.Content
|
|
|
|
|
</Modal>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<Modal @key="@options"
|
2021-04-04 15:40:54 +08:00
|
|
|
|
ModalRef ="@modalRef"
|
2020-12-26 21:39:04 +08:00
|
|
|
|
AfterClose="@options.AfterClose"
|
2021-04-21 22:31:47 +08:00
|
|
|
|
Style="@options.Style"
|
2020-12-26 21:39:04 +08:00
|
|
|
|
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"
|
|
|
|
|
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.OnCancel"
|
|
|
|
|
OnOk="@options.OnOk"
|
|
|
|
|
OkButtonProps="@options.OkButtonProps"
|
|
|
|
|
CancelButtonProps="@options.CancelButtonProps">
|
|
|
|
|
@options.Content
|
|
|
|
|
</Modal>
|
|
|
|
|
}
|
|
|
|
|
}
|