@v2coding/ui 0.1.54 → 0.1.56
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 +150 -139
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +28 -17
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -1119,132 +1119,132 @@ var script$E = {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
|
|
1122
|
-
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1123
|
-
if (typeof shadowMode !== 'boolean') {
|
|
1124
|
-
createInjectorSSR = createInjector;
|
|
1125
|
-
createInjector = shadowMode;
|
|
1126
|
-
shadowMode = false;
|
|
1127
|
-
}
|
|
1128
|
-
// Vue.extend constructor export interop.
|
|
1129
|
-
const options = typeof script === 'function' ? script.options : script;
|
|
1130
|
-
// render functions
|
|
1131
|
-
if (template && template.render) {
|
|
1132
|
-
options.render = template.render;
|
|
1133
|
-
options.staticRenderFns = template.staticRenderFns;
|
|
1134
|
-
options._compiled = true;
|
|
1135
|
-
// functional template
|
|
1136
|
-
if (isFunctionalTemplate) {
|
|
1137
|
-
options.functional = true;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
// scopedId
|
|
1141
|
-
if (scopeId) {
|
|
1142
|
-
options._scopeId = scopeId;
|
|
1143
|
-
}
|
|
1144
|
-
let hook;
|
|
1145
|
-
if (moduleIdentifier) {
|
|
1146
|
-
// server build
|
|
1147
|
-
hook = function (context) {
|
|
1148
|
-
// 2.3 injection
|
|
1149
|
-
context =
|
|
1150
|
-
context || // cached call
|
|
1151
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1152
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1153
|
-
// 2.2 with runInNewContext: true
|
|
1154
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1155
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1156
|
-
}
|
|
1157
|
-
// inject component styles
|
|
1158
|
-
if (style) {
|
|
1159
|
-
style.call(this, createInjectorSSR(context));
|
|
1160
|
-
}
|
|
1161
|
-
// register component module identifier for async chunk inference
|
|
1162
|
-
if (context && context._registeredComponents) {
|
|
1163
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1167
|
-
// never gets called
|
|
1168
|
-
options._ssrRegister = hook;
|
|
1169
|
-
}
|
|
1170
|
-
else if (style) {
|
|
1171
|
-
hook = shadowMode
|
|
1172
|
-
? function (context) {
|
|
1173
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1174
|
-
}
|
|
1175
|
-
: function (context) {
|
|
1176
|
-
style.call(this, createInjector(context));
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
|
-
if (hook) {
|
|
1180
|
-
if (options.functional) {
|
|
1181
|
-
// register for functional component in vue file
|
|
1182
|
-
const originalRender = options.render;
|
|
1183
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1184
|
-
hook.call(context);
|
|
1185
|
-
return originalRender(h, context);
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
else {
|
|
1189
|
-
// inject component registration as beforeCreate hook
|
|
1190
|
-
const existing = options.beforeCreate;
|
|
1191
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
return script;
|
|
1122
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1123
|
+
if (typeof shadowMode !== 'boolean') {
|
|
1124
|
+
createInjectorSSR = createInjector;
|
|
1125
|
+
createInjector = shadowMode;
|
|
1126
|
+
shadowMode = false;
|
|
1127
|
+
}
|
|
1128
|
+
// Vue.extend constructor export interop.
|
|
1129
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
1130
|
+
// render functions
|
|
1131
|
+
if (template && template.render) {
|
|
1132
|
+
options.render = template.render;
|
|
1133
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
1134
|
+
options._compiled = true;
|
|
1135
|
+
// functional template
|
|
1136
|
+
if (isFunctionalTemplate) {
|
|
1137
|
+
options.functional = true;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
// scopedId
|
|
1141
|
+
if (scopeId) {
|
|
1142
|
+
options._scopeId = scopeId;
|
|
1143
|
+
}
|
|
1144
|
+
let hook;
|
|
1145
|
+
if (moduleIdentifier) {
|
|
1146
|
+
// server build
|
|
1147
|
+
hook = function (context) {
|
|
1148
|
+
// 2.3 injection
|
|
1149
|
+
context =
|
|
1150
|
+
context || // cached call
|
|
1151
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1152
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1153
|
+
// 2.2 with runInNewContext: true
|
|
1154
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1155
|
+
context = __VUE_SSR_CONTEXT__;
|
|
1156
|
+
}
|
|
1157
|
+
// inject component styles
|
|
1158
|
+
if (style) {
|
|
1159
|
+
style.call(this, createInjectorSSR(context));
|
|
1160
|
+
}
|
|
1161
|
+
// register component module identifier for async chunk inference
|
|
1162
|
+
if (context && context._registeredComponents) {
|
|
1163
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1167
|
+
// never gets called
|
|
1168
|
+
options._ssrRegister = hook;
|
|
1169
|
+
}
|
|
1170
|
+
else if (style) {
|
|
1171
|
+
hook = shadowMode
|
|
1172
|
+
? function (context) {
|
|
1173
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1174
|
+
}
|
|
1175
|
+
: function (context) {
|
|
1176
|
+
style.call(this, createInjector(context));
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
if (hook) {
|
|
1180
|
+
if (options.functional) {
|
|
1181
|
+
// register for functional component in vue file
|
|
1182
|
+
const originalRender = options.render;
|
|
1183
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
1184
|
+
hook.call(context);
|
|
1185
|
+
return originalRender(h, context);
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
else {
|
|
1189
|
+
// inject component registration as beforeCreate hook
|
|
1190
|
+
const existing = options.beforeCreate;
|
|
1191
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
return script;
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
|
-
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1198
|
-
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1199
|
-
function createInjector(context) {
|
|
1200
|
-
return (id, style) => addStyle(id, style);
|
|
1201
|
-
}
|
|
1202
|
-
let HEAD;
|
|
1203
|
-
const styles = {};
|
|
1204
|
-
function addStyle(id, css) {
|
|
1205
|
-
const group = isOldIE ? css.media || 'default' : id;
|
|
1206
|
-
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1207
|
-
if (!style.ids.has(id)) {
|
|
1208
|
-
style.ids.add(id);
|
|
1209
|
-
let code = css.source;
|
|
1210
|
-
if (css.map) {
|
|
1211
|
-
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1212
|
-
// this makes source maps inside style tags work properly in Chrome
|
|
1213
|
-
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1214
|
-
// http://stackoverflow.com/a/26603875
|
|
1215
|
-
code +=
|
|
1216
|
-
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1217
|
-
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1218
|
-
' */';
|
|
1219
|
-
}
|
|
1220
|
-
if (!style.element) {
|
|
1221
|
-
style.element = document.createElement('style');
|
|
1222
|
-
style.element.type = 'text/css';
|
|
1223
|
-
if (css.media)
|
|
1224
|
-
style.element.setAttribute('media', css.media);
|
|
1225
|
-
if (HEAD === undefined) {
|
|
1226
|
-
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1227
|
-
}
|
|
1228
|
-
HEAD.appendChild(style.element);
|
|
1229
|
-
}
|
|
1230
|
-
if ('styleSheet' in style.element) {
|
|
1231
|
-
style.styles.push(code);
|
|
1232
|
-
style.element.styleSheet.cssText = style.styles
|
|
1233
|
-
.filter(Boolean)
|
|
1234
|
-
.join('\n');
|
|
1235
|
-
}
|
|
1236
|
-
else {
|
|
1237
|
-
const index = style.ids.size - 1;
|
|
1238
|
-
const textNode = document.createTextNode(code);
|
|
1239
|
-
const nodes = style.element.childNodes;
|
|
1240
|
-
if (nodes[index])
|
|
1241
|
-
style.element.removeChild(nodes[index]);
|
|
1242
|
-
if (nodes.length)
|
|
1243
|
-
style.element.insertBefore(textNode, nodes[index]);
|
|
1244
|
-
else
|
|
1245
|
-
style.element.appendChild(textNode);
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1197
|
+
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1198
|
+
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1199
|
+
function createInjector(context) {
|
|
1200
|
+
return (id, style) => addStyle(id, style);
|
|
1201
|
+
}
|
|
1202
|
+
let HEAD;
|
|
1203
|
+
const styles = {};
|
|
1204
|
+
function addStyle(id, css) {
|
|
1205
|
+
const group = isOldIE ? css.media || 'default' : id;
|
|
1206
|
+
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1207
|
+
if (!style.ids.has(id)) {
|
|
1208
|
+
style.ids.add(id);
|
|
1209
|
+
let code = css.source;
|
|
1210
|
+
if (css.map) {
|
|
1211
|
+
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1212
|
+
// this makes source maps inside style tags work properly in Chrome
|
|
1213
|
+
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1214
|
+
// http://stackoverflow.com/a/26603875
|
|
1215
|
+
code +=
|
|
1216
|
+
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1217
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1218
|
+
' */';
|
|
1219
|
+
}
|
|
1220
|
+
if (!style.element) {
|
|
1221
|
+
style.element = document.createElement('style');
|
|
1222
|
+
style.element.type = 'text/css';
|
|
1223
|
+
if (css.media)
|
|
1224
|
+
style.element.setAttribute('media', css.media);
|
|
1225
|
+
if (HEAD === undefined) {
|
|
1226
|
+
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1227
|
+
}
|
|
1228
|
+
HEAD.appendChild(style.element);
|
|
1229
|
+
}
|
|
1230
|
+
if ('styleSheet' in style.element) {
|
|
1231
|
+
style.styles.push(code);
|
|
1232
|
+
style.element.styleSheet.cssText = style.styles
|
|
1233
|
+
.filter(Boolean)
|
|
1234
|
+
.join('\n');
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
const index = style.ids.size - 1;
|
|
1238
|
+
const textNode = document.createTextNode(code);
|
|
1239
|
+
const nodes = style.element.childNodes;
|
|
1240
|
+
if (nodes[index])
|
|
1241
|
+
style.element.removeChild(nodes[index]);
|
|
1242
|
+
if (nodes.length)
|
|
1243
|
+
style.element.insertBefore(textNode, nodes[index]);
|
|
1244
|
+
else
|
|
1245
|
+
style.element.appendChild(textNode);
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
1250
|
/* script */
|
|
@@ -2670,17 +2670,11 @@ var __vue_render__$A = function () {
|
|
|
2670
2670
|
on: {
|
|
2671
2671
|
"change": _vm.onCheckAllChange
|
|
2672
2672
|
}
|
|
2673
|
-
}, [_vm._v("全选")])], 1), _vm._v(" "), _c('el-divider', {
|
|
2674
|
-
directives: [{
|
|
2675
|
-
name: "show",
|
|
2676
|
-
rawName: "v-show",
|
|
2677
|
-
value: _vm.all && _vm.realData.length,
|
|
2678
|
-
expression: "all && realData.length"
|
|
2679
|
-
}],
|
|
2673
|
+
}, [_vm._v("全选")])], 1), _vm._v(" "), _vm.all && _vm.realData.length ? _c('el-divider', {
|
|
2680
2674
|
attrs: {
|
|
2681
2675
|
"direction": "vertical"
|
|
2682
2676
|
}
|
|
2683
|
-
}), _vm._v(" "), _c('el-checkbox-group', _vm._b({
|
|
2677
|
+
}) : _vm._e(), _vm._v(" "), _c('el-checkbox-group', _vm._b({
|
|
2684
2678
|
staticClass: "options",
|
|
2685
2679
|
attrs: {
|
|
2686
2680
|
"value": _vm.pickerValue
|
|
@@ -2724,8 +2718,8 @@ var __vue_staticRenderFns__$A = [];
|
|
|
2724
2718
|
|
|
2725
2719
|
const __vue_inject_styles__$B = function (inject) {
|
|
2726
2720
|
if (!inject) return;
|
|
2727
|
-
inject("data-v-
|
|
2728
|
-
source: ".ui-field-checkbox .all[data-v-
|
|
2721
|
+
inject("data-v-ae8f026a_0", {
|
|
2722
|
+
source: ".ui-field-checkbox .all[data-v-ae8f026a]{display:flex}.ui-field-checkbox .all>.el-checkbox[data-v-ae8f026a]{margin-right:0}.ui-field-checkbox .options[data-v-ae8f026a]{display:flex;flex-direction:row;align-items:center}.ui-field-checkbox .empty[data-v-ae8f026a]{display:inline-flex;align-items:center;font-size:12px;color:#909399}.ui-field-checkbox[data-v-ae8f026a] .el-checkbox{margin:0 8px 0 0}.ui-field-checkbox[data-v-ae8f026a] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.ui-field-checkbox[data-v-ae8f026a] .el-divider{margin:0 10px}[data-v-ae8f026a] .el-loading-mask .el-loading-spinner{margin-top:-14px}",
|
|
2729
2723
|
map: undefined,
|
|
2730
2724
|
media: undefined
|
|
2731
2725
|
});
|
|
@@ -2733,7 +2727,7 @@ const __vue_inject_styles__$B = function (inject) {
|
|
|
2733
2727
|
/* scoped */
|
|
2734
2728
|
|
|
2735
2729
|
|
|
2736
|
-
const __vue_scope_id__$B = "data-v-
|
|
2730
|
+
const __vue_scope_id__$B = "data-v-ae8f026a";
|
|
2737
2731
|
/* module identifier */
|
|
2738
2732
|
|
|
2739
2733
|
const __vue_module_identifier__$B = undefined;
|
|
@@ -12881,10 +12875,20 @@ var mixin = {
|
|
|
12881
12875
|
}
|
|
12882
12876
|
};
|
|
12883
12877
|
|
|
12878
|
+
let isReady = false;
|
|
12879
|
+
const onReadyCallbacks = [];
|
|
12880
|
+
const onReady = callback => {
|
|
12881
|
+
if (isReady) {
|
|
12882
|
+
callback();
|
|
12883
|
+
return;
|
|
12884
|
+
}
|
|
12885
|
+
|
|
12886
|
+
onReadyCallbacks.push(callback);
|
|
12887
|
+
};
|
|
12884
12888
|
var index = {
|
|
12885
12889
|
install: (Vue, opt) => {
|
|
12886
12890
|
const {
|
|
12887
|
-
onReady,
|
|
12891
|
+
onReady: _onReady,
|
|
12888
12892
|
...options
|
|
12889
12893
|
} = opt;
|
|
12890
12894
|
const {
|
|
@@ -12897,15 +12901,22 @@ var index = {
|
|
|
12897
12901
|
Vue.use(Directives, options);
|
|
12898
12902
|
Vue.use(Components, options);
|
|
12899
12903
|
|
|
12900
|
-
if (typeof
|
|
12901
|
-
|
|
12904
|
+
if (typeof _onReady === 'function') {
|
|
12905
|
+
_onReady({
|
|
12902
12906
|
axios,
|
|
12903
12907
|
store,
|
|
12904
12908
|
router
|
|
12905
12909
|
});
|
|
12906
12910
|
}
|
|
12911
|
+
|
|
12912
|
+
isReady = true;
|
|
12913
|
+
|
|
12914
|
+
while (onReadyCallbacks.length) {
|
|
12915
|
+
const callback = onReadyCallbacks.shift();
|
|
12916
|
+
typeof callback === 'function' && callback();
|
|
12917
|
+
}
|
|
12907
12918
|
},
|
|
12908
12919
|
Components: ComponentList
|
|
12909
12920
|
};
|
|
12910
12921
|
|
|
12911
|
-
export { arrays as Arrays, Axios, Date$1 as Dates, FieldMixin, mixin as HistoryMixin, Objects, Router, Store, Strings, Upload, addFieldType, index as default, getAMap };
|
|
12922
|
+
export { arrays as Arrays, Axios, Date$1 as Dates, FieldMixin, mixin as HistoryMixin, Objects, Router, Store, Strings, Upload, addFieldType, index as default, getAMap, onReady };
|