mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-12 11:55:24 +08:00
78a08fbd3d
* feat(module: input components): support set size by form * fix: rebase conflict Co-authored-by: ElderJames <shunjiey@hotmail.com>
25 lines
879 B
C#
25 lines
879 B
C#
@namespace AntDesign
|
|
@inherits AntDomComponentBase
|
|
@using AntDesign.Internal;
|
|
|
|
<Row class="@ClassMapper.Class" style="@Style" id="@Id">
|
|
@if (!string.IsNullOrEmpty(Label))
|
|
{
|
|
<AntDesign.Col @attributes="GetLabelColAttributes()" class=@($"{_prefixCls}-label")>
|
|
<label class=@(_labelCls)> @(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">
|
|
@ChildContent
|
|
</CascadingValue>
|
|
</div>
|
|
</div>
|
|
@if (_formValidation != null)
|
|
{
|
|
@_formValidation(this);
|
|
}
|
|
</AntDesign.Col>
|
|
</Row> |