Skip to content

上传(Upload)

组件标识

component: 'Upload'

componentProps

参数名类型说明
disabledboolean是否禁用
actionstring上传接口地址
namestring文件字段名
headersRecord<string, any>请求头
dataRecord<string, any>额外请求参数
withCredentialsboolean是否携带 Cookie
multipleboolean是否支持多选
acceptstring可接受文件类型
btnTextstring上传按钮文本
tipstring上传提示文案
limitnumber最大上传数量
dragboolean是否启用拖拽上传
showFileListboolean是否显示文件列表
listType'text' | 'picture' | 'picture-card'列表展示类型
onChange(fileList: any[]) => void文件列表变化回调
styleRecord<string, any>自定义样式