mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
92d7203815
* Fix issue #1634 - Modal dialogs not showing anymore * Removed unnecessary Search from ButtonProps as part of #1634 fix - Modal dialogs not showing anymore
55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
@{
|
|
var okProps = ModalProps.OkButtonProps ?? new ButtonProps();
|
|
okProps.Type = ModalProps.OkType;
|
|
okProps.Loading = ModalProps.ConfirmLoading;
|
|
var cancelProps = ModalProps.CancelButtonProps ?? new ButtonProps();
|
|
}
|
|
|
|
<div>
|
|
<Button OnClick="@HandleOk"
|
|
Loading="@okProps.Loading"
|
|
Type="@okProps.Type"
|
|
Block="@okProps.Block"
|
|
Ghost="@okProps.Ghost"
|
|
Shape="@okProps.Shape"
|
|
Size="@okProps.Size"
|
|
Icon="@okProps.Icon"
|
|
Disabled="@okProps.Disabled"
|
|
Danger="@okProps.IsDanger">
|
|
@{
|
|
if (ModalProps.OkText.IsT0)
|
|
{
|
|
@(ModalProps.OkText.AsT0)
|
|
}
|
|
else
|
|
{
|
|
@(ModalProps.OkText.AsT1)
|
|
}
|
|
}
|
|
</Button>
|
|
<Button OnClick="@HandleCancel"
|
|
Block="@cancelProps.Block"
|
|
Ghost="@cancelProps.Ghost"
|
|
Loading="@cancelProps.Loading"
|
|
Type="@cancelProps.Type"
|
|
Shape="@cancelProps.Shape"
|
|
Size="@cancelProps.Size"
|
|
Icon="@cancelProps.Icon"
|
|
Disabled="@cancelProps.Disabled"
|
|
Danger="@cancelProps.IsDanger">
|
|
@{
|
|
if (ModalProps.CancelText.IsT0)
|
|
{
|
|
@(ModalProps.CancelText.AsT0)
|
|
}
|
|
else
|
|
{
|
|
@(ModalProps.CancelText.AsT1)
|
|
}
|
|
}
|
|
</Button>
|
|
</div>
|