2020-05-09 11:09:07 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-05-09 11:09:07 +08:00
|
|
|
|
{
|
2020-05-18 14:46:42 +08:00
|
|
|
|
public class DropdownButton : Dropdown
|
2020-05-09 11:09:07 +08:00
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-29 12:55:15 +08:00
|
|
|
|
private string _type = ButtonType.Default;
|
2020-05-09 11:09:07 +08:00
|
|
|
|
[Parameter]
|
|
|
|
|
public string Type
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _type;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_type = value;
|
|
|
|
|
ChangeButtonType(value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-18 14:46:42 +08:00
|
|
|
|
public DropdownButton()
|
2020-05-09 11:09:07 +08:00
|
|
|
|
{
|
|
|
|
|
IsButton = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|