UNPKG

@websanova/vue-upload

Version:

A simple, light weight and intuitive upload control for Vue.js.

7 lines (6 loc) 519 B
/*! * @websanova/vue-upload v2.4.1 * https://websanova.com/docs/vue-upload * Released under the MIT License. */ !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e.VueUpload=o()}(this,function(){return{call:function(e){var o={};return this.plugins.http(Object.assign({url:e.url,method:e.method||"post",body:e.body,params:"get"===e.method?e.body:null,progress:e.progress,before:function(e){o=e}},e)).then(e.success,e.error),o}}});