1.1.2 • Published 3 years ago
sixue-upload v1.1.2
Oss上传
sixue-upload
飞冰系统,Oss上传组件
下方参数不明白请查看系统内Dome或咨询张思学
API
| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
|---|---|---|---|---|---|
| type | OSS类型 | true | number | OSS存储类型: 1=私有,2=公有,3=私有图片生成缩略图 | |
| bizKey | 业务标识编码 | true | string | 根据需求填写业务标识,不给找产品要 | |
| systemName | 系统名称 | true | string | 使用系统英文名,例如 'ticket' | |
| OssSignature | 获取Oss签名方法 | true | func | 系统内定义的接口 | |
| file | Upload组件 beforeUpload参数方法的参数 | true | func | const beforeUpload = async (file, uploadOptions) => {} | |
| uploadOptions | beforeUpload参数方法的参数 | true | func | const beforeUpload = async (file, uploadOptions) => {} | |
| styles | 生成缩略图的裁剪参数,https://gosspublic.alicdn.com/image/index.html?spm=a2c4g.11186623.0.0.4f45567aZkUTyp | false | string |