1.0.3 • Published 7 years ago

img-upload-vue2 v1.0.3

Weekly downloads
3
License
-
Repository
-
Last release
7 years ago

img-upload-vue2

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run e2e tests
npm run e2e

# run all tests
npm test

结合腾讯云cos开发的接口,进行图片上传,回调;图片种类为png/jpeg/jpg

install & Useage

  • As global component import Vue from 'vue' import uploadImg from 'uploadImg' Vue.component('uploadImg',uploadImg)

  • As partial component // in some component import uploadImg from 'uploadImg' export default { components: { uploadImg } }

Sample

Props

NameTypeDescriptionOptional valueDefault
url——
savePathString/temp/pi/
imgWidthString>=200px260px
imgHeightString>=120px150px

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago