1.0.8 • Published 6 years ago

uploading-preview-img-bywhj v1.0.8

Weekly downloads
9
License
MIT
Repository
-
Last release
6 years ago

##使用

  • npm i -S uploading-preview-img-bywhj
  • main.js中:
    • import upload from 'uploading-preview-img-bywhj'
    • Vue.use(upload)
  • 在任意组件中写 <upload-view-image></upload-view-image>
  • 引入后查看demo.vue

##备注:

  • @onUpload : onUpload(result) 选完文件以后,返回处理好的base64字符串
  • @formatWrong : formatWrong(errFiles) 选完文件以后,返回格式错误的文件数组集合
  • :multiple 是否支持多选,值为bool
  • :maxWidth 选完图片以后显示的最大图片宽度
  • :quality 图片压缩比
  • :pictureFormat 设置只能传指定格式的文件,是一个数组 如jpeg,gif 只能传gif和jpg格式的文件
  • / 常见的文件格式如下: excle文件:vnd.openxmlformats-officedocument.spreadsheetml.sheet word文件:msword ppt文件:vnd.openxmlformats-officedocument.presentationml.presentation jpg图片:jpeg png图片:png gif图片:gif ico图片:x-icon txt文件:plain html文件:html /
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago