master v2.1.0-beta.3
git 9 years ago
parent 2905fab59a
commit 8a48f091e4

8
dist/example.js vendored

@ -846,7 +846,7 @@
this._uploadEvents('add', file); this._uploadEvents('add', file);
}, },
_uploadEvents: function _uploadEvents(name, file) { _uploadEvents: function _uploadEvents(name, file) {
this.events && this.events[name] && this.events[name](file, this); this.events && this.events[name] && this.events[name].call(this, file, this);
}, },
_drop: function _drop(value) { _drop: function _drop(value) {
if (this.dropElement && this.mode === 'html5') { if (this.dropElement && this.mode === 'html5') {
@ -1351,7 +1351,7 @@
events: { events: {
add: function add(file, component) { add: function add(file, component) {
console.log('add'); console.log('add');
if (this.auto) { if (this.$parent.auto) {
component.active = true; component.active = true;
} }
file.headers['X-Filename'] = encodeURIComponent(file.name); file.headers['X-Filename'] = encodeURIComponent(file.name);
@ -2577,8 +2577,8 @@
if(false) { if(false) {
// When the styles change, update the <style> tags // When the styles change, update the <style> tags
if(!content.locals) { if(!content.locals) {
module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() { module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() {
var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue"); var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent); update(newContent);
}); });

File diff suppressed because one or more lines are too long

@ -857,7 +857,7 @@ return /******/ (function(modules) { // webpackBootstrap
this._uploadEvents('add', file); this._uploadEvents('add', file);
}, },
_uploadEvents: function _uploadEvents(name, file) { _uploadEvents: function _uploadEvents(name, file) {
this.events && this.events[name] && this.events[name](file, this); this.events && this.events[name] && this.events[name].call(this, file, this);
}, },
_drop: function _drop(value) { _drop: function _drop(value) {
if (this.dropElement && this.mode === 'html5') { if (this.dropElement && this.mode === 'html5') {
@ -2491,8 +2491,8 @@ return /******/ (function(modules) { // webpackBootstrap
if(false) { if(false) {
// When the styles change, update the <style> tags // When the styles change, update the <style> tags
if(!content.locals) { if(!content.locals) {
module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() { module.hot.accept("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue", function() {
var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-530f2599!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue"); var newContent = require("!!./../node_modules/css-loader/index.js!./../node_modules/vue-loader/lib/style-rewriter.js?id=data-v-4563ebb1!./../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./FileUpload.vue");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent); update(newContent);
}); });

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
{ {
"name": "vue-upload-component", "name": "vue-upload-component",
"description": "Vue.js file upload component, Support for multiple file uploads, progress, html5, html4, support ie9", "description": "Vue.js file upload component, Support for multiple file uploads, progress, html5, html4, support ie9",
"version": "2.1.0-beta.2", "version": "2.1.0-beta.3",
"author": "LianYue", "author": "LianYue",
"scripts": { "scripts": {
"dev": "webpack-dev-server --inline --hot", "dev": "webpack-dev-server --inline --hot",

@ -249,7 +249,7 @@ export default {
}, },
_uploadEvents(name, file) { _uploadEvents(name, file) {
this.events && this.events[name] && this.events[name](file, this); this.events && this.events[name] && this.events[name].call(this, file, this);
}, },
_drop(value) { _drop(value) {

@ -59,7 +59,7 @@ new Vue({
events: { events: {
add(file, component) { add(file, component) {
console.log('add'); console.log('add');
if (this.auto) { if (this.$parent.auto) {
component.active = true; component.active = true;
} }
file.headers['X-Filename'] = encodeURIComponent(file.name) file.headers['X-Filename'] = encodeURIComponent(file.name)

Loading…
Cancel
Save