@adminforth/upload 2.8.4 → 2.8.5
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 +2 -2
- package/custom/uploader.vue +4 -3
- package/dist/custom/uploader.vue +4 -3
- package/package.json +1 -1
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,
|
|
15
|
-
total size is 51,
|
|
14
|
+
sent 51,953 bytes received 134 bytes 104,174.00 bytes/sec
|
|
15
|
+
total size is 51,471 speedup is 0.99
|
package/custom/uploader.vue
CHANGED
|
@@ -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
|
-
|
|
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/dist/custom/uploader.vue
CHANGED
|
@@ -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
|
-
|
|
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`,
|