diff --git a/src/pages/tool/gen/components/GenInfoForm.tsx b/src/pages/tool/gen/components/GenInfoForm.tsx index 45469c4f..a174e4db 100644 --- a/src/pages/tool/gen/components/GenInfoForm.tsx +++ b/src/pages/tool/gen/components/GenInfoForm.tsx @@ -47,25 +47,6 @@ export default function GenInfoForm({ form, columns, menuOptions }: GenInfoFormP /> - - - 前端模板{' '} - - - - - } - rules={[ - { required: true, message: '请选择前端模板' }, - { pattern: /^[A-Za-z0-9_-]+$/, message: '仅支持字母、数字、下划线和中划线' } - ]} - > - - - @@ -98,89 +79,131 @@ export default function GenInfoForm({ form, columns, menuOptions }: GenInfoFormP /> + + + 前端模板{' '} + + + + + } + rules={[ + { required: true, message: '请选择前端模板' }, + { pattern: /^[A-Za-z0-9_-]+$/, message: '仅支持字母、数字、下划线和中划线' } + ]} + > + + + +

增强选项

- - - - + + + + + + + + - - - !checked && form.setFieldValue('statusField', '')} /> - + + + + + + !checked && form.setFieldValue('statusField', '')} /> + + + {enableStatus && ( + + + - - - )} - - - !checked && form.setFieldValue('uniqueFields', [])} /> - + + + + + + !checked && form.setFieldValue('uniqueFields', [])} /> + + + {enableUnique && ( + + + - - - )} - - - !checked && form.setFieldValue('sortField', '')} /> - + + + + + + !checked && form.setFieldValue('sortField', '')} /> + + + {enableSort && ( + + + - - - )} {tplCategory === 'tree' && ( - - - - - - - - - - - - - - - - - + <> +

其他信息

+ + + + + + + + + + + + + + + + + + )} );