Commit cb8b82032b6cf5730b5d7bc16e20cca6fd25f4c4

Authored by YunaiV
1 parent 0d149e9a

fix: 修复 Vben5 Schema 生成表单标签宽度不足

三套 Vben5 Schema 模板的普通表单与主子表表单使用固定 120px 标签宽度,保留长字段注释换行及输入控件空间。
同步更新 20 份生成快照,23 项既有生成测试与三端实际生成表单布局验证通过。

经 Codex、GLM5.3、Qwen3.8 Flash、DeepSeek V4.1 Flash 两轮独立评审通过。
Showing 29 changed files with 29 additions and 29 deletions
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/form.vue.vm
@@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({ @@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({
49 class: 'w-full', 49 class: 'w-full',
50 }, 50 },
51 formItemClass: 'col-span-2', 51 formItemClass: 'col-span-2',
52 - labelWidth: 80, 52 + labelWidth: 120,
53 }, 53 },
54 layout: 'horizontal', 54 layout: 'horizontal',
55 schema: useFormSchema(), 55 schema: useFormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/form_sub_erp.vue.vm
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 class: 'w-full', 30 class: 'w-full',
31 }, 31 },
32 formItemClass: 'col-span-2', 32 formItemClass: 'col-span-2',
33 - labelWidth: 80, 33 + labelWidth: 120,
34 }, 34 },
35 layout: 'horizontal', 35 layout: 'horizontal',
36 schema: use${subSimpleClassName}FormSchema(), 36 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/form_sub_normal.vue.vm
@@ -90,7 +90,7 @@ const [Form, formApi] = useVbenForm({ @@ -90,7 +90,7 @@ const [Form, formApi] = useVbenForm({
90 class: 'w-full', 90 class: 'w-full',
91 }, 91 },
92 formItemClass: 'col-span-2', 92 formItemClass: 'col-span-2',
93 - labelWidth: 80, 93 + labelWidth: 120,
94 }, 94 },
95 layout: 'horizontal', 95 layout: 'horizontal',
96 schema: use${subSimpleClassName}FormSchema(), 96 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/form.vue.vm
@@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({ @@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({
49 class: 'w-full', 49 class: 'w-full',
50 }, 50 },
51 formItemClass: 'col-span-2', 51 formItemClass: 'col-span-2',
52 - labelWidth: 80, 52 + labelWidth: 120,
53 }, 53 },
54 layout: 'horizontal', 54 layout: 'horizontal',
55 schema: useFormSchema(), 55 schema: useFormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/form_sub_erp.vue.vm
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 class: 'w-full', 30 class: 'w-full',
31 }, 31 },
32 formItemClass: 'col-span-2', 32 formItemClass: 'col-span-2',
33 - labelWidth: 80, 33 + labelWidth: 120,
34 }, 34 },
35 layout: 'horizontal', 35 layout: 'horizontal',
36 schema: use${subSimpleClassName}FormSchema(), 36 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antdv_next/schema/views/modules/form_sub_normal.vue.vm
@@ -108,7 +108,7 @@ const [Form, formApi] = useVbenForm({ @@ -108,7 +108,7 @@ const [Form, formApi] = useVbenForm({
108 class: 'w-full', 108 class: 'w-full',
109 }, 109 },
110 formItemClass: 'col-span-2', 110 formItemClass: 'col-span-2',
111 - labelWidth: 80, 111 + labelWidth: 120,
112 }, 112 },
113 layout: 'horizontal', 113 layout: 'horizontal',
114 schema: use${subSimpleClassName}FormSchema(), 114 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/form.vue.vm
@@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({ @@ -49,7 +49,7 @@ const [Form, formApi] = useVbenForm({
49 class: 'w-full', 49 class: 'w-full',
50 }, 50 },
51 formItemClass: 'col-span-2', 51 formItemClass: 'col-span-2',
52 - labelWidth: 80, 52 + labelWidth: 120,
53 }, 53 },
54 layout: 'horizontal', 54 layout: 'horizontal',
55 schema: useFormSchema(), 55 schema: useFormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/form_sub_erp.vue.vm
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 class: 'w-full', 32 class: 'w-full',
33 }, 33 },
34 formItemClass: 'col-span-2', 34 formItemClass: 'col-span-2',
35 - labelWidth: 80, 35 + labelWidth: 120,
36 }, 36 },
37 layout: 'horizontal', 37 layout: 'horizontal',
38 schema: use${subSimpleClassName}FormSchema(), 38 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/form_sub_normal.vue.vm
@@ -104,7 +104,7 @@ const [Form, formApi] = useVbenForm({ @@ -104,7 +104,7 @@ const [Form, formApi] = useVbenForm({
104 class: 'w-full', 104 class: 'w-full',
105 }, 105 },
106 formItemClass: 'col-span-2', 106 formItemClass: 'col-span-2',
107 - labelWidth: 80, 107 + labelWidth: 120,
108 }, 108 },
109 layout: 'horizontal', 109 layout: 'horizontal',
110 schema: use${subSimpleClassName}FormSchema(), 110 schema: use${subSimpleClassName}FormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_erp/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_erp/vue/student-contact-form
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 class: 'w-full', 25 class: 'w-full',
26 }, 26 },
27 formItemClass: 'col-span-2', 27 formItemClass: 'col-span-2',
28 - labelWidth: 80, 28 + labelWidth: 120,
29 }, 29 },
30 layout: 'horizontal', 30 layout: 'horizontal',
31 schema: useStudentContactFormSchema(), 31 schema: useStudentContactFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_erp/vue/student-teacher-form
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 class: 'w-full', 25 class: 'w-full',
26 }, 26 },
27 formItemClass: 'col-span-2', 27 formItemClass: 'col-span-2',
28 - labelWidth: 80, 28 + labelWidth: 120,
29 }, 29 },
30 layout: 'horizontal', 30 layout: 'horizontal',
31 schema: useStudentTeacherFormSchema(), 31 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_inner/vue/form
@@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({ @@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({
34 class: 'w-full', 34 class: 'w-full',
35 }, 35 },
36 formItemClass: 'col-span-2', 36 formItemClass: 'col-span-2',
37 - labelWidth: 80, 37 + labelWidth: 120,
38 }, 38 },
39 layout: 'horizontal', 39 layout: 'horizontal',
40 schema: useFormSchema(), 40 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_inner/vue/student-teacher-form
@@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({ @@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({
19 class: 'w-full', 19 class: 'w-full',
20 }, 20 },
21 formItemClass: 'col-span-2', 21 formItemClass: 'col-span-2',
22 - labelWidth: 80, 22 + labelWidth: 120,
23 }, 23 },
24 layout: 'horizontal', 24 layout: 'horizontal',
25 schema: useStudentTeacherFormSchema(), 25 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_normal/vue/form
@@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({ @@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({
34 class: 'w-full', 34 class: 'w-full',
35 }, 35 },
36 formItemClass: 'col-span-2', 36 formItemClass: 'col-span-2',
37 - labelWidth: 80, 37 + labelWidth: 120,
38 }, 38 },
39 layout: 'horizontal', 39 layout: 'horizontal',
40 schema: useFormSchema(), 40 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_master_normal/vue/student-teacher-form
@@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({ @@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({
19 class: 'w-full', 19 class: 'w-full',
20 }, 20 },
21 formItemClass: 'col-span-2', 21 formItemClass: 'col-span-2',
22 - labelWidth: 80, 22 + labelWidth: 120,
23 }, 23 },
24 layout: 'horizontal', 24 layout: 'horizontal',
25 schema: useStudentTeacherFormSchema(), 25 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_one/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_one_importEnable/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_antd_schema_tree/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_erp/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_erp/vue/student-contact-form
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useStudentContactFormSchema(), 33 schema: useStudentContactFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_erp/vue/student-teacher-form
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useStudentTeacherFormSchema(), 33 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_inner/vue/form
@@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({ @@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({
34 class: 'w-full', 34 class: 'w-full',
35 }, 35 },
36 formItemClass: 'col-span-2', 36 formItemClass: 'col-span-2',
37 - labelWidth: 80, 37 + labelWidth: 120,
38 }, 38 },
39 layout: 'horizontal', 39 layout: 'horizontal',
40 schema: useFormSchema(), 40 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_inner/vue/student-teacher-form
@@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({ @@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({
19 class: 'w-full', 19 class: 'w-full',
20 }, 20 },
21 formItemClass: 'col-span-2', 21 formItemClass: 'col-span-2',
22 - labelWidth: 80, 22 + labelWidth: 120,
23 }, 23 },
24 layout: 'horizontal', 24 layout: 'horizontal',
25 schema: useStudentTeacherFormSchema(), 25 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_normal/vue/form
@@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({ @@ -34,7 +34,7 @@ const [Form, formApi] = useVbenForm({
34 class: 'w-full', 34 class: 'w-full',
35 }, 35 },
36 formItemClass: 'col-span-2', 36 formItemClass: 'col-span-2',
37 - labelWidth: 80, 37 + labelWidth: 120,
38 }, 38 },
39 layout: 'horizontal', 39 layout: 'horizontal',
40 schema: useFormSchema(), 40 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_master_normal/vue/student-teacher-form
@@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({ @@ -19,7 +19,7 @@ const [Form, formApi] = useVbenForm({
19 class: 'w-full', 19 class: 'w-full',
20 }, 20 },
21 formItemClass: 'col-span-2', 21 formItemClass: 'col-span-2',
22 - labelWidth: 80, 22 + labelWidth: 120,
23 }, 23 },
24 layout: 'horizontal', 24 layout: 'horizontal',
25 schema: useStudentTeacherFormSchema(), 25 schema: useStudentTeacherFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_one/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_one_importEnable/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),
yudao-module-infra/src/test/resources/codegen/vben5_ele_schema_tree/vue/form
@@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({ @@ -27,7 +27,7 @@ const [Form, formApi] = useVbenForm({
27 class: 'w-full', 27 class: 'w-full',
28 }, 28 },
29 formItemClass: 'col-span-2', 29 formItemClass: 'col-span-2',
30 - labelWidth: 80, 30 + labelWidth: 120,
31 }, 31 },
32 layout: 'horizontal', 32 layout: 'horizontal',
33 schema: useFormSchema(), 33 schema: useFormSchema(),