feat: 添加图片上传示例

pull/24/MERGE
xingyu 2023-06-19 17:47:14 +08:00
parent 95bb3a2d28
commit fff07a0cbb
1 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,15 @@ export const formSchema: FormSchema[] = [
required: true,
component: 'Input'
},
{
label: '用户头像',
field: 'avatar',
component: 'FileUpload',
componentProps: {
maxCount: 1,
fileType: 'image'
}
},
{
label: '归属部门',
field: 'deptId',