mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
75d0d4c569
* feat: autoValidate * refactor * fix comments Co-authored-by: James Yeung <shunjiey@hotmail.com>
37 lines
739 B
C#
37 lines
739 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 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();
|
|
}
|
|
}
|