Closed ysj265 closed 10 months ago
static readonly RenderFragment<MenuDataItem> title= menuItem => @<span> @if (!string.IsNullOrEmpty(menuItem.Icon)) { <Icon Type="@menuItem.Icon" Theme="outline" /> } @if (!string.IsNullOrEmpty(menuItem.IconFont)) { <IconFont Type="@menuItem.IconFont" /> } public class MenuDataItem { public string[] Authority { get; set; } public virtual MenuDataItem[] Children { get; set; } public bool HideChildrenInMenu { get; set; } public bool HideInMenu { get; set; } public string Icon { get; set; } public string IconFont { get; set; } //Add public string Locale { get; set; } public virtual string Name { get; set; } public string Key { get; set; } public string Path { get; set; } public string[] ParentKeys { get; set; } public NavLinkMatch Match { get; set; } }
}
Thanks for contacting us @ysj265 ,please feel free to send a PR
Hello @ysj265 ,please update to v0.17.1.2.
new MenuDataItem { TitleTemplate =@<span><Icon Type="user"></Icon> Custom Menu </span>, }
}