bkui-vue 0.0.1-beta.193 → 0.0.1-beta.194
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.umd.js +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -31256,12 +31256,13 @@ var useFileHandler = (props2, hooks) => {
|
|
31256
31256
|
remove(uploadFile);
|
31257
31257
|
}
|
31258
31258
|
}
|
31259
|
-
async function handleError(err, rawFile) {
|
31259
|
+
async function handleError(err, rawFile, res) {
|
31260
31260
|
const file = findFile(rawFile);
|
31261
31261
|
if (!file)
|
31262
31262
|
return;
|
31263
31263
|
file.status = "fail";
|
31264
31264
|
file.statusText = err.message;
|
31265
|
+
file.response = res;
|
31265
31266
|
}
|
31266
31267
|
async function handleSuccess(res, rawFile) {
|
31267
31268
|
const file = findFile(rawFile);
|
@@ -31425,7 +31426,7 @@ var Component$1 = defineComponent({
|
|
31425
31426
|
emit("success", res, file, fileList.value);
|
31426
31427
|
} else {
|
31427
31428
|
const err = new Error((result == null ? void 0 : result.message) || "unknow error");
|
31428
|
-
handleError(err, file);
|
31429
|
+
handleError(err, file, res);
|
31429
31430
|
emit("error", file, fileList.value, err);
|
31430
31431
|
}
|
31431
31432
|
delete requests.value[uid];
|