@v2coding/ui 0.1.17 → 0.1.20
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/README.md +4 -0
- package/dist/v2coding-ui.esm.js +142 -132
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +19 -9
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -5255,7 +5255,7 @@ var script$p = {
|
|
|
5255
5255
|
this.$emit('deleteUpload', url);
|
|
5256
5256
|
},
|
|
5257
5257
|
getFileName: function getFileName(url) {
|
|
5258
|
-
var pathname = new URL(url).pathname;
|
|
5258
|
+
var pathname = decodeURI(new URL(url).pathname);
|
|
5259
5259
|
return pathname.substring(pathname.lastIndexOf('/') + 1);
|
|
5260
5260
|
}
|
|
5261
5261
|
}
|
|
@@ -5294,8 +5294,8 @@ var __vue_render__$o = function __vue_render__() {
|
|
|
5294
5294
|
class: {
|
|
5295
5295
|
disabled: _vm.uploading
|
|
5296
5296
|
}
|
|
5297
|
-
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-
|
|
5298
|
-
return !!url ? "<div class=\"file\" data-v-
|
|
5297
|
+
}, [_vm._v("浏览...")])]) : _vm._e(), _vm._ssrNode(" <div class=\"files\" data-v-adbfc424>" + _vm._ssrList(_vm.pickerValue, function (url, index) {
|
|
5298
|
+
return !!url ? "<div class=\"file\" data-v-adbfc424><i class=\"el-icon-document\" data-v-adbfc424> </i> <a" + _vm._ssrAttr("href", url) + " target=\"_blank\"" + _vm._ssrAttr("title", _vm.getFileName(url)) + " data-v-adbfc424>" + _vm._ssrEscape(_vm._s(_vm.getFileName(url))) + "</a> " + (_vm.hasDeleteBtn ? "<span class=\"close\" data-v-adbfc424><i class=\"el-icon-close\" data-v-adbfc424></i></span>" : "<!---->") + "</div>" : "<!---->";
|
|
5299
5299
|
}) + "</div>")], 2);
|
|
5300
5300
|
};
|
|
5301
5301
|
|
|
@@ -5304,8 +5304,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5304
5304
|
|
|
5305
5305
|
var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
5306
5306
|
if (!inject) return;
|
|
5307
|
-
inject("data-v-
|
|
5308
|
-
source: ".ui-file-upload-field[data-v-
|
|
5307
|
+
inject("data-v-adbfc424_0", {
|
|
5308
|
+
source: ".ui-file-upload-field[data-v-adbfc424]{width:100%}.ui-file-upload-field .uploader[data-v-adbfc424]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-adbfc424] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-adbfc424] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-adbfc424]{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-adbfc424]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-adbfc424]{max-width:100%}.ui-file-upload-field .files .file[data-v-adbfc424]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;display:flex;align-items:center;max-width:100%}.ui-file-upload-field .files .file a[data-v-adbfc424]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-adbfc424]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-adbfc424]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-adbfc424]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-adbfc424]{color:#409eff;visibility:visible}",
|
|
5309
5309
|
map: undefined,
|
|
5310
5310
|
media: undefined
|
|
5311
5311
|
});
|
|
@@ -5313,10 +5313,10 @@ var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
|
5313
5313
|
/* scoped */
|
|
5314
5314
|
|
|
5315
5315
|
|
|
5316
|
-
var __vue_scope_id__$p = "data-v-
|
|
5316
|
+
var __vue_scope_id__$p = "data-v-adbfc424";
|
|
5317
5317
|
/* module identifier */
|
|
5318
5318
|
|
|
5319
|
-
var __vue_module_identifier__$p = "data-v-
|
|
5319
|
+
var __vue_module_identifier__$p = "data-v-adbfc424";
|
|
5320
5320
|
/* functional template */
|
|
5321
5321
|
|
|
5322
5322
|
var __vue_is_functional_template__$p = false;
|
|
@@ -10926,8 +10926,18 @@ var addColumnType = function addColumnType(type, config) {
|
|
|
10926
10926
|
var ColumnType$1 = ColumnType;
|
|
10927
10927
|
var DefaultTypes = {
|
|
10928
10928
|
default: function _default(_ref) {
|
|
10929
|
-
var cellValue = _ref.cellValue
|
|
10930
|
-
|
|
10929
|
+
var cellValue = _ref.cellValue,
|
|
10930
|
+
attrs = _ref.attrs,
|
|
10931
|
+
props = _ref.props;
|
|
10932
|
+
var fallback = attrs.fallback || props.fallback;
|
|
10933
|
+
var isEmpty = (attrs === null || attrs === void 0 ? void 0 : attrs.isEmpty) || Objects.isEmpty;
|
|
10934
|
+
var isEmptyValue = false;
|
|
10935
|
+
|
|
10936
|
+
if (typeof isEmpty === 'function') {
|
|
10937
|
+
isEmptyValue = isEmpty(cellValue);
|
|
10938
|
+
}
|
|
10939
|
+
|
|
10940
|
+
return isEmptyValue ? fallback : cellValue;
|
|
10931
10941
|
},
|
|
10932
10942
|
date: function date(_ref2) {
|
|
10933
10943
|
var cellValue = _ref2.cellValue,
|