From 32bdc20a4b498ea7c0c5ac746647ef4d74d62807 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 22 Apr 2025 16:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91INFRA=EF=BC=9A=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=20v?= =?UTF-8?q?ben5=20schema=20data.ts=20=E6=A8=A1=E7=89=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vue3_vben5_antd/schema/views/data.ts.vm | 32 +++---------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm index 7e5681aa73..33e6d9e782 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben5_antd/schema/views/data.ts.vm @@ -75,18 +75,10 @@ export function useFormSchema(): VbenFormSchema[] { componentProps: { placeholder: '请输入${comment}', }, - #elseif($column.htmlType == "imageUpload")## 图片上传 TODO @puhui999:目前分成了图片和文件上传,可以不用 fileType 之类哈,可以用下; - component: 'FileUpload', - componentProps: { - fileType: 'image', - maxCount: 1, - }, + #elseif($column.htmlType == "imageUpload")## 图片上传 + component: 'ImageUpload', #elseif($column.htmlType == "fileUpload")## 文件上传 component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1, - }, #elseif($column.htmlType == "editor")## 文本编辑器 component: 'RichTextarea', #elseif($column.htmlType == "select")## 下拉框 @@ -320,17 +312,9 @@ export function use${subSimpleClassName}FormSchema(): VbenFormSchema[] { placeholder: '请输入${comment}', }, #elseif($column.htmlType == "imageUpload")## 图片上传 - component: 'FileUpload', - componentProps: { - fileType: 'image', - maxCount: 1, - }, + component: 'ImageUpload', #elseif($column.htmlType == "fileUpload")## 文件上传 component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1, - }, #elseif($column.htmlType == "editor")## 文本编辑器 component: 'RichTextarea', #elseif($column.htmlType == "select")## 下拉框 @@ -603,17 +587,9 @@ export function use${subSimpleClassName}GridColumns( placeholder: '请输入${comment}', }, #elseif($column.htmlType == "imageUpload")## 图片上传 - component: 'FileUpload', - componentProps: { - fileType: 'image', - maxCount: 1, - }, + component: 'ImageUpload', #elseif($column.htmlType == "fileUpload")## 文件上传 component: 'FileUpload', - componentProps: { - fileType: 'file', - maxCount: 1, - }, #elseif($column.htmlType == "editor")## 文本编辑器 component: 'RichTextarea', #elseif($column.htmlType == "select")## 下拉框