@v2coding/ui 0.1.37 → 0.1.38
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 -9
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +37 -38
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -2452,39 +2452,12 @@ var FieldMixin = {
|
|
|
2452
2452
|
this.$emit('ready');
|
|
2453
2453
|
},
|
|
2454
2454
|
emitChange: function emitChange() {
|
|
2455
|
-
var
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2459
|
-
var _len, args, _key;
|
|
2460
|
-
|
|
2461
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2462
|
-
while (1) {
|
|
2463
|
-
switch (_context.prev = _context.next) {
|
|
2464
|
-
case 0:
|
|
2465
|
-
for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2466
|
-
args[_key] = _arguments[_key];
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
_this2.$emit.apply(_this2, ['input'].concat(args));
|
|
2470
|
-
|
|
2471
|
-
_this2.$emit.apply(_this2, ['change'].concat(args));
|
|
2472
|
-
|
|
2473
|
-
_context.next = 5;
|
|
2474
|
-
return _this2.$nextTick();
|
|
2475
|
-
|
|
2476
|
-
case 5:
|
|
2477
|
-
if (_this2.$parent.$options.componentName === 'ElFormItem') {
|
|
2478
|
-
_this2.$parent.validate('change');
|
|
2479
|
-
}
|
|
2455
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
2456
|
+
args[_key] = arguments[_key];
|
|
2457
|
+
}
|
|
2480
2458
|
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
return _context.stop();
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
}, _callee);
|
|
2487
|
-
}))();
|
|
2459
|
+
this.$emit.apply(this, ['input'].concat(args));
|
|
2460
|
+
this.$emit.apply(this, ['change'].concat(args));
|
|
2488
2461
|
},
|
|
2489
2462
|
onChange: function onChange(val) {
|
|
2490
2463
|
this.emitChange(val);
|
|
@@ -5373,6 +5346,32 @@ var script$p = {
|
|
|
5373
5346
|
getFileName: function getFileName(url) {
|
|
5374
5347
|
var pathname = decodeURI(new URL(url).pathname);
|
|
5375
5348
|
return pathname.substring(pathname.lastIndexOf('/') + 1);
|
|
5349
|
+
},
|
|
5350
|
+
onChange: function onChange(val) {
|
|
5351
|
+
var _this3 = this;
|
|
5352
|
+
|
|
5353
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5354
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5355
|
+
while (1) {
|
|
5356
|
+
switch (_context.prev = _context.next) {
|
|
5357
|
+
case 0:
|
|
5358
|
+
_this3.emitChange(val);
|
|
5359
|
+
|
|
5360
|
+
_context.next = 3;
|
|
5361
|
+
return _this3.$nextTick();
|
|
5362
|
+
|
|
5363
|
+
case 3:
|
|
5364
|
+
if (_this3.$parent.$options.componentName === 'ElFormItem') {
|
|
5365
|
+
_this3.$parent.validate('change');
|
|
5366
|
+
}
|
|
5367
|
+
|
|
5368
|
+
case 4:
|
|
5369
|
+
case "end":
|
|
5370
|
+
return _context.stop();
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
}, _callee);
|
|
5374
|
+
}))();
|
|
5376
5375
|
}
|
|
5377
5376
|
}
|
|
5378
5377
|
};/* script */
|
|
@@ -5410,8 +5409,8 @@ var __vue_render__$o = function __vue_render__() {
|
|
|
5410
5409
|
class: {
|
|
5411
5410
|
disabled: _vm.uploading
|
|
5412
5411
|
}
|
|
5413
|
-
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-
|
|
5414
|
-
return !!url ? "<div class=\"file\" data-v-
|
|
5412
|
+
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-88ea6810>" + _vm._ssrList(_vm.pickerValue, function (url, index) {
|
|
5413
|
+
return !!url ? "<div class=\"file\" data-v-88ea6810><i class=\"el-icon-document\" data-v-88ea6810> </i> <a" + _vm._ssrAttr("href", url) + " target=\"_blank\"" + _vm._ssrAttr("title", _vm.getFileName(url)) + " data-v-88ea6810>" + _vm._ssrEscape(_vm._s(_vm.getFileName(url))) + "</a> " + (_vm.hasDeleteBtn ? "<span class=\"close\" data-v-88ea6810><i class=\"el-icon-close\" data-v-88ea6810></i></span>" : "<!---->") + "</div>" : "<!---->";
|
|
5415
5414
|
}) + "</div>")], 2);
|
|
5416
5415
|
};
|
|
5417
5416
|
|
|
@@ -5420,8 +5419,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5420
5419
|
|
|
5421
5420
|
var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
5422
5421
|
if (!inject) return;
|
|
5423
|
-
inject("data-v-
|
|
5424
|
-
source: ".ui-file-upload-field[data-v-
|
|
5422
|
+
inject("data-v-88ea6810_0", {
|
|
5423
|
+
source: ".ui-file-upload-field[data-v-88ea6810]{width:100%}.ui-file-upload-field .uploader[data-v-88ea6810]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-88ea6810] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-88ea6810] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-88ea6810]{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-88ea6810]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-88ea6810]{max-width:100%}.ui-file-upload-field .files .file[data-v-88ea6810]{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-88ea6810]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-88ea6810]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-88ea6810]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-88ea6810]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-88ea6810]{color:#409eff;visibility:visible}",
|
|
5425
5424
|
map: undefined,
|
|
5426
5425
|
media: undefined
|
|
5427
5426
|
});
|
|
@@ -5429,10 +5428,10 @@ var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
|
5429
5428
|
/* scoped */
|
|
5430
5429
|
|
|
5431
5430
|
|
|
5432
|
-
var __vue_scope_id__$p = "data-v-
|
|
5431
|
+
var __vue_scope_id__$p = "data-v-88ea6810";
|
|
5433
5432
|
/* module identifier */
|
|
5434
5433
|
|
|
5435
|
-
var __vue_module_identifier__$p = "data-v-
|
|
5434
|
+
var __vue_module_identifier__$p = "data-v-88ea6810";
|
|
5436
5435
|
/* functional template */
|
|
5437
5436
|
|
|
5438
5437
|
var __vue_is_functional_template__$p = false;
|