bug multiple

1.0 v0.2.2
git 10 years ago
parent 4b79b511f5
commit fb26b47ed3

5
dist/example.js vendored

@ -679,7 +679,7 @@
type: String
},
multiple: {
type: String
type: Boolean
},
timeout: {
type: Number
@ -736,6 +736,9 @@
watch: {
multiple: function multiple(newValue) {
console.log(newValue);
},
drop: function drop(value) {
this._drop(value);
},

File diff suppressed because one or more lines are too long

@ -642,7 +642,7 @@ return /******/ (function(modules) { // webpackBootstrap
type: String
},
multiple: {
type: String
type: Boolean
},
timeout: {
type: Number
@ -699,6 +699,9 @@ return /******/ (function(modules) { // webpackBootstrap
watch: {
multiple: function multiple(newValue) {
console.log(newValue);
},
drop: function drop(value) {
this._drop(value);
},

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

@ -71,7 +71,7 @@
<tbody>
<tr>
<td>
<file-upload title="Add upload files" class="file-upload" name="file" post-action="./post.php" put-action="./put.php" :extensions="extensions" :accept="accept" :multiple="multiple ? 'true' : null" :size="size" v-ref:upload :drop="drop"></file-upload>
<file-upload title="Add upload files" class="file-upload" name="file" post-action="./post.php" put-action="./put.php" :extensions="extensions" :accept="accept" :multiple="multiple" :size="size" v-ref:upload :drop="drop"></file-upload>
</td>
<td>
<button v-if="$refs.upload && $refs.upload.active" type="submit" @click.prevent="$refs.upload.active = !$refs.upload.active">Stop upload</button>

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

@ -73,7 +73,7 @@ export default {
type:String,
},
multiple: {
type:String,
type: Boolean,
},
timeout: {
type: Number,
@ -133,6 +133,9 @@ export default {
},
watch: {
multiple(newValue) {
console.log(newValue);
},
drop(value) {
this._drop(value);
},

Loading…
Cancel
Save