1.0.5 • Published 4 years ago

carmodelcomponents v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

alioss-uploadpictures

npm.io npm.io

Introduction

一个通过传递alioss配置参数即可上传图片的插件。附件功能包括限制图片大小(kb),限制上传张数,压缩图片质量(0-1),以及预览大图。

example

example example example example

Quick start

yarn add alioss-uploadpictures
import Vue from 'vue'
import uploadPictures from 'alioss-uploadpictures'
Vue.use(uploadPictures)

params

```js
//图片数组
imgs: Array,
//oss配置参数
ossconfig:Object,
//压缩质量 0 到 1
quality:{
  type: Number,
  default: 1
},
// 目录
dir:{
  type: String,
  default: ''
},
//限制大小kb
size:{
  type: Number,
  default: 0
},
//限制数量
num:{
  type: Number,
  default: 0
}
```

tips

注意更改成自己的ossconfig ,运行环境依赖vue,不依赖任何ui框架

github

仓库地址

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago