31 lines
773 B
C#
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();
|
||
|
}
|
||
|
}
|
||
|
}
|