File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ Vue component that provides drag and drop images upload with preview.
5252
5353# # Events
5454
55- # ## <b>@change </b>
55+ # ## <b>@changed </b>
5656Fired when new images are added or deleted it always returns uploaded files
5757
5858Template:
5959
6060` ` ` html
61- < UploadImages @change =" handleImages" />
61+ < UploadImages @changed =" handleImages" />
6262` ` `
6363
6464Script:
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default {
6666 deleteImg (index ) {
6767 this .Imgs .splice (index, 1 );
6868 this .files .splice (index, 1 );
69- this .$emit (" change " , this .files );
69+ this .$emit (" changed " , this .files );
7070 this .$refs .uploadInput .value = null ;
7171 },
7272 previewImgs (event ) {
@@ -82,7 +82,7 @@ export default {
8282 }
8383 if (this .dropped == 0 ) this .files .push (... event .currentTarget .files );
8484 this .error = " " ;
85- this .$emit (" change " , this .files );
85+ this .$emit (" changed " , this .files );
8686 let readers = [];
8787 if (! this .files .length ) return ;
8888 for (let i = 0 ; i < this .files .length ; i++ ) {
@@ -96,7 +96,7 @@ export default {
9696 this .$refs .uploadInput .value = null ;
9797 this .Imgs = [];
9898 this .files = [];
99- this .$emit (" change " , this .files );
99+ this .$emit (" changed " , this .files );
100100 },
101101 },
102102};
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-upload-drop-images" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " Vue component that provides drag and drop images upload with preview" ,
55 "main" : " dist/vue-upload-drop-images.vue" ,
66 "repository" : {
You can’t perform that action at this time.
0 commit comments