2020-06-01 14:09:28 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
@using AntDesign.Internal;
|
|
|
|
|
|
2020-06-07 00:47:18 +08:00
|
|
|
|
<Row class="@ClassMapper.Class" style="@Style" id="@Id">
|
2021-04-02 23:10:37 +08:00
|
|
|
|
@if (!string.IsNullOrEmpty(Label) || LabelTemplate != null)
|
2020-06-01 14:09:28 +08:00
|
|
|
|
{
|
2020-06-07 00:47:18 +08:00
|
|
|
|
<AntDesign.Col @attributes="GetLabelColAttributes()" class=@($"{_prefixCls}-label")>
|
2021-04-02 23:10:37 +08:00
|
|
|
|
@if (LabelTemplate != null)
|
|
|
|
|
{
|
|
|
|
|
@LabelTemplate
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<label class=@GetLabelClass()>@(Label)</label>
|
|
|
|
|
}
|
2020-06-07 00:47:18 +08:00
|
|
|
|
</AntDesign.Col>
|
2020-06-01 14:09:28 +08:00
|
|
|
|
}
|
2020-06-07 00:47:18 +08:00
|
|
|
|
<AntDesign.Col @attributes="GetWrapperColAttributes()" class=@($"{_prefixCls}-control")>
|
2020-06-01 14:09:28 +08:00
|
|
|
|
<div class=@($"{_prefixCls}-control-input")>
|
|
|
|
|
<div class=@($"{_prefixCls}-control-input-content")>
|
2021-01-21 17:20:10 +08:00
|
|
|
|
<CascadingValue Value="this" Name="FormItem" TValue="IFormItem" IsFixed="@true">
|
2020-06-01 14:09:28 +08:00
|
|
|
|
@ChildContent
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-06-25 19:23:16 +08:00
|
|
|
|
@_formValidationMessages
|
2020-06-07 00:47:18 +08:00
|
|
|
|
</AntDesign.Col>
|
|
|
|
|
</Row>
|