mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
22 lines
420 B
C#
22 lines
420 B
C#
|
@namespace AntDesign
|
|||
|
@inherits AntDomComponentBase
|
|||
|
|
|||
|
<li Class="@ClassMapper.Class"></li>
|
|||
|
|
|||
|
@code {
|
|||
|
[CascadingParameter]
|
|||
|
public Menu RootMenu { get; set; }
|
|||
|
|
|||
|
private void setClass()
|
|||
|
{
|
|||
|
ClassMapper.Clear()
|
|||
|
.Add($"{RootMenu.PrefixCls}-item-divider");
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnInitialized()
|
|||
|
{
|
|||
|
setClass();
|
|||
|
base.OnInitialized();
|
|||
|
}
|
|||
|
|
|||
|
}
|