mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
d16144ece0
* refactor: button * refactor: avatar * refactor: alert * fix: input group compact
59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public class DropdownButton : Dropdown
|
|
{
|
|
private string _icon = "ellipsis";
|
|
[Parameter]
|
|
public string Icon
|
|
{
|
|
get
|
|
{
|
|
return _icon;
|
|
}
|
|
set
|
|
{
|
|
_icon = value;
|
|
ChangeRightButtonIcon(value);
|
|
}
|
|
}
|
|
|
|
private string _size = AntSizeLDSType.Default;
|
|
[Parameter]
|
|
public string Size
|
|
{
|
|
get
|
|
{
|
|
return _size;
|
|
}
|
|
set
|
|
{
|
|
_size = value;
|
|
ChangeButtonSize(value);
|
|
}
|
|
}
|
|
|
|
private string _type = ButtonType.Default;
|
|
[Parameter]
|
|
public string Type
|
|
{
|
|
get
|
|
{
|
|
return _type;
|
|
}
|
|
set
|
|
{
|
|
_type = value;
|
|
ChangeButtonType(value);
|
|
}
|
|
}
|
|
|
|
public DropdownButton()
|
|
{
|
|
IsButton = true;
|
|
Trigger = new TriggerType[] { TriggerType.Click };
|
|
}
|
|
}
|
|
}
|