mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
ea46422738
* feat(module:menudivider): new component * docs(module:dropdown): dropdown with tooltip and menudivider * docs(module:menu): menudivider for horizontal demo * feat(module:menudivider): remove unnecessary method
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();
|
|
}
|
|
|
|
} |