@v2coding/ui 1.1.2 → 1.1.4
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/v2coding-ui.esm.js +17 -8
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +21 -11
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -4550,11 +4550,15 @@ const Upload$1 = {
|
|
|
4550
4550
|
formData.append(key, value);
|
|
4551
4551
|
});
|
|
4552
4552
|
formData.append(file.filename, file.file);
|
|
4553
|
-
return Axios.getInstance().post(url, formData
|
|
4553
|
+
return Axios.getInstance().post(url, formData, {
|
|
4554
|
+
autoMessage: false
|
|
4555
|
+
});
|
|
4554
4556
|
},
|
|
4555
4557
|
oss: (url, params, file) => {
|
|
4556
4558
|
const getSignature = params => {
|
|
4557
|
-
return Axios.getInstance().post(url, params
|
|
4559
|
+
return Axios.getInstance().post(url, params, {
|
|
4560
|
+
autoMessage: false
|
|
4561
|
+
});
|
|
4558
4562
|
};
|
|
4559
4563
|
|
|
4560
4564
|
return getSignature(params).then(result => {
|
|
@@ -4577,7 +4581,9 @@ const Upload$1 = {
|
|
|
4577
4581
|
data.append('key', dir + fileName); // data.append('Filename', fileName);
|
|
4578
4582
|
|
|
4579
4583
|
data.append('file', file.file);
|
|
4580
|
-
return Axios.getInstance().post(host, data
|
|
4584
|
+
return Axios.getInstance().post(host, data, {
|
|
4585
|
+
autoMessage: false
|
|
4586
|
+
}).then(() => {
|
|
4581
4587
|
return {
|
|
4582
4588
|
success: true,
|
|
4583
4589
|
data: {
|
|
@@ -4590,7 +4596,8 @@ const Upload$1 = {
|
|
|
4590
4596
|
aws: (url, params, file) => {
|
|
4591
4597
|
const getSignature = params => {
|
|
4592
4598
|
return Axios.getInstance().get(url, {
|
|
4593
|
-
params
|
|
4599
|
+
params,
|
|
4600
|
+
autoMessage: false
|
|
4594
4601
|
});
|
|
4595
4602
|
};
|
|
4596
4603
|
|
|
@@ -4606,7 +4613,8 @@ const Upload$1 = {
|
|
|
4606
4613
|
return Axios.getInstance().put(putUrl, file.file, {
|
|
4607
4614
|
headers: {
|
|
4608
4615
|
'Content-Type': 'multipart/form-data'
|
|
4609
|
-
}
|
|
4616
|
+
},
|
|
4617
|
+
autoMessage: false
|
|
4610
4618
|
}).then(() => {
|
|
4611
4619
|
return {
|
|
4612
4620
|
success: true,
|
|
@@ -5024,6 +5032,7 @@ var script$o = {
|
|
|
5024
5032
|
this.handleAttachment(file, url);
|
|
5025
5033
|
}).catch(() => {
|
|
5026
5034
|
this.uploading = false;
|
|
5035
|
+
this.$message.error('上传失败');
|
|
5027
5036
|
});
|
|
5028
5037
|
}
|
|
5029
5038
|
},
|
|
@@ -5138,8 +5147,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5138
5147
|
|
|
5139
5148
|
const __vue_inject_styles__$o = function (inject) {
|
|
5140
5149
|
if (!inject) return;
|
|
5141
|
-
inject("data-v-
|
|
5142
|
-
source: ".ui-file-upload-field[data-v-
|
|
5150
|
+
inject("data-v-9a90eb60_0", {
|
|
5151
|
+
source: ".ui-file-upload-field[data-v-9a90eb60]{width:100%}.ui-file-upload-field .uploader[data-v-9a90eb60]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-9a90eb60] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-9a90eb60] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-9a90eb60]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-9a90eb60]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-9a90eb60]{max-width:100%}.ui-file-upload-field .files .file[data-v-9a90eb60]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;display:grid;grid-template-columns:14px auto 28px;align-items:center;max-width:100%}.ui-file-upload-field .files .file a[data-v-9a90eb60]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-9a90eb60]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-9a90eb60]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-9a90eb60]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-9a90eb60]{color:#409eff;visibility:visible}",
|
|
5143
5152
|
map: undefined,
|
|
5144
5153
|
media: undefined
|
|
5145
5154
|
});
|
|
@@ -5147,7 +5156,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
5147
5156
|
/* scoped */
|
|
5148
5157
|
|
|
5149
5158
|
|
|
5150
|
-
const __vue_scope_id__$o = "data-v-
|
|
5159
|
+
const __vue_scope_id__$o = "data-v-9a90eb60";
|
|
5151
5160
|
/* module identifier */
|
|
5152
5161
|
|
|
5153
5162
|
const __vue_module_identifier__$o = undefined;
|