@v2coding/ui 1.1.11 → 1.1.12
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 +14 -7
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +19 -12
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -4631,7 +4631,7 @@ const Upload$1 = {
|
|
|
4631
4631
|
});
|
|
4632
4632
|
});
|
|
4633
4633
|
},
|
|
4634
|
-
aws: (url, params, file) => {
|
|
4634
|
+
aws: (url, params, file, transformRequest) => {
|
|
4635
4635
|
const getSignature = params => {
|
|
4636
4636
|
return Axios.getInstance().get(url, {
|
|
4637
4637
|
params,
|
|
@@ -4644,10 +4644,16 @@ const Upload$1 = {
|
|
|
4644
4644
|
return result;
|
|
4645
4645
|
}
|
|
4646
4646
|
|
|
4647
|
+
let data = result.data;
|
|
4648
|
+
|
|
4649
|
+
if (typeof transformRequest === 'function') {
|
|
4650
|
+
data = transformRequest(data);
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4647
4653
|
const {
|
|
4648
4654
|
url,
|
|
4649
4655
|
putUrl
|
|
4650
|
-
} =
|
|
4656
|
+
} = data;
|
|
4651
4657
|
return Axios.getInstance().put(putUrl, file.file, {
|
|
4652
4658
|
headers: {
|
|
4653
4659
|
'Content-Type': 'multipart/form-data'
|
|
@@ -4997,7 +5003,8 @@ var script$o = {
|
|
|
4997
5003
|
labelText: {
|
|
4998
5004
|
type: String,
|
|
4999
5005
|
default: '浏览...'
|
|
5000
|
-
}
|
|
5006
|
+
},
|
|
5007
|
+
transformRequest: Function
|
|
5001
5008
|
},
|
|
5002
5009
|
|
|
5003
5010
|
data() {
|
|
@@ -5060,7 +5067,7 @@ var script$o = {
|
|
|
5060
5067
|
}, {
|
|
5061
5068
|
file,
|
|
5062
5069
|
filename: this.filename
|
|
5063
|
-
}).then(result => {
|
|
5070
|
+
}, this.transformRequest).then(result => {
|
|
5064
5071
|
var _result$data;
|
|
5065
5072
|
|
|
5066
5073
|
this.uploading = false;
|
|
@@ -5192,8 +5199,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5192
5199
|
|
|
5193
5200
|
const __vue_inject_styles__$o = function (inject) {
|
|
5194
5201
|
if (!inject) return;
|
|
5195
|
-
inject("data-v-
|
|
5196
|
-
source: ".ui-file-upload-field[data-v-
|
|
5202
|
+
inject("data-v-1da245d4_0", {
|
|
5203
|
+
source: ".ui-file-upload-field[data-v-1da245d4]{width:100%}.ui-file-upload-field .uploader[data-v-1da245d4]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-1da245d4] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-1da245d4] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-1da245d4]{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-1da245d4]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-1da245d4]{max-width:100%}.ui-file-upload-field .files .file[data-v-1da245d4]{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-1da245d4]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-1da245d4]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-1da245d4]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-1da245d4]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-1da245d4]{color:#409eff;visibility:visible}",
|
|
5197
5204
|
map: undefined,
|
|
5198
5205
|
media: undefined
|
|
5199
5206
|
});
|
|
@@ -5201,7 +5208,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
5201
5208
|
/* scoped */
|
|
5202
5209
|
|
|
5203
5210
|
|
|
5204
|
-
const __vue_scope_id__$o = "data-v-
|
|
5211
|
+
const __vue_scope_id__$o = "data-v-1da245d4";
|
|
5205
5212
|
/* module identifier */
|
|
5206
5213
|
|
|
5207
5214
|
const __vue_module_identifier__$o = undefined;
|