2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign.Internal
|
2020-05-09 11:09:07 +08:00
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
|
2020-05-29 12:55:15 +08:00
|
|
|
|
<ButtonGroup Class="ant-dropdown-button">
|
2020-05-09 11:09:07 +08:00
|
|
|
|
@if (Dropdown.ButtonsRender != null)
|
|
|
|
|
{
|
|
|
|
|
@Dropdown.ButtonsRender(LeftButton, RightButton)
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@LeftButton
|
|
|
|
|
@RightButton
|
|
|
|
|
}
|
2020-05-29 12:55:15 +08:00
|
|
|
|
</ButtonGroup>
|
2020-05-09 11:09:07 +08:00
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
[CascadingParameter]
|
2020-05-18 14:46:42 +08:00
|
|
|
|
public Dropdown Dropdown { get; set; }
|
2020-05-09 11:09:07 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment LeftButton { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment RightButton { get; set; }
|
|
|
|
|
}
|