mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 21:47:38 +08:00
555fdb9a43
* fix(module:checkbox): allow binding to Checked parameter * fix(module:switch): allow binding to Checked parameter * fix(modules): checkbox & switch get AntInputBoolComponentBase class * test(module:switch): add tests * test(module:checkbox): add tests * test(module:divider): simplify by using id:ignore * docs(module:checkbox): bind example * docs(module:switch): bind example * fix(module:switch): add Control + docs + tests * feat(module:checkboxgroup): add layout and mixed mode * fix: review comments + tests * fix(module:checkboxgroup): parameter name should be MixedMode added more tests * fix demo * fix(module:checkboxgroup): allow toggling between modes Co-authored-by: James Yeung <shunjiey@hotmail.com>
23 lines
610 B
C#
23 lines
610 B
C#
@namespace AntDesign
|
|
@inherits AntInputBoolComponentBase
|
|
|
|
<label class="@ClassMapperLabel.Class" style="@Style" id="@Id" @ref="Ref">
|
|
<span class="@ClassMapper.Class">
|
|
<input value="@Label"
|
|
checked="@Checked"
|
|
disabled="@Disabled"
|
|
autofocus=@AutoFocus
|
|
@onchange="@InputCheckedChange"
|
|
type="checkbox"
|
|
class="ant-checkbox-input" />
|
|
<span class="ant-checkbox-inner"></span>
|
|
</span>
|
|
@if (ChildContent != null)
|
|
{
|
|
<span>
|
|
@ChildContent
|
|
</span>
|
|
}
|
|
</label>
|
|
|