mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 17:01:18 +08:00
86942d7e18
* fix: invalid type mapping * fix: frequent click results in modal self-closing (#696) * fix(module: radio): the onclick event is repeatedly triggered
21 lines
663 B
C#
21 lines
663 B
C#
@namespace AntDesign
|
|
@typeparam TValue
|
|
@inherits AntDomComponentBase
|
|
|
|
<label @onclick="OnClick" @onclick:preventDefault="true" class="@ClassMapper.Class" style="@Style" id="@Id" @ref="Ref">
|
|
<span class="@RadioClassMapper.Class">
|
|
<input type="radio"
|
|
autofocus="@AutoFocus"
|
|
class="@InputClassMapper.Class"
|
|
disabled="@Disabled"
|
|
checked="@IsChecked"
|
|
name="@_name"
|
|
@bind="@Value"
|
|
@ref="InputRef" />
|
|
<span class="@InnerClassMapper.Class"></span>
|
|
</span>
|
|
@if (ChildContent != null)
|
|
{
|
|
<span>@ChildContent</span>
|
|
}
|
|
</label> |