Commit 912e18857a1767e5b954ad4c4a62282a1f6fc3c6

Authored by xingyu
1 parent 0b3640a5

feat: vben 文件上传

yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3_vben/views/data.ts.vm
... ... @@ -97,9 +97,17 @@ export const createFormSchema: FormSchema[] = [
97 97 #if ($column.htmlType == "input")
98 98 component: 'Input'
99 99 #elseif($column.htmlType == "imageUpload")## 图片上传
100   - component: 'Upload'
  100 + component: 'FileUpload',
  101 + componentProps: {
  102 + fileType: 'file',
  103 + maxCount: 1
  104 + }
101 105 #elseif($column.htmlType == "fileUpload")## 文件上传
102   - component: 'Upload'
  106 + component: 'FileUpload',
  107 + componentProps: {
  108 + fileType: 'image',
  109 + maxCount: 1
  110 + }
103 111 #elseif($column.htmlType == "editor")## 文本编辑器
104 112 component: 'Editor'
105 113 #elseif($column.htmlType == "select")## 下拉框
... ...