2.2.3 • Published 4 years ago
vue-plupload v2.2.3
vue-plupload
The plupload wrapper for Vue 2.*。
Example
Please read docs folder, Demo
Usage
inject
script, copy the file indistfolder.CommonJS- JS:
var vue = require("vue"); var VuePluload = require("vue-plupload"); vue.use(VuePluload); - Template:
<vue-plupload></vue-plupload>
- JS:
RequireJS- config:
requirejs.config({ "vue-plupload": "the/path/of/your/vue-plupload" }) - JS:
require(["vue", "vue-plupload"], function(Vue, VuePlupload){ Vue.use(VuePlupload); }) - Template:
<vue-plupload></vue-plupload>
- config:
Options
className, the classname of the buttontext, the text (value) of the buttonoptions, pass toplupload, doc:http://www.plupload.com/docs/v2/Uploaderoptions:
browse_button,PostInit,FilesAdded,UploadProgress,FileUploaded,Errorcan not been overrider.
事件
The component will throw events of plupload, mapping as below:
init=>PostInitadded=>FilesAddedprogress=>UploadProgressuploaded=>FileUploadederror=>Error