mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 09:21:24 +08:00
b68e70fd76
* feat: Form lable supports left alignment * Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs * Delete Col.razor.cs * no message * PR:1292 * typo LabelAlign * add the property in Col instead FormItem * clean code Co-authored-by: James Yeung <shunjiey@hotmail.com>
39 lines
796 B
C#
39 lines
796 B
C#
using System;
|
|
using AntDesign.Forms;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
|
|
namespace AntDesign.Internal
|
|
{
|
|
public interface IForm
|
|
{
|
|
internal ColLayoutParam WrapperCol { get; }
|
|
|
|
internal ColLayoutParam LabelCol { get; }
|
|
|
|
internal AntLabelAlignType? LabelAlign { get; }
|
|
|
|
internal EditContext EditContext { get; }
|
|
|
|
internal string Size { get; }
|
|
|
|
internal void AddFormItem(IFormItem formItem);
|
|
|
|
internal void AddControl(IControlValueAccessor valueAccessor);
|
|
|
|
internal bool ValidateOnChange { get; }
|
|
|
|
event Action<IForm> OnFinishEvent;
|
|
|
|
bool IsModified { get; }
|
|
|
|
string Name { get; }
|
|
object Model { get; }
|
|
|
|
void Reset();
|
|
|
|
void Submit();
|
|
|
|
bool Validate();
|
|
}
|
|
}
|