首先,将Abp Dynamic Form (Horizaontal View) Razor Page改为“ABP动态表单(水平视图)Razor页面”。
在ABP应用程序中创建一个新的Razor页面,命名为“DynamicFormHorizontal.cshtml”。
在DynamicFormHorizontal.cshtml中添加以下代码:
@page "/dynamic-form-horizontal"
@using DynamicForm
@using DynamicForm.Fields
@using Microsoft.AspNetCore.Components.Web
@inject IHtmlHelper HtmlHelper
@inject ABP.AspNetCore.UI.Navigation.INavigationManager NavigationManager
@inject IStringLocalizer L
@using Microsoft.AspNetCore.Components.Forms
@using AntDesign
@L["ABP Dynamic Form (Horizaontal View) Razor Page"]
@* Adding the required CSS for Horizontal Form view*@
@* Setting up a Dynamic Form with Horizontal layout*@
@* Adding Form fields*@