2020-06-01 14:09:28 +08:00
|
|
|
|
@namespace AntDesign
|
|
|
|
|
@inherits AntDomComponentBase
|
|
|
|
|
@using AntDesign.Internal;
|
|
|
|
|
|
2021-03-12 17:02:11 +08:00
|
|
|
|
<Row Class="@ClassMapper.Class" Style="@Style" Id="@Id">
|
2020-06-01 14:09:28 +08:00
|
|
|
|
@if (!string.IsNullOrEmpty(Label))
|
|
|
|
|
{
|
2021-03-12 17:02:11 +08:00
|
|
|
|
<AntDesign.Col @attributes="GetLabelColAttributes()" Class=@($"{_prefixCls}-label")>
|
2020-07-13 20:37:06 +08:00
|
|
|
|
<label class=@(Required ? $"{_prefixCls}-required" : _labelCls)> @(Label)</label>
|
2020-06-07 00:47:18 +08:00
|
|
|
|
</AntDesign.Col>
|
2020-06-01 14:09:28 +08:00
|
|
|
|
}
|
2021-03-12 17:02:11 +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>
|