@cmstops/pro-compo 0.3.92 → 0.3.94

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.
@@ -186,7 +186,9 @@ const _sfc_main = defineComponent({
186
186
  handleUploadCropData(blob, "gif");
187
187
  });
188
188
  } else {
189
- const CroppedCanvas = mosaicObj.value.getCroppedCanvas({});
189
+ const CroppedCanvas = mosaicObj.value.getCroppedCanvas({
190
+ fillColor: "#fff"
191
+ });
190
192
  CroppedCanvas.toBlob(
191
193
  async (blob) => {
192
194
  handleUploadCropData(blob, "png");
@@ -35,10 +35,10 @@ const _sfc_main = defineComponent({
35
35
  const importData = ref({});
36
36
  const importErrorInfo = ref("");
37
37
  const importStep = ref(0);
38
- const fileUrl = ref("");
38
+ const result = ref();
39
39
  function uploadSuccess(e) {
40
40
  const { response } = e;
41
- fileUrl.value = response.message;
41
+ result.value = response;
42
42
  importStep.value = 1;
43
43
  }
44
44
  function uploadChange(e) {
@@ -50,7 +50,7 @@ const _sfc_main = defineComponent({
50
50
  const importStart = async () => {
51
51
  emit(
52
52
  "importStart",
53
- { fileUrl: fileUrl.value },
53
+ { result: result.value },
54
54
  (status, cbInfo) => {
55
55
  if (status === "success") {
56
56
  importData.value = cbInfo.message;
@@ -193,7 +193,9 @@ const _sfc_main = vue.defineComponent({
193
193
  handleUploadCropData(blob, "gif");
194
194
  });
195
195
  } else {
196
- const CroppedCanvas = mosaicObj.value.getCroppedCanvas({});
196
+ const CroppedCanvas = mosaicObj.value.getCroppedCanvas({
197
+ fillColor: "#fff"
198
+ });
197
199
  CroppedCanvas.toBlob(
198
200
  async (blob) => {
199
201
  handleUploadCropData(blob, "png");
@@ -36,10 +36,10 @@ const _sfc_main = vue.defineComponent({
36
36
  const importData = vue.ref({});
37
37
  const importErrorInfo = vue.ref("");
38
38
  const importStep = vue.ref(0);
39
- const fileUrl = vue.ref("");
39
+ const result = vue.ref();
40
40
  function uploadSuccess(e) {
41
41
  const { response } = e;
42
- fileUrl.value = response.message;
42
+ result.value = response;
43
43
  importStep.value = 1;
44
44
  }
45
45
  function uploadChange(e) {
@@ -51,7 +51,7 @@ const _sfc_main = vue.defineComponent({
51
51
  const importStart = async () => {
52
52
  emit(
53
53
  "importStart",
54
- { fileUrl: fileUrl.value },
54
+ { result: result.value },
55
55
  (status, cbInfo) => {
56
56
  if (status === "success") {
57
57
  importData.value = cbInfo.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.92",
3
+ "version": "0.3.94",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",