mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
527f39456b
Co-authored-by: Leishi <lluo@octet.com>
29 lines
1010 B
C#
29 lines
1010 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
@using AntDesign.Internal;
|
|
|
|
<Row class="@ClassMapper.Class" style="@Style" id="@Id">
|
|
@if (!string.IsNullOrEmpty(Label) || LabelTemplate != null)
|
|
{
|
|
<AntDesign.Col @attributes="GetLabelColAttributes()" class=@($"{_prefixCls}-label")>
|
|
@if (LabelTemplate != null)
|
|
{
|
|
@LabelTemplate
|
|
}
|
|
else
|
|
{
|
|
<label class=@GetLabelClass()>@(Label)</label>
|
|
}
|
|
</AntDesign.Col>
|
|
}
|
|
<AntDesign.Col @attributes="GetWrapperColAttributes()" class=@($"{_prefixCls}-control")>
|
|
<div class=@($"{_prefixCls}-control-input")>
|
|
<div class=@($"{_prefixCls}-control-input-content")>
|
|
<CascadingValue Value="this" Name="FormItem" TValue="IFormItem" IsFixed="@true">
|
|
@ChildContent
|
|
</CascadingValue>
|
|
</div>
|
|
</div>
|
|
@_formValidationMessages
|
|
</AntDesign.Col>
|
|
</Row> |