refactor: 附件上传改为更新后
This commit is contained in:
parent
75d7a607f5
commit
2d58a2172d
@ -87,20 +87,9 @@ const [BasicForm, formApi] = useVbenForm({
|
|||||||
fieldName: 'attachment',
|
fieldName: 'attachment',
|
||||||
component: 'FileUpload',
|
component: 'FileUpload',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
resultField: 'ossId',
|
maxCount: 10,
|
||||||
maxNumber: 10,
|
|
||||||
maxSize: 20,
|
maxSize: 20,
|
||||||
accept: [
|
accept: 'png, jpg, jpeg, doc, docx, xlsx, xls, ppt, pdf',
|
||||||
'png',
|
|
||||||
'jpg',
|
|
||||||
'jpeg',
|
|
||||||
'doc',
|
|
||||||
'docx',
|
|
||||||
'xlsx',
|
|
||||||
'xls',
|
|
||||||
'ppt',
|
|
||||||
'pdf',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
defaultValue: [],
|
defaultValue: [],
|
||||||
label: '附件上传',
|
label: '附件上传',
|
||||||
|
@ -59,20 +59,9 @@ const [BasicForm, formApi] = useVbenForm({
|
|||||||
fieldName: 'attachment',
|
fieldName: 'attachment',
|
||||||
component: 'FileUpload',
|
component: 'FileUpload',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
resultField: 'ossId',
|
maxCount: 10,
|
||||||
maxNumber: 10,
|
|
||||||
maxSize: 20,
|
maxSize: 20,
|
||||||
accept: [
|
accept: 'png, jpg, jpeg, doc, docx, xlsx, xls, ppt, pdf',
|
||||||
'png',
|
|
||||||
'jpg',
|
|
||||||
'jpeg',
|
|
||||||
'doc',
|
|
||||||
'docx',
|
|
||||||
'xlsx',
|
|
||||||
'xls',
|
|
||||||
'ppt',
|
|
||||||
'pdf',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
defaultValue: [],
|
defaultValue: [],
|
||||||
label: '附件上传',
|
label: '附件上传',
|
||||||
|
@ -54,20 +54,9 @@ const [BasicForm, formApi] = useVbenForm({
|
|||||||
fieldName: 'attachment',
|
fieldName: 'attachment',
|
||||||
component: 'FileUpload',
|
component: 'FileUpload',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
resultField: 'ossId',
|
maxCount: 10,
|
||||||
maxNumber: 10,
|
|
||||||
maxSize: 20,
|
maxSize: 20,
|
||||||
accept: [
|
accept: 'png, jpg, jpeg, doc, docx, xlsx, xls, ppt, pdf',
|
||||||
'png',
|
|
||||||
'jpg',
|
|
||||||
'jpeg',
|
|
||||||
'doc',
|
|
||||||
'docx',
|
|
||||||
'xlsx',
|
|
||||||
'xls',
|
|
||||||
'ppt',
|
|
||||||
'pdf',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
defaultValue: [],
|
defaultValue: [],
|
||||||
label: '附件上传',
|
label: '附件上传',
|
||||||
|
Loading…
Reference in New Issue
Block a user