Browse Source

feat: 添加图片上传示例

main
xingyu 2 years ago
parent
commit
fff07a0cbb
  1. 9
      src/views/system/user/user.data.ts

9
src/views/system/user/user.data.ts

@ -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',