🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vue-upload-picture

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-upload-picture

A Vue.js project

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-upload-picture

A plug-in for uploading pictures based on Vue

Build Setup

install

npm install vue-upload-picture --save

or yarn add vue-upload-picture

使用组件必须传递的参数 options

参数字段类型默认值
是否显示进度条showProgressBooleanstrue
是否预览图片imagePreviewBooleanstrue
上传的接口链接urlstring
图片名称fileUploadNamestring
图片大小limitSizenumber
options:{
   showProgress: true,
   imagePreview: true,
   url: "str",
   fileUploadName: "ajax-upload",//后台采用什么名字就传递什么名字
   limitSize: 1//限制图片上传的大小
}
# 组件的使用方法
 <hupload :options="options" v-on:receiveUploadMsg="receiveUploadMsg"></hupload>


# js 接受的信息判断
methods:{
  receiveUploadMsg(msg){
    //msg....
  }
}

FAQs

Package last updated on 09 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts