Skip to content

Commit 88e3abd

Browse files
committed
add data params
1 parent 6939923 commit 88e3abd

24 files changed

+16
-1503
lines changed

dist/crop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ import GIF_LOADING_SRC from './lib/loading-gif';
133133
import helper from './lib/helper';
134134
import canvasHelper from './lib/canvas-helper';
135135
import ResizeBar from './resize-bar.vue';
136-
import RotateBar from './rotate-bar';
136+
import RotateBar from './rotate-bar.vue';
137137
// set cropbox size in image
138138
const CROPBOX_PERCENT = 75;
139139
const isMobile = helper.isMobile;

dist/lib/resize.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/props.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-core-image-upload.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
},
6565
6666
methods: {
67-
__dispatch(name,res) {
68-
this.$emit && this.$emit(name, res);
67+
__dispatch(name,res, data) {
68+
this.$emit && this.$emit(name, res, data);
6969
},
7070
__find(str) {
7171
let dq = document.querySelector('#vciu-modal-' + this.formID);
@@ -224,7 +224,7 @@
224224
}
225225
self.uploading = false;
226226
self.cancel();
227-
self.__dispatch('imageuploaded',res);
227+
self.__dispatch('imageuploaded',res, self.data);
228228
};
229229
const errorUpload = function(err) {
230230
self.__dispatch('errorhandle', err);

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-core-image-upload",
3-
"version": "2.3.4",
3+
"version": "2.3.6",
44
"description": "a vue plgin for image upload and crop",
55
"main": "dist/vue-core-image-upload.vue",
66
"dependencies": {

site/client/components/doc/cn/CompressImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<script>
2828
29-
import VueCoreImageUpload from '../../../../src/vue-core-image-upload.vue'
29+
import VueCoreImageUpload from 'vue-core-image-upload'
3030
export default {
3131
components: {
3232
VueCoreImageUpload,

site/client/components/doc/en/CropImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</template>
8585

8686
<script>
87-
import VueCoreImageUpload from '../../../../src/vue-core-image-upload';
87+
import VueCoreImageUpload from 'vue-core-image-upload';
8888
8989
export default {
9090
components: {

site/client/components/doc/en/PostData.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export default {
8282
},
8383
8484
methods: {
85-
imageuploaded(res) {
86-
85+
imageuploaded(res, data) {
86+
console.log(data);
8787
}
8888
}
8989
};

0 commit comments

Comments
 (0)