Browse Source

fix(cli): 修复ModalData.ts多个FormSchema之间未分隔的问题.

pull/779/head
cKey 3 years ago
parent
commit
733b00b0f2
  1. 6
      aspnet-core/modules/cli/LINGYUN.Abp.Cli/LINGYUN/Abp/Cli/UI/Vben/Templates/VbenModelDataScript.tpl

6
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<FormProps> {
return {
{{~ if model.exists_search_models ~}}
labelWidth: 100,
schemas: [
{{~ for searchModel in model.search_models ~}}
@ -16,9 +17,10 @@ export function getSearchFormProps(): Partial<FormProps> {
},
{{~ end ~}}
],
{{~ end ~}}
};
}
{{ end }}
export function getModalFormSchemas(): FormSchema[] {
return [
{{~ for inputModel in model.input_models ~}}

Loading…
Cancel
Save