2020-01-11 01:10:05 +08:00
|
|
|
|
@namespace AntBlazor
|
2020-04-23 17:13:56 +08:00
|
|
|
|
@inherits AntDomComponentBase
|
2020-01-11 01:10:05 +08:00
|
|
|
|
|
2020-04-23 17:13:56 +08:00
|
|
|
|
<CascadingValue Value="this">
|
|
|
|
|
<div class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
2020-04-24 18:32:50 +08:00
|
|
|
|
@if (Options != null)
|
2020-04-23 17:13:56 +08:00
|
|
|
|
{
|
2020-04-24 18:32:50 +08:00
|
|
|
|
@foreach (var option in Options)
|
|
|
|
|
{
|
|
|
|
|
<AntCheckbox class="ant-checkbox-group-item"
|
|
|
|
|
Disabled="option.Disabled || Disabled"
|
|
|
|
|
Checked="@(option.Checked)"
|
|
|
|
|
Value="@option.Value"
|
|
|
|
|
CheckedChange="_=>OnOptionChange()">
|
|
|
|
|
<span>@option.Label</span>
|
|
|
|
|
</AntCheckbox>
|
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
|
}
|
|
|
|
|
@ChildContent
|
|
|
|
|
</div>
|
|
|
|
|
</CascadingValue>
|