vue-image-crop-upload
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -11,4 +11,6 @@ import 'babel-polyfill'; | ||
show2: false, | ||
show3: false, | ||
avatarUrl1: null, | ||
avatarUrl2: null, | ||
avatarUrl3: null, | ||
otherParams: { | ||
@@ -34,7 +36,13 @@ token: '123456798', | ||
}, | ||
toggleShow3() { | ||
let {show3} = this; | ||
this.show3 = !show3; | ||
}, | ||
cropSuccess(data, field, key) { | ||
if (field == 'avatar1') { | ||
this.avatarUrl1 = data; | ||
} else if(field == 'avatar2') { | ||
this.avatarUrl2 = data; | ||
} else { | ||
this.avatarUrl2 = data; | ||
this.avatarUrl3 = data; | ||
} | ||
@@ -41,0 +49,0 @@ }, |
@@ -10,4 +10,6 @@ import 'babel-polyfill'; | ||
show2: false, | ||
show3: false, | ||
avatarUrl1: null, | ||
avatarUrl2: null, | ||
avatarUrl3: null, | ||
otherParams: { | ||
@@ -29,2 +31,6 @@ token: '123456798', | ||
this.show2 = !show2; | ||
}, | ||
toggleShow3() { | ||
let {show3} = this; | ||
this.show3 = !show3; | ||
} | ||
@@ -36,4 +42,6 @@ }, | ||
this.avatarUrl1 = data; | ||
} else if(field == 'avatar2') { | ||
this.avatarUrl2 = data; | ||
} else { | ||
this.avatarUrl2 = data; | ||
this.avatarUrl3 = data; | ||
} | ||
@@ -40,0 +48,0 @@ }, |
{ | ||
"name": "vue-image-crop-upload", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)", | ||
@@ -5,0 +5,0 @@ "main": "upload.vue", |
@@ -17,3 +17,3 @@ # vue-image-crop-upload | ||
- Added the Russian language pack (thanks @bigperson) | ||
- Added a new Props: "headers" (Used to set the send header) | ||
- Added a new Props: "headers" (Used to set the POST request header) | ||
@@ -142,3 +142,3 @@ #### @1.2.0 | ||
:params="params" | ||
:params="headers" | ||
:headers="headers" | ||
lang-type="en" | ||
@@ -228,3 +228,3 @@ :value.sync="show" | ||
:params="params" | ||
:params="headers" | ||
:headers="headers" | ||
img-format="png"></my-upload> | ||
@@ -426,3 +426,3 @@ <img :src="imgDataUrl"> | ||
:params="params" | ||
:params="headers" | ||
:headers="headers" | ||
:value.sync="show" | ||
@@ -511,3 +511,3 @@ img-format="png"></my-upload> | ||
:params="params" | ||
:params="headers" | ||
:headers="headers" | ||
img-format="png"></my-upload> | ||
@@ -514,0 +514,0 @@ <img :src="imgDataUrl"> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1612405
38223