Просмотр исходного кода

feat:【infra】代码生成:vben5 + ele 模版中,DatePicker 增加 class: '!w-full' 保证宽度

YunaiV месяцев назад: 6
Родитель
Сommit
1a7a21826b

+ 3 - 0
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/data.ts.vm

@@ -114,6 +114,7 @@ export function useFormSchema(): VbenFormSchema[] {
         showTime: true,
         format: 'YYYY-MM-DD HH:mm:ss',
         valueFormat: 'x',
+        class: '!w-full',
       },
   #elseif($column.htmlType == "textarea")## 文本域
       component: 'Textarea',
@@ -317,6 +318,7 @@ export function use${subSimpleClassName}FormSchema(): VbenFormSchema[] {
                                     showTime: true,
                                     format: 'YYYY-MM-DD HH:mm:ss',
                                     valueFormat: 'x',
+                                    class: '!w-full',
                                 },
                             #elseif($column.htmlType == "textarea")## 文本域
                                 component: 'Textarea',
@@ -552,6 +554,7 @@ export function use${subSimpleClassName}GridColumns(): VxeTableGridOptions<${api
                                         showTime: true,
                                         format: 'YYYY-MM-DD HH:mm:ss',
                                         valueFormat: 'x',
+                                        class: '!w-full',
                                     },
                                 #elseif($column.htmlType == "textarea")## 文本域
                                     component: 'Textarea',