@v2coding/ui 1.1.3 → 1.1.5
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 +13 -11
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +21 -18
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -5477,6 +5477,8 @@ var script$o = {
|
|
|
5477
5477
|
_this.handleAttachment(file, url);
|
|
5478
5478
|
}).catch(function () {
|
|
5479
5479
|
_this.uploading = false;
|
|
5480
|
+
|
|
5481
|
+
_this.$message.error('上传失败');
|
|
5480
5482
|
});
|
|
5481
5483
|
}
|
|
5482
5484
|
},
|
|
@@ -5573,8 +5575,8 @@ var __vue_render__$o = function __vue_render__() {
|
|
|
5573
5575
|
class: {
|
|
5574
5576
|
disabled: _vm.uploading
|
|
5575
5577
|
}
|
|
5576
|
-
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-
|
|
5577
|
-
return !!url ? "<div class=\"file\" data-v-
|
|
5578
|
+
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-9a90eb60>" + _vm._ssrList(_vm.pickerValue, function (url, index) {
|
|
5579
|
+
return !!url ? "<div class=\"file\" data-v-9a90eb60><i class=\"el-icon-document\" data-v-9a90eb60> </i> <a" + _vm._ssrAttr("href", url) + " target=\"_blank\"" + _vm._ssrAttr("title", _vm.getFileName(url)) + " data-v-9a90eb60>" + _vm._ssrEscape(_vm._s(_vm.getFileName(url))) + "</a> " + (_vm.hasDeleteBtn ? "<span class=\"close\" data-v-9a90eb60><i class=\"el-icon-close\" data-v-9a90eb60></i></span>" : "<!---->") + "</div>" : "<!---->";
|
|
5578
5580
|
}) + "</div>")], 2);
|
|
5579
5581
|
};
|
|
5580
5582
|
|
|
@@ -5583,8 +5585,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5583
5585
|
|
|
5584
5586
|
var __vue_inject_styles__$o = function __vue_inject_styles__(inject) {
|
|
5585
5587
|
if (!inject) return;
|
|
5586
|
-
inject("data-v-
|
|
5587
|
-
source: ".ui-file-upload-field[data-v-
|
|
5588
|
+
inject("data-v-9a90eb60_0", {
|
|
5589
|
+
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}",
|
|
5588
5590
|
map: undefined,
|
|
5589
5591
|
media: undefined
|
|
5590
5592
|
});
|
|
@@ -5592,10 +5594,10 @@ var __vue_inject_styles__$o = function __vue_inject_styles__(inject) {
|
|
|
5592
5594
|
/* scoped */
|
|
5593
5595
|
|
|
5594
5596
|
|
|
5595
|
-
var __vue_scope_id__$o = "data-v-
|
|
5597
|
+
var __vue_scope_id__$o = "data-v-9a90eb60";
|
|
5596
5598
|
/* module identifier */
|
|
5597
5599
|
|
|
5598
|
-
var __vue_module_identifier__$o = "data-v-
|
|
5600
|
+
var __vue_module_identifier__$o = "data-v-9a90eb60";
|
|
5599
5601
|
/* functional template */
|
|
5600
5602
|
|
|
5601
5603
|
var __vue_is_functional_template__$o = false;
|
|
@@ -5638,16 +5640,17 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
5638
5640
|
return _c('div', {
|
|
5639
5641
|
staticClass: "ui-image-upload-field"
|
|
5640
5642
|
}, [_vm._l(_vm.pickerValue, function (url, index) {
|
|
5641
|
-
return _vm._ssrNode("<div class=\"item\" data-v-
|
|
5643
|
+
return _vm._ssrNode("<div class=\"item\" data-v-1f25de03>", "</div>", [_c('el-image', {
|
|
5642
5644
|
staticStyle: {
|
|
5643
5645
|
"width": "100%",
|
|
5644
5646
|
"height": "100%"
|
|
5645
5647
|
},
|
|
5646
5648
|
attrs: {
|
|
5647
5649
|
"src": url,
|
|
5648
|
-
"preview-src-list": _vm.previewBtn ? _vm.pickerValue : []
|
|
5650
|
+
"preview-src-list": _vm.previewBtn ? _vm.pickerValue : [],
|
|
5651
|
+
"fit": "contain"
|
|
5649
5652
|
}
|
|
5650
|
-
}), _vm._ssrNode(" " + (_vm.hasDeleteBtn ? "<div class=\"remove\" data-v-
|
|
5653
|
+
}), _vm._ssrNode(" " + (_vm.hasDeleteBtn ? "<div class=\"remove\" data-v-1f25de03><i class=\"el-icon-close\" data-v-1f25de03></i></div>" : "<!---->"))], 2);
|
|
5651
5654
|
}), _vm._ssrNode(" "), !_vm.preview ? _c('el-upload', {
|
|
5652
5655
|
staticClass: "uploader",
|
|
5653
5656
|
class: {
|
|
@@ -5677,8 +5680,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5677
5680
|
|
|
5678
5681
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
5679
5682
|
if (!inject) return;
|
|
5680
|
-
inject("data-v-
|
|
5681
|
-
source: ".ui-image-upload-field[data-v-
|
|
5683
|
+
inject("data-v-1f25de03_0", {
|
|
5684
|
+
source: ".ui-image-upload-field[data-v-1f25de03]{width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.ui-image-upload-field .uploader.disabled[data-v-1f25de03] .el-upload{cursor:not-allowed;pointer-events:none}.ui-image-upload-field .uploader.disabled[data-v-1f25de03] .el-upload .upload-btn{background:#edeef0;color:#888c94}.ui-image-upload-field .item[data-v-1f25de03]{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;width:140px;height:140px;margin-bottom:10px;margin-right:10px;border:1px dashed #d0d2d7;padding:8px;border-radius:2px;box-sizing:border-box}.ui-image-upload-field .item .remove[data-v-1f25de03]{position:absolute;top:0;right:0;width:24px;height:24px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 22px;cursor:pointer}.ui-image-upload-field .item .remove .el-icon-close[data-v-1f25de03]{position:absolute;top:4px;right:4px;color:#fff;font-size:14px}.ui-image-upload-field .item.upload-btn[data-v-1f25de03]{background:#f7f8f9;display:flex;flex-direction:column;align-items:center;justify-content:center;border:none;color:#409eff}.ui-image-upload-field .item.upload-btn>.el-icon-plus[data-v-1f25de03]{font-size:1.6em}.ui-image-upload-field .item.upload-btn>span[data-v-1f25de03]{font-size:16px;line-height:1.2;margin-top:5px}.ui-image-upload-field .item:hover .modal[data-v-1f25de03]{visibility:visible}.ui-image-upload-field[data-v-1f25de03] .preview{display:inline-block;width:auto;max-width:60%;left:50%;transform:translateX(-50%)}",
|
|
5682
5685
|
map: undefined,
|
|
5683
5686
|
media: undefined
|
|
5684
5687
|
});
|
|
@@ -5686,10 +5689,10 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
5686
5689
|
/* scoped */
|
|
5687
5690
|
|
|
5688
5691
|
|
|
5689
|
-
var __vue_scope_id__$n = "data-v-
|
|
5692
|
+
var __vue_scope_id__$n = "data-v-1f25de03";
|
|
5690
5693
|
/* module identifier */
|
|
5691
5694
|
|
|
5692
|
-
var __vue_module_identifier__$n = "data-v-
|
|
5695
|
+
var __vue_module_identifier__$n = "data-v-1f25de03";
|
|
5693
5696
|
/* functional template */
|
|
5694
5697
|
|
|
5695
5698
|
var __vue_is_functional_template__$n = false;
|
|
@@ -8002,7 +8005,7 @@ var script$f = {
|
|
|
8002
8005
|
disabled: Boolean,
|
|
8003
8006
|
labelWidth: {
|
|
8004
8007
|
type: String,
|
|
8005
|
-
default: '
|
|
8008
|
+
default: '90px'
|
|
8006
8009
|
},
|
|
8007
8010
|
fields: Array,
|
|
8008
8011
|
url: String,
|
|
@@ -8426,8 +8429,8 @@ var __vue_staticRenderFns__$f = [];
|
|
|
8426
8429
|
|
|
8427
8430
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
8428
8431
|
if (!inject) return;
|
|
8429
|
-
inject("data-v-
|
|
8430
|
-
source: ".el-form--inline[data-v-
|
|
8432
|
+
inject("data-v-c7f3c100_0", {
|
|
8433
|
+
source: ".el-form--inline[data-v-c7f3c100] .el-form-item{display:inline-flex}",
|
|
8431
8434
|
map: undefined,
|
|
8432
8435
|
media: undefined
|
|
8433
8436
|
});
|
|
@@ -8435,10 +8438,10 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
8435
8438
|
/* scoped */
|
|
8436
8439
|
|
|
8437
8440
|
|
|
8438
|
-
var __vue_scope_id__$f = "data-v-
|
|
8441
|
+
var __vue_scope_id__$f = "data-v-c7f3c100";
|
|
8439
8442
|
/* module identifier */
|
|
8440
8443
|
|
|
8441
|
-
var __vue_module_identifier__$f = "data-v-
|
|
8444
|
+
var __vue_module_identifier__$f = "data-v-c7f3c100";
|
|
8442
8445
|
/* functional template */
|
|
8443
8446
|
|
|
8444
8447
|
var __vue_is_functional_template__$f = false;
|