mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
4cac27f887
* fix:fix(module:dropdownbutton): add regular button behaviors and properties * fix(module:button): add text type & docs * docs(module:dropdown): version correction * fix(module:overlay): re-add IsButton parameter * fix: add xml comment to public methods * fix(module:overlay): add xml documentation * fix(module:dropdown): chrome block button force * fix(module:button): remove Search parameter Co-authored-by: James Yeung <shunjiey@hotmail.com>
25 lines
587 B
C#
25 lines
587 B
C#
@namespace AntDesign.Internal
|
|
@inherits AntDomComponentBase
|
|
|
|
<ButtonGroup Class="ant-dropdown-button" Style="@(Dropdown.Block ? $"display:flex; flex-direction:row;{Style}": Style)">
|
|
@if (Dropdown.ButtonsRender != null)
|
|
{
|
|
@Dropdown.ButtonsRender(LeftButton, RightButton)
|
|
}
|
|
else
|
|
{
|
|
@LeftButton
|
|
@RightButton
|
|
}
|
|
</ButtonGroup>
|
|
|
|
@code {
|
|
[CascadingParameter]
|
|
public Dropdown Dropdown { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment LeftButton { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment RightButton { get; set; }
|
|
} |