mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
21 lines
705 B
C#
21 lines
705 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
|
|
<CascadingValue Value="this">
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|
@if (Options != null)
|
|
{
|
|
@foreach (var option in Options)
|
|
{
|
|
<Checkbox class="ant-checkbox-group-item"
|
|
Disabled="option.Disabled || Disabled"
|
|
Checked="@(option.Checked)"
|
|
Label="@option.Value"
|
|
CheckedChange="_=>OnOptionChange()">
|
|
<span>@option.Label</span>
|
|
</Checkbox>
|
|
}
|
|
}
|
|
@ChildContent
|
|
</div>
|
|
</CascadingValue> |