2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign
|
2020-06-02 20:27:53 +08:00
|
|
|
|
@inherits AntInputComponentBase<bool>
|
2019-12-18 15:11:41 +08:00
|
|
|
|
|
2020-04-24 18:32:50 +08:00
|
|
|
|
<label class="ant-checkbox-wrapper" style="@Style;" id="@Id" @ref="Ref">
|
2020-02-15 18:22:51 +08:00
|
|
|
|
<span class="@ClassMapper.Class" style="">
|
2020-04-23 17:13:56 +08:00
|
|
|
|
<input @ref="_inputElement"
|
2020-06-02 20:27:53 +08:00
|
|
|
|
value="@(Label)"
|
2020-05-26 15:21:47 +08:00
|
|
|
|
checked="@(Checked)"
|
|
|
|
|
disabled="@(Disabled)"
|
|
|
|
|
@onchange="@InputCheckedChange"
|
|
|
|
|
@attributes="@InputAttributes"
|
|
|
|
|
type="checkbox"
|
|
|
|
|
class="ant-checkbox-input" />
|
2020-02-15 18:22:51 +08:00
|
|
|
|
<span class="ant-checkbox-inner"></span>
|
|
|
|
|
</span>
|
2020-05-28 16:56:52 +08:00
|
|
|
|
@if (ChildContent != null)
|
2020-05-26 15:21:47 +08:00
|
|
|
|
{
|
|
|
|
|
<span @ref="_contentElement">
|
|
|
|
|
@ChildContent
|
|
|
|
|
</span>
|
|
|
|
|
}
|
2020-02-15 18:22:51 +08:00
|
|
|
|
</label>
|