2020-05-10 15:42:02 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
using OneOf;
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-05-10 15:42:02 +08:00
|
|
|
|
{
|
2020-05-18 14:46:42 +08:00
|
|
|
|
public partial class MenuItemGroup : AntDomComponentBase
|
2020-05-10 15:42:02 +08:00
|
|
|
|
{
|
2020-05-18 14:46:42 +08:00
|
|
|
|
[CascadingParameter]
|
|
|
|
|
public Menu RootMenu { get; set; }
|
2020-05-10 15:42:02 +08:00
|
|
|
|
|
|
|
|
|
protected override void OnInitialized()
|
|
|
|
|
{
|
2020-05-18 14:46:42 +08:00
|
|
|
|
ClassMapper.Add($"{RootMenu.PrefixCls}-item-group");
|
2020-05-10 15:42:02 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
2020-09-16 13:58:16 +08:00
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment TitleTemplate { get; set; }
|
2020-05-10 15:42:02 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public RenderFragment ChildContent { get; set; }
|
2020-05-18 14:46:42 +08:00
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
|
public string Key { get; set; }
|
2020-05-10 15:42:02 +08:00
|
|
|
|
}
|
|
|
|
|
}
|