mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
698ae84ab1
* feat(module: checkbox): support generic value * fix tests * fix test * fix name * fix tests * fix tests
31 lines
752 B
C#
31 lines
752 B
C#
@namespace AntDesign
|
|
@inherits AntInputBoolComponentBase
|
|
|
|
<label class="@ClassMapperLabel.Class" style="@Style" for="@Id" @ref="Ref">
|
|
<span class="@ClassMapper.Class">
|
|
<input id="@Id"
|
|
value="@(CheckboxGroup==null?"true":Label)"
|
|
checked="@Checked"
|
|
disabled="@IsDisabled"
|
|
autofocus=@AutoFocus
|
|
@onchange="@InputCheckedChange"
|
|
type="checkbox"
|
|
class="ant-checkbox-input"
|
|
@attributes="_attributes" />
|
|
<span class="ant-checkbox-inner"></span>
|
|
</span>
|
|
|
|
@if (ChildContent != null)
|
|
{
|
|
<span>
|
|
@ChildContent
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<span>@Label</span>
|
|
}
|
|
|
|
</label>
|
|
|