截图后粘贴、拖拽和点击上传预览,图片压缩。
dxc-upload
截图后粘贴、拖拽和点击上传预览,图片压缩。
installnpm install dxc-upload --save
Development
npm install
npm start
Example
http://github.dxcweb.com/dxc-upload/
APIName | Type | Default | Description |
---|---|---|---|
paste | Bool | true | 是否支持粘贴 |
drop | Bool | true | 是否支持拖拽 |
domain | String | document | 域 document或者self 指drop或paste在什么域上 |
multiple | Bool | false | input multiple 属性 |
accept | String | image/png,image/gif,image/jpeg | 允许上传文件类型 |
onError | Function | null | 类型错误时调用参数(msg) |
onChange | Function | null | 输入参数files |
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。