From 733b00b0f2a7050b56e26acf983ea13c91d765ad Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Sat, 18 Feb 2023 13:46:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli):=20=E4=BF=AE=E5=A4=8DModalData.ts?= =?UTF-8?q?=E5=A4=9A=E4=B8=AAFormSchema=E4=B9=8B=E9=97=B4=E6=9C=AA?= =?UTF-8?q?=E5=88=86=E9=9A=94=E7=9A=84=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl b/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl index b3d633c01..0cdc404e3 100644 --- a/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl +++ b/aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl @@ -2,9 +2,10 @@ import { FormProps, FormSchema } from '/@/components/Form'; const { L } = useLocalization(['{{model.remote_service}}', 'AbpUi']); -{{ if model.exists_search_models }} + export function getSearchFormProps(): Partial { return { + {{~ if model.exists_search_models ~}} labelWidth: 100, schemas: [ {{~ for searchModel in model.search_models ~}} @@ -16,9 +17,10 @@ export function getSearchFormProps(): Partial { }, {{~ end ~}} ], + {{~ end ~}} }; } -{{ end }} + export function getModalFormSchemas(): FormSchema[] { return [ {{~ for inputModel in model.input_models ~}}