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">
|
2020-06-01 14:09:28 +08:00
|
|
|
|
@if (!string.IsNullOrEmpty(Label))
|
|
|
|
|
{
|
2020-06-07 00:47:18 +08:00
|
|
|
|
<AntDesign.Col @attributes="GetLabelColAttributes()" class=@($"{_prefixCls}-label")>
|
2020-06-01 14:09:28 +08:00
|
|
|
|
<label class=@(_labelCls)> @(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")>
|
|
|
|
|
<CascadingValue Value="this" Name="FormItem" TValue="IFormItem">
|
|
|
|
|
@ChildContent
|
|
|
|
|
</CascadingValue>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@if (_formValidation != null)
|
|
|
|
|
{
|
|
|
|
|
@_formValidation(this);
|
|
|
|
|
}
|
2020-06-07 00:47:18 +08:00
|
|
|
|
</AntDesign.Col>
|
|
|
|
|
</Row>
|