Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Add uploadFile argument to onUpload & onCropper callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ycs77 committed Nov 20, 2020
1 parent 265148b commit 954e43f
Show file tree
Hide file tree
Showing 7 changed files with 276 additions and 257 deletions.
23 changes: 13 additions & 10 deletions README.md
Expand Up @@ -242,31 +242,27 @@ Define the confirm mode modal cancel button text.
#### onOpen

* Type: `Function`
* Default: `null`

Is open modal callback.


#### onClose

* Type: `Function`
* Default: `null`

Is close modal callback.


#### onOk

* Type: `Function`
* Default: `null`

Is ok callback.


#### onCancel

* Type: `Function`
* Default: `null`

Is cancel callback.

Expand Down Expand Up @@ -380,23 +376,20 @@ Define the upload config.
#### success

* Type: `Function`
* Default: `null`

Is upload success callback.


#### error

* Type: `Function`
* Default: `null`

Is upload error callback.


#### axios

* Type: `Function`
* Default: `null`

If ajax function use axios, input axios instance.

Expand All @@ -412,22 +405,32 @@ The axios successful return data is `res` or `res.data`.
#### onUpload

* Type: `Function`
* Default: `null`

Is upload callback.

```js
function (uploadFile) {
console.log(uploadFile);
}
```


#### onUploadError

* Type: `Function`
* Default: `null`

Is uploadError callback.


#### onCropper

* Type: `Function`
* Default: `null`

```js
function (imgDataURL, imgBlob, uploadFile) {
$('#cropedUploadImageBox').show();
$('#cropedUploadImage').attr('src', imgDataURL);
}
```

Is cropper callback.

0 comments on commit 954e43f

Please sign in to comment.