mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-27 01:15:10 +08:00
feat: vben 文件上传
This commit is contained in:
@ -97,9 +97,17 @@ export const createFormSchema: FormSchema[] = [
|
|||||||
#if ($column.htmlType == "input")
|
#if ($column.htmlType == "input")
|
||||||
component: 'Input'
|
component: 'Input'
|
||||||
#elseif($column.htmlType == "imageUpload")## 图片上传
|
#elseif($column.htmlType == "imageUpload")## 图片上传
|
||||||
component: 'Upload'
|
component: 'FileUpload',
|
||||||
|
componentProps: {
|
||||||
|
fileType: 'file',
|
||||||
|
maxCount: 1
|
||||||
|
}
|
||||||
#elseif($column.htmlType == "fileUpload")## 文件上传
|
#elseif($column.htmlType == "fileUpload")## 文件上传
|
||||||
component: 'Upload'
|
component: 'FileUpload',
|
||||||
|
componentProps: {
|
||||||
|
fileType: 'image',
|
||||||
|
maxCount: 1
|
||||||
|
}
|
||||||
#elseif($column.htmlType == "editor")## 文本编辑器
|
#elseif($column.htmlType == "editor")## 文本编辑器
|
||||||
component: 'Editor'
|
component: 'Editor'
|
||||||
#elseif($column.htmlType == "select")## 下拉框
|
#elseif($column.htmlType == "select")## 下拉框
|
||||||
|
Reference in New Issue
Block a user