@adminforth/upload 2.8.4 → 2.8.6

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.
package/build.log CHANGED
@@ -11,5 +11,5 @@ custom/preview.vue
11
11
  custom/tsconfig.json
12
12
  custom/uploader.vue
13
13
 
14
- sent 51,915 bytes received 134 bytes 104,098.00 bytes/sec
15
- total size is 51,426 speedup is 0.99
14
+ sent 51,960 bytes received 134 bytes 104,188.00 bytes/sec
15
+ total size is 51,471 speedup is 0.99
@@ -107,6 +107,7 @@ const uploadedSize = ref(0);
107
107
  const downloadFileUrl = ref('');
108
108
 
109
109
  watch(uploaded, (value) => {
110
+ console.log('Uploaded changed:', value);
110
111
  emit('update:emptiness', !value);
111
112
  });
112
113
 
@@ -185,10 +186,10 @@ onMounted(async () => {
185
186
  }
186
187
  imgPreview.value = resp.url;
187
188
  } else {
188
- imgPreview.value = props.record[previewColumnName];
189
+ imgPreview.value = props.record[previewColumnName];
190
+ uploaded.value = true;
191
+ emit('update:emptiness', false);
189
192
  }
190
- uploaded.value = true;
191
- emit('update:emptiness', false);
192
193
  } else if (!uploaded.value && existingFilePath) {
193
194
  const resp = await callAdminForthApi({
194
195
  path: `/plugin/${props.meta.pluginInstanceId}/get-file-download-url`,
@@ -107,6 +107,7 @@ const uploadedSize = ref(0);
107
107
  const downloadFileUrl = ref('');
108
108
 
109
109
  watch(uploaded, (value) => {
110
+ console.log('Uploaded changed:', value);
110
111
  emit('update:emptiness', !value);
111
112
  });
112
113
 
@@ -185,10 +186,10 @@ onMounted(async () => {
185
186
  }
186
187
  imgPreview.value = resp.url;
187
188
  } else {
188
- imgPreview.value = props.record[previewColumnName];
189
+ imgPreview.value = props.record[previewColumnName];
190
+ uploaded.value = true;
191
+ emit('update:emptiness', false);
189
192
  }
190
- uploaded.value = true;
191
- emit('update:emptiness', false);
192
193
  } else if (!uploaded.value && existingFilePath) {
193
194
  const resp = await callAdminForthApi({
194
195
  path: `/plugin/${props.meta.pluginInstanceId}/get-file-download-url`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.8.4",
3
+ "version": "2.8.6",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/s3-request-presigner": "^3.629.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "adminforth": "^2.13.0-next.51"
27
+ "adminforth": "next"
28
28
  },
29
29
  "keywords": [
30
30
  "adminforth",