sixue-img-upload
v1.5.0
Published
飞冰系统OSS图片上传组件
Downloads
97
Readme
图片OSS上传 支持拖拽+剪切板上传
sixue-img-upload
飞冰系统OSS图片上传组件
API
| 参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 | |---------------|------------------------------------------------------------------------------------------------------------| ---- |--------| ------ | ---- | | bizKey | 业务标识编码 | true | string | | 根据功能命名:汉语拼音 | | systemName | 系统名称 | true | string | | 系统名称 二级域名前缀 | | fileTypes | 上传文件类型 | false | array | ['png', 'jpg', 'jpeg', 'gif', 'bmp'] | 例如只可上传png格式:['png'] | | fileList | 图片列表 | true | array | | 空列表 [], 回显: [{ id: 0, name: '图片ing', url: 'http://ikongjian.com/images/index/exploration-hall/illustration2.jpg', }, { id: 1, name: '', url: 'http://ikongjian.com/images/index/exploration-hall/illustration3.jpg', }, ] | | setFileList | 图片列表函数 | true | func | | 操控fileList 增删改 | | uploadType | OSS上传类型 | true | number | | OSS存储类型: 1=私有,2=公有,3=私有图片生成缩略图 | | uploadLimit | 上传最大数量 | false | number | 10 | | | uploadSize | 上传文件大小 kb | false | number | 1Mb | | | ossSignature | Oss签名函数 | true | func | | global.ts 内有方法 | | isMultiple | 是否支持多选文件 | false | bool | false | | | isPasteUpload | 是否允许粘贴上传 | false | bool | false | 当模块只存在一个图片上传时手动开启 | | isPreview | 展示模式 | false | bool | false | | | check | 校验宽高 | false | object | | 举例:{ width: 188, height: 160 } | | styles | 生成缩略图的裁剪参数(问好后参数传入里面),https://gosspublic.alicdn.com/image/index.html?spm=a2c4g.11186623.0.0.4f45567aZkUTyp | false | string | | |