@newview/file-ui 1.1.29 → 1.1.31
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/README.md +3 -0
- package/dist/file-ui.js +6 -9
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/file-ui.js
CHANGED
|
@@ -291,7 +291,7 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
|
|
|
291
291
|
__publicField(this, "uploading", ref(false));
|
|
292
292
|
__publicField(this, "uploadFilePos", reactive({}));
|
|
293
293
|
// 文件上传参数
|
|
294
|
-
__publicField(this, "action", ref(""));
|
|
294
|
+
__publicField(this, "action", ref("/FileServiceApi/Upload/file"));
|
|
295
295
|
// 请求 Url
|
|
296
296
|
__publicField(this, "headers", ref({
|
|
297
297
|
Authorization: ""
|
|
@@ -575,7 +575,7 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
|
|
|
575
575
|
this.setCurrentToken();
|
|
576
576
|
this.setUploadFilePos();
|
|
577
577
|
this.headers.value.Authorization = `Bearer ${this.storageInfo.getToken()}`;
|
|
578
|
-
this.action.value
|
|
578
|
+
console.log("上传地址", this.action.value);
|
|
579
579
|
}
|
|
580
580
|
/**
|
|
581
581
|
* 设置当前Token
|
|
@@ -19230,7 +19230,7 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
19230
19230
|
__publicField(this, "uploading", ref(false));
|
|
19231
19231
|
__publicField(this, "uploadFilePos", reactive({}));
|
|
19232
19232
|
// 文件上传参数
|
|
19233
|
-
__publicField(this, "action", ref(""));
|
|
19233
|
+
__publicField(this, "action", ref("/FileServiceApi/Upload/file"));
|
|
19234
19234
|
// 请求 Url
|
|
19235
19235
|
__publicField(this, "headers", ref({
|
|
19236
19236
|
Authorization: ""
|
|
@@ -19508,8 +19508,7 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
19508
19508
|
});
|
|
19509
19509
|
this.setCurrentToken();
|
|
19510
19510
|
this.setUploadFilePos();
|
|
19511
|
-
|
|
19512
|
-
this.action.value = this.uploadApi.getUploadFileUrl();
|
|
19511
|
+
console.log("上传地址", this.action.value);
|
|
19513
19512
|
}
|
|
19514
19513
|
/**
|
|
19515
19514
|
* 设置当前Token
|
|
@@ -19793,10 +19792,8 @@ class ComFormInstance extends BaseInstance {
|
|
|
19793
19792
|
* @param item
|
|
19794
19793
|
* @param data
|
|
19795
19794
|
*/
|
|
19796
|
-
__publicField(this, "signOnSuccess", (item,
|
|
19797
|
-
|
|
19798
|
-
this.props.formModel[item.model] = result;
|
|
19799
|
-
(_a = item.signProp) == null ? void 0 : _a.onSignSuccess({ result, img });
|
|
19795
|
+
__publicField(this, "signOnSuccess", (item, data) => {
|
|
19796
|
+
this.props.formModel[item.model] = data;
|
|
19800
19797
|
});
|
|
19801
19798
|
this.props = props;
|
|
19802
19799
|
this.ctx = ctx;
|