diff --git a/apps/web-antd/src/views/infra/codegen/components/BasicInfoForm.vue b/apps/web-antd/src/views/infra/codegen/components/BasicInfoForm.vue
deleted file mode 100644
index c5af46640..000000000
--- a/apps/web-antd/src/views/infra/codegen/components/BasicInfoForm.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
diff --git a/apps/web-antd/src/views/infra/codegen/data.ts b/apps/web-antd/src/views/infra/codegen/data.ts
index 3dc1f76a6..8accef7db 100644
--- a/apps/web-antd/src/views/infra/codegen/data.ts
+++ b/apps/web-antd/src/views/infra/codegen/data.ts
@@ -49,6 +49,59 @@ export function useImportTableFormSchema(
];
}
+/** 基本信息表单的 schema */
+export function useBasicInfoFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'tableName',
+ label: '表名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入仓库名称',
+ },
+ rules: 'required',
+ },
+ {
+ fieldName: 'tableComment',
+ label: '表描述',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入',
+ },
+ rules: 'required',
+ },
+ {
+ fieldName: 'className',
+ label: '实体类名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入',
+ },
+ rules: 'required',
+ help: '默认去除表名的前缀。如果存在重复,则需要手动添加前缀,避免 MyBatis 报 Alias 重复的问题。',
+ },
+ {
+ fieldName: 'author',
+ label: '作者',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入',
+ },
+ rules: 'required',
+ },
+ {
+ fieldName: 'remark',
+ label: '备注',
+ component: 'Textarea',
+ componentProps: {
+ rows: 3,
+ },
+ // 使用Tailwind的col-span-2让元素跨越两列
+ formItemClass: 'md:col-span-2',
+ },
+ ];
+}
+
/** 列表的搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
return [
diff --git a/apps/web-antd/src/views/infra/codegen/modules/basic-info.vue b/apps/web-antd/src/views/infra/codegen/modules/basic-info.vue
new file mode 100644
index 000000000..0ad411bcf
--- /dev/null
+++ b/apps/web-antd/src/views/infra/codegen/modules/basic-info.vue
@@ -0,0 +1,42 @@
+
+
+
+