mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-06 05:57:39 +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
42 lines
969 B
C#
42 lines
969 B
C#
using Microsoft.AspNetCore.Components;
|
|
using OneOf;
|
|
|
|
namespace AntDesign
|
|
{
|
|
/// <summary>
|
|
/// button props
|
|
/// </summary>
|
|
public class ButtonProps
|
|
{
|
|
public bool Block { get; set; } = false;
|
|
|
|
public bool Ghost { get; set; } = false;
|
|
|
|
public bool Loading { get; set; } = false;
|
|
|
|
public string Type { get; set; } = ButtonType.Default;
|
|
|
|
public string Shape { get; set; } = null;
|
|
|
|
public string Size { get; set; } = AntSizeLDSType.Default;
|
|
|
|
public string Icon { get; set; }
|
|
|
|
public bool Disabled { get; set; }
|
|
|
|
private bool? _danger;
|
|
public bool? Danger { get => _danger; set => _danger = value; }
|
|
|
|
internal bool IsDanger
|
|
{
|
|
get
|
|
{
|
|
if (Danger.HasValue) return Danger.Value;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public OneOf<string, RenderFragment>? ChildContent { get; set; } = null;
|
|
}
|
|
}
|