2020-05-29 00:33:49 +08:00
|
|
|
|
@namespace AntDesign
|
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)
|
|
|
|
|
{
|
2020-05-28 16:56:52 +08:00
|
|
|
|
<Checkbox class="ant-checkbox-group-item"
|
2020-04-24 18:32:50 +08:00
|
|
|
|
Disabled="option.Disabled || Disabled"
|
|
|
|
|
Checked="@(option.Checked)"
|
2020-06-02 20:27:53 +08:00
|
|
|
|
Label="@option.Value"
|
2020-04-24 18:32:50 +08:00
|
|
|
|
CheckedChange="_=>OnOptionChange()">
|
|
|
|
|
<span>@option.Label</span>
|
2020-05-28 16:56:52 +08:00
|
|
|
|
</Checkbox>
|
2020-04-24 18:32:50 +08:00
|
|
|
|
}
|
2020-04-23 17:13:56 +08:00
|
|
|
|
}
|
|
|
|
|
@ChildContent
|
|
|
|
|
</div>
|
|
|
|
|
</CascadingValue>
|