2020-07-16 08:56:15 +08:00
|
|
|
|
using System;
|
|
|
|
|
using AntDesign.Forms;
|
2020-06-01 14:09:28 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
|
|
|
|
|
|
|
|
namespace AntDesign.Internal
|
|
|
|
|
{
|
|
|
|
|
public interface IForm
|
|
|
|
|
{
|
|
|
|
|
internal ColLayoutParam WrapperCol { get; }
|
|
|
|
|
|
|
|
|
|
internal ColLayoutParam LabelCol { get; }
|
|
|
|
|
|
2021-04-02 23:13:44 +08:00
|
|
|
|
internal AntLabelAlignType? LabelAlign { get; }
|
|
|
|
|
|
2020-06-01 14:09:28 +08:00
|
|
|
|
internal EditContext EditContext { get; }
|
2020-07-12 00:17:02 +08:00
|
|
|
|
|
2021-05-28 17:08:42 +08:00
|
|
|
|
internal FormValidateMode ValidateMode { get; }
|
|
|
|
|
internal FormValidateErrorMessages ValidateMessages { get; }
|
|
|
|
|
|
2020-06-07 00:47:18 +08:00
|
|
|
|
internal string Size { get; }
|
2020-06-01 14:09:28 +08:00
|
|
|
|
|
|
|
|
|
internal void AddFormItem(IFormItem formItem);
|
|
|
|
|
|
2020-06-02 07:28:06 +08:00
|
|
|
|
internal void AddControl(IControlValueAccessor valueAccessor);
|
2020-06-01 14:09:28 +08:00
|
|
|
|
|
2021-06-24 12:18:18 +08:00
|
|
|
|
internal void RemoveControl(IControlValueAccessor valueAccessor);
|
|
|
|
|
|
2020-12-25 12:51:55 +08:00
|
|
|
|
internal bool ValidateOnChange { get; }
|
|
|
|
|
|
2020-07-16 08:56:15 +08:00
|
|
|
|
event Action<IForm> OnFinishEvent;
|
|
|
|
|
|
2020-07-12 00:17:02 +08:00
|
|
|
|
bool IsModified { get; }
|
|
|
|
|
|
2020-07-16 08:56:15 +08:00
|
|
|
|
string Name { get; }
|
|
|
|
|
object Model { get; }
|
|
|
|
|
|
2020-06-01 14:09:28 +08:00
|
|
|
|
void Reset();
|
2020-06-11 23:11:55 +08:00
|
|
|
|
|
2020-07-16 08:56:15 +08:00
|
|
|
|
void Submit();
|
2020-12-25 12:51:55 +08:00
|
|
|
|
|
2020-06-11 23:11:55 +08:00
|
|
|
|
bool Validate();
|
2020-06-01 14:09:28 +08:00
|
|
|
|
}
|
|
|
|
|
}
|