vue-plupload
v2.2.3
Published
plupload wrapper for vue
Downloads
64
Readme
vue-plupload
The plupload wrapper for Vue 2.*。
Example
Please read docs
folder, Demo
Usage
inject
script
, copy the file indist
folder.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>
Options
className
, the classname of the buttontext
, the text (value) of the buttonoptions
, pass toplupload
, doc:http://www.plupload.com/docs/v2/Uploader
options:
browse_button
,PostInit
,FilesAdded
,UploadProgress
,FileUploaded
,Error
can not been overrider.
事件
The component will throw events of plupload
, mapping as below:
init
=>PostInit
added
=>FilesAdded
progress
=>UploadProgress
uploaded
=>FileUploaded
error
=>Error