feat(maxsize): 最大文件体积
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
:max-size="20"
|
||||
:file-name="allName[`${row.id}`]"
|
||||
:request="request"
|
||||
:maxsize="maxsize"
|
||||
@on-change="$event => onChange($event, row.id)"
|
||||
@on-success="$event => onSuccess($event, row, $index)"
|
||||
@on-error="onError(row.id)"
|
||||
@ -100,6 +101,8 @@ const props = withDefaults(defineProps<{
|
||||
hideActions?: boolean
|
||||
/** 文件上传的请求函数 */
|
||||
request?: (formData: FormData) => Promise<FileVO>
|
||||
/** 最大上传大小(Mb) */
|
||||
maxsize?: number
|
||||
}>(), {
|
||||
accept: '.jpeg,.jpg,.png,.bmp',
|
||||
addText: '新增一行',
|
||||
|
Reference in New Issue
Block a user