renusify 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -84,7 +84,7 @@ export default {
|
|
|
84
84
|
}
|
|
85
85
|
if (typeof this.imgSrc === "string") {
|
|
86
86
|
this.crop(this.imgSrc);
|
|
87
|
-
} else {
|
|
87
|
+
} else if (this.imgSrc) {
|
|
88
88
|
const that = this;
|
|
89
89
|
const reader = new FileReader();
|
|
90
90
|
reader.onload = function (e) {
|
|
@@ -132,6 +132,8 @@ export default {
|
|
|
132
132
|
this.cropped = this.getDataURL();
|
|
133
133
|
if (this.getBlob) {
|
|
134
134
|
this.$emit("cropped", this.get_blob());
|
|
135
|
+
} else {
|
|
136
|
+
this.$emit("cropped", this.cropped);
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
this.show = false;
|
|
@@ -222,8 +224,7 @@ export default {
|
|
|
222
224
|
return canvas.toDataURL("image/png");
|
|
223
225
|
},
|
|
224
226
|
get_blob() {
|
|
225
|
-
let
|
|
226
|
-
let b64 = imageData.replace("data:image/png;base64,", "");
|
|
227
|
+
let b64 = this.cropped.replace("data:image/png;base64,", "");
|
|
227
228
|
let binary = atob(b64);
|
|
228
229
|
let array = [];
|
|
229
230
|
for (let i = 0; i < binary.length; i++) {
|
package/components/index.js
CHANGED
|
@@ -142,7 +142,7 @@ const list = {
|
|
|
142
142
|
'r-progress-line': {'p': 'progress/line.vue', 'c': [], 'd': []},
|
|
143
143
|
'r-search-box': {
|
|
144
144
|
'p': 'searchBox/index.vue',
|
|
145
|
-
'c': ['r-progress-line', 'r-card', 'r-list', 'r-btn', 'r-icon', 'r-select'],
|
|
145
|
+
'c': ['r-progress-line', 'r-card', 'r-list', 'r-btn', 'r-icon', 'r-select-input'],
|
|
146
146
|
'd': ['click-outside']
|
|
147
147
|
},
|
|
148
148
|
'r-skeleton': {'p': 'skeleton/index.vue', 'c': [], 'd': []},
|