@v2coding/ui 1.1.11 → 1.1.13
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 -9
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +22 -14
- 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'
|
|
@@ -4699,7 +4705,8 @@ const quillRedefine = config => {
|
|
|
4699
4705
|
type,
|
|
4700
4706
|
filename,
|
|
4701
4707
|
beforeUpload,
|
|
4702
|
-
afterUpload
|
|
4708
|
+
afterUpload,
|
|
4709
|
+
transformRequest
|
|
4703
4710
|
} = upload;
|
|
4704
4711
|
let getUrl = url;
|
|
4705
4712
|
|
|
@@ -4728,7 +4735,7 @@ const quillRedefine = config => {
|
|
|
4728
4735
|
}, {
|
|
4729
4736
|
file,
|
|
4730
4737
|
filename
|
|
4731
|
-
}).then(result => {
|
|
4738
|
+
}, transformRequest).then(result => {
|
|
4732
4739
|
const imageUrl = afterUpload(result);
|
|
4733
4740
|
|
|
4734
4741
|
if (imageUrl) {
|
|
@@ -4997,7 +5004,8 @@ var script$o = {
|
|
|
4997
5004
|
labelText: {
|
|
4998
5005
|
type: String,
|
|
4999
5006
|
default: '浏览...'
|
|
5000
|
-
}
|
|
5007
|
+
},
|
|
5008
|
+
transformRequest: Function
|
|
5001
5009
|
},
|
|
5002
5010
|
|
|
5003
5011
|
data() {
|
|
@@ -5060,7 +5068,7 @@ var script$o = {
|
|
|
5060
5068
|
}, {
|
|
5061
5069
|
file,
|
|
5062
5070
|
filename: this.filename
|
|
5063
|
-
}).then(result => {
|
|
5071
|
+
}, this.transformRequest).then(result => {
|
|
5064
5072
|
var _result$data;
|
|
5065
5073
|
|
|
5066
5074
|
this.uploading = false;
|
|
@@ -5192,8 +5200,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5192
5200
|
|
|
5193
5201
|
const __vue_inject_styles__$o = function (inject) {
|
|
5194
5202
|
if (!inject) return;
|
|
5195
|
-
inject("data-v-
|
|
5196
|
-
source: ".ui-file-upload-field[data-v-
|
|
5203
|
+
inject("data-v-1da245d4_0", {
|
|
5204
|
+
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
5205
|
map: undefined,
|
|
5198
5206
|
media: undefined
|
|
5199
5207
|
});
|
|
@@ -5201,7 +5209,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
5201
5209
|
/* scoped */
|
|
5202
5210
|
|
|
5203
5211
|
|
|
5204
|
-
const __vue_scope_id__$o = "data-v-
|
|
5212
|
+
const __vue_scope_id__$o = "data-v-1da245d4";
|
|
5205
5213
|
/* module identifier */
|
|
5206
5214
|
|
|
5207
5215
|
const __vue_module_identifier__$o = undefined;
|