mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
26 lines
584 B
C#
26 lines
584 B
C#
using Microsoft.AspNetCore.Components;
|
|
using OneOf;
|
|
|
|
namespace AntDesign
|
|
{
|
|
public partial class MenuItemGroup : AntDomComponentBase
|
|
{
|
|
[CascadingParameter]
|
|
public Menu RootMenu { get; set; }
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
ClassMapper.Add($"{RootMenu.PrefixCls}-item-group");
|
|
}
|
|
|
|
[Parameter]
|
|
public OneOf<string, RenderFragment> Title { get; set; }
|
|
|
|
[Parameter]
|
|
public RenderFragment ChildContent { get; set; }
|
|
|
|
[Parameter]
|
|
public string Key { get; set; }
|
|
}
|
|
}
|