2.2.3 • Published 3 years ago

vue-plupload v2.2.3

Weekly downloads
56
License
GPL-2.0
Repository
github
Last release
3 years ago

vue-plupload

The plupload wrapper for Vue 2.*。

Example

Please read docs folder, Demo

Usage

  • injectscript, copy the file in dist folder.

  • CommonJS

    • JS:
      var vue = require("vue");
      var VuePluload = require("vue-plupload");
      vue.use(VuePluload);
    • Template:
      <vue-plupload></vue-plupload>
  • 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 button
  • text, the text (value) of the button
  • options, pass to plupload , 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
2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.1.1

4 years ago

2.1.0

5 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago