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 ~}}