@v2coding/ui 0.1.12 → 0.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 +16 -12
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +20 -16
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -4310,7 +4310,7 @@ var Upload = {
|
|
|
4310
4310
|
return Axios.getInstance().post(host, data).then(() => {
|
|
4311
4311
|
return {
|
|
4312
4312
|
success: true,
|
|
4313
|
-
|
|
4313
|
+
data: {
|
|
4314
4314
|
url: host + dir + fileName
|
|
4315
4315
|
}
|
|
4316
4316
|
};
|
|
@@ -4425,12 +4425,14 @@ const defaultConfig = {
|
|
|
4425
4425
|
|
|
4426
4426
|
// default:上传至服务器; oss:上传至oss
|
|
4427
4427
|
afterUpload(result) {
|
|
4428
|
-
|
|
4428
|
+
var _result$data;
|
|
4429
|
+
|
|
4430
|
+
if (!(result !== null && result !== void 0 && result.success)) {
|
|
4429
4431
|
Message.error(result.message || '上传错误');
|
|
4430
4432
|
return;
|
|
4431
4433
|
}
|
|
4432
4434
|
|
|
4433
|
-
return result.
|
|
4435
|
+
return result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.url;
|
|
4434
4436
|
},
|
|
4435
4437
|
|
|
4436
4438
|
beforeUpload: () => void 0
|
|
@@ -4525,12 +4527,12 @@ var __vue_staticRenderFns__$p = [];
|
|
|
4525
4527
|
|
|
4526
4528
|
const __vue_inject_styles__$q = function (inject) {
|
|
4527
4529
|
if (!inject) return;
|
|
4528
|
-
inject("data-v-
|
|
4530
|
+
inject("data-v-6d5e5e4c_0", {
|
|
4529
4531
|
source: ".quill-editor .ql-font span[data-value=Arial]::before{content:\"Arial\"!important;font-family:Arial,serif}.quill-editor .ql-font span[data-value=FangSong]::before{content:\"仿宋\"!important;font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font span[data-value=HeiTi]::before{content:\"黑体\"!important;font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font span[data-value=Microsoft]::before{content:\"微软雅黑\"!important;font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}.quill-editor .ql-font-Arial{font-family:Arial,serif}.quill-editor .ql-font-FangSong{font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font-HeiTi{font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font-Microsoft{font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}",
|
|
4530
4532
|
map: undefined,
|
|
4531
4533
|
media: undefined
|
|
4532
|
-
}), inject("data-v-
|
|
4533
|
-
source: ".quill-editor[data-v-
|
|
4534
|
+
}), inject("data-v-6d5e5e4c_1", {
|
|
4535
|
+
source: ".quill-editor[data-v-6d5e5e4c]{width:100%;display:flex;align-items:initial!important;flex-direction:column}.quill-editor .ql-toolbar[data-v-6d5e5e4c]{flex:none}.quill-editor .ql-container[data-v-6d5e5e4c]{flex:auto;height:initial;display:flex;flex-direction:column}.quill-editor .ql-container .ql-editor[data-v-6d5e5e4c]{flex:auto}.quill-editor[data-v-6d5e5e4c] .ql-editor{min-height:200px}",
|
|
4534
4536
|
map: undefined,
|
|
4535
4537
|
media: undefined
|
|
4536
4538
|
});
|
|
@@ -4538,7 +4540,7 @@ const __vue_inject_styles__$q = function (inject) {
|
|
|
4538
4540
|
/* scoped */
|
|
4539
4541
|
|
|
4540
4542
|
|
|
4541
|
-
const __vue_scope_id__$q = "data-v-
|
|
4543
|
+
const __vue_scope_id__$q = "data-v-6d5e5e4c";
|
|
4542
4544
|
/* module identifier */
|
|
4543
4545
|
|
|
4544
4546
|
const __vue_module_identifier__$q = undefined;
|
|
@@ -4686,15 +4688,17 @@ var script$p = {
|
|
|
4686
4688
|
file,
|
|
4687
4689
|
filename: this.filename
|
|
4688
4690
|
}).then(result => {
|
|
4691
|
+
var _result$data;
|
|
4692
|
+
|
|
4689
4693
|
this.uploading = false;
|
|
4690
4694
|
|
|
4691
|
-
if (!result.success) {
|
|
4695
|
+
if (!(result !== null && result !== void 0 && result.success)) {
|
|
4692
4696
|
this.$message.error(result.message || '上传失败');
|
|
4693
4697
|
return;
|
|
4694
4698
|
}
|
|
4695
4699
|
|
|
4696
4700
|
this.$message.success('上传成功');
|
|
4697
|
-
const url = result.
|
|
4701
|
+
const url = result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.url;
|
|
4698
4702
|
this.onChange([...this.pickerValue, url].join(','));
|
|
4699
4703
|
this.$emit('afterUpload', result);
|
|
4700
4704
|
|
|
@@ -4800,8 +4804,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
4800
4804
|
|
|
4801
4805
|
const __vue_inject_styles__$p = function (inject) {
|
|
4802
4806
|
if (!inject) return;
|
|
4803
|
-
inject("data-v-
|
|
4804
|
-
source: ".ui-file-upload-field[data-v-
|
|
4807
|
+
inject("data-v-46b6568f_0", {
|
|
4808
|
+
source: ".ui-file-upload-field[data-v-46b6568f]{width:100%}.ui-file-upload-field .uploader[data-v-46b6568f]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-46b6568f] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-46b6568f] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-46b6568f]{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-46b6568f]:hover{background-color:#0d84ff}.ui-file-upload-field .files .file[data-v-46b6568f]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;line-height:28px;display:flex;align-items:center}.ui-file-upload-field .files .file a[data-v-46b6568f]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-46b6568f]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-46b6568f]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-46b6568f]{color:#409eff}.ui-file-upload-field .files .file:hover .close[data-v-46b6568f]{color:#409eff;visibility:visible}",
|
|
4805
4809
|
map: undefined,
|
|
4806
4810
|
media: undefined
|
|
4807
4811
|
});
|
|
@@ -4809,7 +4813,7 @@ const __vue_inject_styles__$p = function (inject) {
|
|
|
4809
4813
|
/* scoped */
|
|
4810
4814
|
|
|
4811
4815
|
|
|
4812
|
-
const __vue_scope_id__$p = "data-v-
|
|
4816
|
+
const __vue_scope_id__$p = "data-v-46b6568f";
|
|
4813
4817
|
/* module identifier */
|
|
4814
4818
|
|
|
4815
4819
|
const __vue_module_identifier__$p = undefined;
|