mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
d16144ece0
* refactor: button * refactor: avatar * refactor: alert * fix: input group compact
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
using AntDesign.Internal;
|
|
using AntDesign.JsInterop;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class Dropdown : OverlayTrigger
|
|
{
|
|
[Parameter]
|
|
public Func<RenderFragment, RenderFragment, RenderFragment> ButtonsRender { get; set; }
|
|
|
|
private string _rightButtonIcon = "ellipsis";
|
|
private string _buttonSize = AntSizeLDSType.Default;
|
|
private string _buttonType = ButtonType.Default;
|
|
|
|
private RenderFragment _leftButton;
|
|
private RenderFragment _rightButton;
|
|
|
|
[Inject]
|
|
private DomEventService DomEventService { get; set; }
|
|
|
|
protected void ChangeRightButtonIcon(string icon)
|
|
{
|
|
_rightButtonIcon = icon;
|
|
|
|
StateHasChanged();
|
|
}
|
|
|
|
protected void ChangeButtonSize(string size)
|
|
{
|
|
_buttonSize = size;
|
|
|
|
StateHasChanged();
|
|
}
|
|
|
|
protected void ChangeButtonType(string type)
|
|
{
|
|
_buttonType = type;
|
|
|
|
StateHasChanged();
|
|
}
|
|
}
|
|
}
|