mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
e892f343de
* add basic segmented * add more demos * add animation * change value first * fix duplicate selected * fix doc
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>
|