mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
26 lines
546 B
C#
26 lines
546 B
C#
|
@namespace AntDesign
|
|||
|
@inherits AntDomComponentBase
|
|||
|
@typeparam TValue
|
|||
|
|
|||
|
<label class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|||
|
<input class="ant-segmented-item-input" type="radio" checked="@_selected">
|
|||
|
<div class="ant-segmented-item-label" title="@Label" @onclick="OnClick">
|
|||
|
@if (ChildContent != null)
|
|||
|
{
|
|||
|
@ChildContent
|
|||
|
}
|
|||
|
else if (Icon != null)
|
|||
|
{
|
|||
|
<Icon Type="@Icon" />
|
|||
|
if (Label != null)
|
|||
|
{
|
|||
|
<span>@Label</span>
|
|||
|
}
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
@Label
|
|||
|
}
|
|||
|
</div>
|
|||
|
</label>
|