demo/Pages/Form/StepForm/Components/Step2/Step2.razor.cs
2024-06-21 16:48:24 +08:00

31 lines
773 B
C#

using AntDesign;
using antblazorpro.Models;
using Microsoft.AspNetCore.Components;
namespace antblazorpro.Pages.Form
{
public partial class Step2
{
private readonly StepFormModel _model = new StepFormModel();
private readonly FormItemLayout _formLayout = new FormItemLayout
{
WrapperCol = new ColLayoutParam
{
Xs = new EmbeddedProperty { Span = 24, Offset = 0 },
Sm = new EmbeddedProperty { Span = 19, Offset = 5 },
}
};
[CascadingParameter] public StepForm StepForm { get; set; }
public void OnValidateForm()
{
StepForm.Next();
}
public void Preview()
{
StepForm.Prev();
}
}
}