@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/README.md
CHANGED
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -1016,132 +1016,132 @@ var script$F = {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
1018
|
|
|
1019
|
-
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1020
|
-
if (typeof shadowMode !== 'boolean') {
|
|
1021
|
-
createInjectorSSR = createInjector;
|
|
1022
|
-
createInjector = shadowMode;
|
|
1023
|
-
shadowMode = false;
|
|
1024
|
-
}
|
|
1025
|
-
// Vue.extend constructor export interop.
|
|
1026
|
-
const options = typeof script === 'function' ? script.options : script;
|
|
1027
|
-
// render functions
|
|
1028
|
-
if (template && template.render) {
|
|
1029
|
-
options.render = template.render;
|
|
1030
|
-
options.staticRenderFns = template.staticRenderFns;
|
|
1031
|
-
options._compiled = true;
|
|
1032
|
-
// functional template
|
|
1033
|
-
if (isFunctionalTemplate) {
|
|
1034
|
-
options.functional = true;
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
// scopedId
|
|
1038
|
-
if (scopeId) {
|
|
1039
|
-
options._scopeId = scopeId;
|
|
1040
|
-
}
|
|
1041
|
-
let hook;
|
|
1042
|
-
if (moduleIdentifier) {
|
|
1043
|
-
// server build
|
|
1044
|
-
hook = function (context) {
|
|
1045
|
-
// 2.3 injection
|
|
1046
|
-
context =
|
|
1047
|
-
context || // cached call
|
|
1048
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1049
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1050
|
-
// 2.2 with runInNewContext: true
|
|
1051
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1052
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1053
|
-
}
|
|
1054
|
-
// inject component styles
|
|
1055
|
-
if (style) {
|
|
1056
|
-
style.call(this, createInjectorSSR(context));
|
|
1057
|
-
}
|
|
1058
|
-
// register component module identifier for async chunk inference
|
|
1059
|
-
if (context && context._registeredComponents) {
|
|
1060
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1064
|
-
// never gets called
|
|
1065
|
-
options._ssrRegister = hook;
|
|
1066
|
-
}
|
|
1067
|
-
else if (style) {
|
|
1068
|
-
hook = shadowMode
|
|
1069
|
-
? function (context) {
|
|
1070
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1071
|
-
}
|
|
1072
|
-
: function (context) {
|
|
1073
|
-
style.call(this, createInjector(context));
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
if (hook) {
|
|
1077
|
-
if (options.functional) {
|
|
1078
|
-
// register for functional component in vue file
|
|
1079
|
-
const originalRender = options.render;
|
|
1080
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1081
|
-
hook.call(context);
|
|
1082
|
-
return originalRender(h, context);
|
|
1083
|
-
};
|
|
1084
|
-
}
|
|
1085
|
-
else {
|
|
1086
|
-
// inject component registration as beforeCreate hook
|
|
1087
|
-
const existing = options.beforeCreate;
|
|
1088
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
return script;
|
|
1019
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1020
|
+
if (typeof shadowMode !== 'boolean') {
|
|
1021
|
+
createInjectorSSR = createInjector;
|
|
1022
|
+
createInjector = shadowMode;
|
|
1023
|
+
shadowMode = false;
|
|
1024
|
+
}
|
|
1025
|
+
// Vue.extend constructor export interop.
|
|
1026
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
1027
|
+
// render functions
|
|
1028
|
+
if (template && template.render) {
|
|
1029
|
+
options.render = template.render;
|
|
1030
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
1031
|
+
options._compiled = true;
|
|
1032
|
+
// functional template
|
|
1033
|
+
if (isFunctionalTemplate) {
|
|
1034
|
+
options.functional = true;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
// scopedId
|
|
1038
|
+
if (scopeId) {
|
|
1039
|
+
options._scopeId = scopeId;
|
|
1040
|
+
}
|
|
1041
|
+
let hook;
|
|
1042
|
+
if (moduleIdentifier) {
|
|
1043
|
+
// server build
|
|
1044
|
+
hook = function (context) {
|
|
1045
|
+
// 2.3 injection
|
|
1046
|
+
context =
|
|
1047
|
+
context || // cached call
|
|
1048
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1049
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1050
|
+
// 2.2 with runInNewContext: true
|
|
1051
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1052
|
+
context = __VUE_SSR_CONTEXT__;
|
|
1053
|
+
}
|
|
1054
|
+
// inject component styles
|
|
1055
|
+
if (style) {
|
|
1056
|
+
style.call(this, createInjectorSSR(context));
|
|
1057
|
+
}
|
|
1058
|
+
// register component module identifier for async chunk inference
|
|
1059
|
+
if (context && context._registeredComponents) {
|
|
1060
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1064
|
+
// never gets called
|
|
1065
|
+
options._ssrRegister = hook;
|
|
1066
|
+
}
|
|
1067
|
+
else if (style) {
|
|
1068
|
+
hook = shadowMode
|
|
1069
|
+
? function (context) {
|
|
1070
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1071
|
+
}
|
|
1072
|
+
: function (context) {
|
|
1073
|
+
style.call(this, createInjector(context));
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
if (hook) {
|
|
1077
|
+
if (options.functional) {
|
|
1078
|
+
// register for functional component in vue file
|
|
1079
|
+
const originalRender = options.render;
|
|
1080
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
1081
|
+
hook.call(context);
|
|
1082
|
+
return originalRender(h, context);
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
// inject component registration as beforeCreate hook
|
|
1087
|
+
const existing = options.beforeCreate;
|
|
1088
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
return script;
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
-
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1095
|
-
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1096
|
-
function createInjector(context) {
|
|
1097
|
-
return (id, style) => addStyle(id, style);
|
|
1098
|
-
}
|
|
1099
|
-
let HEAD;
|
|
1100
|
-
const styles = {};
|
|
1101
|
-
function addStyle(id, css) {
|
|
1102
|
-
const group = isOldIE ? css.media || 'default' : id;
|
|
1103
|
-
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1104
|
-
if (!style.ids.has(id)) {
|
|
1105
|
-
style.ids.add(id);
|
|
1106
|
-
let code = css.source;
|
|
1107
|
-
if (css.map) {
|
|
1108
|
-
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1109
|
-
// this makes source maps inside style tags work properly in Chrome
|
|
1110
|
-
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1111
|
-
// http://stackoverflow.com/a/26603875
|
|
1112
|
-
code +=
|
|
1113
|
-
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1114
|
-
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1115
|
-
' */';
|
|
1116
|
-
}
|
|
1117
|
-
if (!style.element) {
|
|
1118
|
-
style.element = document.createElement('style');
|
|
1119
|
-
style.element.type = 'text/css';
|
|
1120
|
-
if (css.media)
|
|
1121
|
-
style.element.setAttribute('media', css.media);
|
|
1122
|
-
if (HEAD === undefined) {
|
|
1123
|
-
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1124
|
-
}
|
|
1125
|
-
HEAD.appendChild(style.element);
|
|
1126
|
-
}
|
|
1127
|
-
if ('styleSheet' in style.element) {
|
|
1128
|
-
style.styles.push(code);
|
|
1129
|
-
style.element.styleSheet.cssText = style.styles
|
|
1130
|
-
.filter(Boolean)
|
|
1131
|
-
.join('\n');
|
|
1132
|
-
}
|
|
1133
|
-
else {
|
|
1134
|
-
const index = style.ids.size - 1;
|
|
1135
|
-
const textNode = document.createTextNode(code);
|
|
1136
|
-
const nodes = style.element.childNodes;
|
|
1137
|
-
if (nodes[index])
|
|
1138
|
-
style.element.removeChild(nodes[index]);
|
|
1139
|
-
if (nodes.length)
|
|
1140
|
-
style.element.insertBefore(textNode, nodes[index]);
|
|
1141
|
-
else
|
|
1142
|
-
style.element.appendChild(textNode);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1094
|
+
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1095
|
+
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1096
|
+
function createInjector(context) {
|
|
1097
|
+
return (id, style) => addStyle(id, style);
|
|
1098
|
+
}
|
|
1099
|
+
let HEAD;
|
|
1100
|
+
const styles = {};
|
|
1101
|
+
function addStyle(id, css) {
|
|
1102
|
+
const group = isOldIE ? css.media || 'default' : id;
|
|
1103
|
+
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1104
|
+
if (!style.ids.has(id)) {
|
|
1105
|
+
style.ids.add(id);
|
|
1106
|
+
let code = css.source;
|
|
1107
|
+
if (css.map) {
|
|
1108
|
+
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1109
|
+
// this makes source maps inside style tags work properly in Chrome
|
|
1110
|
+
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1111
|
+
// http://stackoverflow.com/a/26603875
|
|
1112
|
+
code +=
|
|
1113
|
+
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1114
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1115
|
+
' */';
|
|
1116
|
+
}
|
|
1117
|
+
if (!style.element) {
|
|
1118
|
+
style.element = document.createElement('style');
|
|
1119
|
+
style.element.type = 'text/css';
|
|
1120
|
+
if (css.media)
|
|
1121
|
+
style.element.setAttribute('media', css.media);
|
|
1122
|
+
if (HEAD === undefined) {
|
|
1123
|
+
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1124
|
+
}
|
|
1125
|
+
HEAD.appendChild(style.element);
|
|
1126
|
+
}
|
|
1127
|
+
if ('styleSheet' in style.element) {
|
|
1128
|
+
style.styles.push(code);
|
|
1129
|
+
style.element.styleSheet.cssText = style.styles
|
|
1130
|
+
.filter(Boolean)
|
|
1131
|
+
.join('\n');
|
|
1132
|
+
}
|
|
1133
|
+
else {
|
|
1134
|
+
const index = style.ids.size - 1;
|
|
1135
|
+
const textNode = document.createTextNode(code);
|
|
1136
|
+
const nodes = style.element.childNodes;
|
|
1137
|
+
if (nodes[index])
|
|
1138
|
+
style.element.removeChild(nodes[index]);
|
|
1139
|
+
if (nodes.length)
|
|
1140
|
+
style.element.insertBefore(textNode, nodes[index]);
|
|
1141
|
+
else
|
|
1142
|
+
style.element.appendChild(textNode);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
/* script */
|
|
@@ -4327,7 +4327,6 @@ var Upload = {
|
|
|
4327
4327
|
},
|
|
4328
4328
|
aws: (url, params, file) => {
|
|
4329
4329
|
const getSignature = params => {
|
|
4330
|
-
console.log('aws getSignature', params)
|
|
4331
4330
|
return Axios.getInstance().get(url, {
|
|
4332
4331
|
params
|
|
4333
4332
|
});
|
|
@@ -4788,7 +4787,7 @@ var script$p = {
|
|
|
4788
4787
|
},
|
|
4789
4788
|
|
|
4790
4789
|
getFileName(url) {
|
|
4791
|
-
const pathname = new URL(url).pathname;
|
|
4790
|
+
const pathname = decodeURI(new URL(url).pathname);
|
|
4792
4791
|
return pathname.substring(pathname.lastIndexOf('/') + 1);
|
|
4793
4792
|
}
|
|
4794
4793
|
|
|
@@ -4841,7 +4840,8 @@ var __vue_render__$o = function () {
|
|
|
4841
4840
|
}, [_vm._v(" ")]), _vm._v(" "), _c('a', {
|
|
4842
4841
|
attrs: {
|
|
4843
4842
|
"href": url,
|
|
4844
|
-
"target": "_blank"
|
|
4843
|
+
"target": "_blank",
|
|
4844
|
+
"title": _vm.getFileName(url)
|
|
4845
4845
|
}
|
|
4846
4846
|
}, [_vm._v(_vm._s(_vm.getFileName(url)))]), _vm._v(" "), _vm.hasDeleteBtn ? _c('span', {
|
|
4847
4847
|
staticClass: "close",
|
|
@@ -4861,8 +4861,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
4861
4861
|
|
|
4862
4862
|
const __vue_inject_styles__$p = function (inject) {
|
|
4863
4863
|
if (!inject) return;
|
|
4864
|
-
inject("data-v-
|
|
4865
|
-
source: ".ui-file-upload-field[data-v-
|
|
4864
|
+
inject("data-v-adbfc424_0", {
|
|
4865
|
+
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}",
|
|
4866
4866
|
map: undefined,
|
|
4867
4867
|
media: undefined
|
|
4868
4868
|
});
|
|
@@ -4870,7 +4870,7 @@ const __vue_inject_styles__$p = function (inject) {
|
|
|
4870
4870
|
/* scoped */
|
|
4871
4871
|
|
|
4872
4872
|
|
|
4873
|
-
const __vue_scope_id__$p = "data-v-
|
|
4873
|
+
const __vue_scope_id__$p = "data-v-adbfc424";
|
|
4874
4874
|
/* module identifier */
|
|
4875
4875
|
|
|
4876
4876
|
const __vue_module_identifier__$p = undefined;
|
|
@@ -10612,9 +10612,19 @@ var ColumnType$1 = ColumnType;
|
|
|
10612
10612
|
const DefaultTypes = {
|
|
10613
10613
|
default: _ref => {
|
|
10614
10614
|
let {
|
|
10615
|
-
cellValue
|
|
10615
|
+
cellValue,
|
|
10616
|
+
attrs,
|
|
10617
|
+
props
|
|
10616
10618
|
} = _ref;
|
|
10617
|
-
|
|
10619
|
+
const fallback = attrs.fallback || props.fallback;
|
|
10620
|
+
const isEmpty = (attrs === null || attrs === void 0 ? void 0 : attrs.isEmpty) || Objects.isEmpty;
|
|
10621
|
+
let isEmptyValue = false;
|
|
10622
|
+
|
|
10623
|
+
if (typeof isEmpty === 'function') {
|
|
10624
|
+
isEmptyValue = isEmpty(cellValue);
|
|
10625
|
+
}
|
|
10626
|
+
|
|
10627
|
+
return isEmptyValue ? fallback : cellValue;
|
|
10618
10628
|
},
|
|
10619
10629
|
date: _ref2 => {
|
|
10620
10630
|
let {
|