Skip to content

Commit b59fce5

Browse files
committed
add off back
1 parent 50bf084 commit b59fce5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rui-vue-image-crop-upload",
3-
"version": "2.5.12",
3+
"version": "2.5.15",
44
"description": "a vue plgin for image upload and crop(vue图片剪裁上传插件)",
55
"main": "upload-2.vue",
66
"scripts": {

upload-2.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ export default {
200200
beforeUpload: {
201201
type: Function,
202202
'default': () => {}
203-
},
204-
cropUploadSuccess: {
205-
type: Function,
206-
'default': () => {}
207203
}
208204
},
209205
data() {
@@ -869,7 +865,7 @@ export default {
869865
function(resData) {
870866
if (that.value) {
871867
that.loading = 2;
872-
that.$emit('crop-upload-success', resData, field, ki, that.reset);
868+
that.$emit('crop-upload-success', resData, field, ki, that.off);
873869
}
874870
},
875871
// 上传失败
@@ -878,7 +874,7 @@ export default {
878874
that.loading = 3;
879875
that.hasError = true;
880876
that.errorMsg = lang.fail;
881-
that.$emit('crop-upload-fail', sts, field, ki, that.reset);
877+
that.$emit('crop-upload-fail', sts, field, ki, that.off);
882878
}
883879
}
884880
);

0 commit comments

Comments
 (0)