ant-design-blazor/components/dropdown/DropdownButton.cs
笨木头 7a4ab2a302 fix(module: dropdown): couldn't auto close menu (#394)
* fix(module: dropdown): couldn't auto close menu

* refactor(module: overlay): change public function to internal

* fix(module: dropdown): couldn't close in modal
2020-07-23 22:51:02 +08:00

58 lines
1.1 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;
}
}
}