@v2coding/ui 0.1.3 → 0.1.4
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 +127 -127
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +117 -117
- package/package.json +1 -1
- package/src/components/history/history.vue +5 -5
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -1009,132 +1009,132 @@ var script$F = {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
1011
|
|
|
1012
|
-
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1013
|
-
if (typeof shadowMode !== 'boolean') {
|
|
1014
|
-
createInjectorSSR = createInjector;
|
|
1015
|
-
createInjector = shadowMode;
|
|
1016
|
-
shadowMode = false;
|
|
1017
|
-
}
|
|
1018
|
-
// Vue.extend constructor export interop.
|
|
1019
|
-
const options = typeof script === 'function' ? script.options : script;
|
|
1020
|
-
// render functions
|
|
1021
|
-
if (template && template.render) {
|
|
1022
|
-
options.render = template.render;
|
|
1023
|
-
options.staticRenderFns = template.staticRenderFns;
|
|
1024
|
-
options._compiled = true;
|
|
1025
|
-
// functional template
|
|
1026
|
-
if (isFunctionalTemplate) {
|
|
1027
|
-
options.functional = true;
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
// scopedId
|
|
1031
|
-
if (scopeId) {
|
|
1032
|
-
options._scopeId = scopeId;
|
|
1033
|
-
}
|
|
1034
|
-
let hook;
|
|
1035
|
-
if (moduleIdentifier) {
|
|
1036
|
-
// server build
|
|
1037
|
-
hook = function (context) {
|
|
1038
|
-
// 2.3 injection
|
|
1039
|
-
context =
|
|
1040
|
-
context || // cached call
|
|
1041
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1042
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1043
|
-
// 2.2 with runInNewContext: true
|
|
1044
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1045
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1046
|
-
}
|
|
1047
|
-
// inject component styles
|
|
1048
|
-
if (style) {
|
|
1049
|
-
style.call(this, createInjectorSSR(context));
|
|
1050
|
-
}
|
|
1051
|
-
// register component module identifier for async chunk inference
|
|
1052
|
-
if (context && context._registeredComponents) {
|
|
1053
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1054
|
-
}
|
|
1055
|
-
};
|
|
1056
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1057
|
-
// never gets called
|
|
1058
|
-
options._ssrRegister = hook;
|
|
1059
|
-
}
|
|
1060
|
-
else if (style) {
|
|
1061
|
-
hook = shadowMode
|
|
1062
|
-
? function (context) {
|
|
1063
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1064
|
-
}
|
|
1065
|
-
: function (context) {
|
|
1066
|
-
style.call(this, createInjector(context));
|
|
1067
|
-
};
|
|
1068
|
-
}
|
|
1069
|
-
if (hook) {
|
|
1070
|
-
if (options.functional) {
|
|
1071
|
-
// register for functional component in vue file
|
|
1072
|
-
const originalRender = options.render;
|
|
1073
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1074
|
-
hook.call(context);
|
|
1075
|
-
return originalRender(h, context);
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
else {
|
|
1079
|
-
// inject component registration as beforeCreate hook
|
|
1080
|
-
const existing = options.beforeCreate;
|
|
1081
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
return script;
|
|
1012
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1013
|
+
if (typeof shadowMode !== 'boolean') {
|
|
1014
|
+
createInjectorSSR = createInjector;
|
|
1015
|
+
createInjector = shadowMode;
|
|
1016
|
+
shadowMode = false;
|
|
1017
|
+
}
|
|
1018
|
+
// Vue.extend constructor export interop.
|
|
1019
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
1020
|
+
// render functions
|
|
1021
|
+
if (template && template.render) {
|
|
1022
|
+
options.render = template.render;
|
|
1023
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
1024
|
+
options._compiled = true;
|
|
1025
|
+
// functional template
|
|
1026
|
+
if (isFunctionalTemplate) {
|
|
1027
|
+
options.functional = true;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
// scopedId
|
|
1031
|
+
if (scopeId) {
|
|
1032
|
+
options._scopeId = scopeId;
|
|
1033
|
+
}
|
|
1034
|
+
let hook;
|
|
1035
|
+
if (moduleIdentifier) {
|
|
1036
|
+
// server build
|
|
1037
|
+
hook = function (context) {
|
|
1038
|
+
// 2.3 injection
|
|
1039
|
+
context =
|
|
1040
|
+
context || // cached call
|
|
1041
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1042
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1043
|
+
// 2.2 with runInNewContext: true
|
|
1044
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1045
|
+
context = __VUE_SSR_CONTEXT__;
|
|
1046
|
+
}
|
|
1047
|
+
// inject component styles
|
|
1048
|
+
if (style) {
|
|
1049
|
+
style.call(this, createInjectorSSR(context));
|
|
1050
|
+
}
|
|
1051
|
+
// register component module identifier for async chunk inference
|
|
1052
|
+
if (context && context._registeredComponents) {
|
|
1053
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
1054
|
+
}
|
|
1055
|
+
};
|
|
1056
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1057
|
+
// never gets called
|
|
1058
|
+
options._ssrRegister = hook;
|
|
1059
|
+
}
|
|
1060
|
+
else if (style) {
|
|
1061
|
+
hook = shadowMode
|
|
1062
|
+
? function (context) {
|
|
1063
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1064
|
+
}
|
|
1065
|
+
: function (context) {
|
|
1066
|
+
style.call(this, createInjector(context));
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
if (hook) {
|
|
1070
|
+
if (options.functional) {
|
|
1071
|
+
// register for functional component in vue file
|
|
1072
|
+
const originalRender = options.render;
|
|
1073
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
1074
|
+
hook.call(context);
|
|
1075
|
+
return originalRender(h, context);
|
|
1076
|
+
};
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
// inject component registration as beforeCreate hook
|
|
1080
|
+
const existing = options.beforeCreate;
|
|
1081
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
return script;
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
1087
|
-
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1088
|
-
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1089
|
-
function createInjector(context) {
|
|
1090
|
-
return (id, style) => addStyle(id, style);
|
|
1091
|
-
}
|
|
1092
|
-
let HEAD;
|
|
1093
|
-
const styles = {};
|
|
1094
|
-
function addStyle(id, css) {
|
|
1095
|
-
const group = isOldIE ? css.media || 'default' : id;
|
|
1096
|
-
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1097
|
-
if (!style.ids.has(id)) {
|
|
1098
|
-
style.ids.add(id);
|
|
1099
|
-
let code = css.source;
|
|
1100
|
-
if (css.map) {
|
|
1101
|
-
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1102
|
-
// this makes source maps inside style tags work properly in Chrome
|
|
1103
|
-
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1104
|
-
// http://stackoverflow.com/a/26603875
|
|
1105
|
-
code +=
|
|
1106
|
-
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1107
|
-
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1108
|
-
' */';
|
|
1109
|
-
}
|
|
1110
|
-
if (!style.element) {
|
|
1111
|
-
style.element = document.createElement('style');
|
|
1112
|
-
style.element.type = 'text/css';
|
|
1113
|
-
if (css.media)
|
|
1114
|
-
style.element.setAttribute('media', css.media);
|
|
1115
|
-
if (HEAD === undefined) {
|
|
1116
|
-
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1117
|
-
}
|
|
1118
|
-
HEAD.appendChild(style.element);
|
|
1119
|
-
}
|
|
1120
|
-
if ('styleSheet' in style.element) {
|
|
1121
|
-
style.styles.push(code);
|
|
1122
|
-
style.element.styleSheet.cssText = style.styles
|
|
1123
|
-
.filter(Boolean)
|
|
1124
|
-
.join('\n');
|
|
1125
|
-
}
|
|
1126
|
-
else {
|
|
1127
|
-
const index = style.ids.size - 1;
|
|
1128
|
-
const textNode = document.createTextNode(code);
|
|
1129
|
-
const nodes = style.element.childNodes;
|
|
1130
|
-
if (nodes[index])
|
|
1131
|
-
style.element.removeChild(nodes[index]);
|
|
1132
|
-
if (nodes.length)
|
|
1133
|
-
style.element.insertBefore(textNode, nodes[index]);
|
|
1134
|
-
else
|
|
1135
|
-
style.element.appendChild(textNode);
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1087
|
+
const isOldIE = typeof navigator !== 'undefined' &&
|
|
1088
|
+
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
1089
|
+
function createInjector(context) {
|
|
1090
|
+
return (id, style) => addStyle(id, style);
|
|
1091
|
+
}
|
|
1092
|
+
let HEAD;
|
|
1093
|
+
const styles = {};
|
|
1094
|
+
function addStyle(id, css) {
|
|
1095
|
+
const group = isOldIE ? css.media || 'default' : id;
|
|
1096
|
+
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
1097
|
+
if (!style.ids.has(id)) {
|
|
1098
|
+
style.ids.add(id);
|
|
1099
|
+
let code = css.source;
|
|
1100
|
+
if (css.map) {
|
|
1101
|
+
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
1102
|
+
// this makes source maps inside style tags work properly in Chrome
|
|
1103
|
+
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
1104
|
+
// http://stackoverflow.com/a/26603875
|
|
1105
|
+
code +=
|
|
1106
|
+
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
1107
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
1108
|
+
' */';
|
|
1109
|
+
}
|
|
1110
|
+
if (!style.element) {
|
|
1111
|
+
style.element = document.createElement('style');
|
|
1112
|
+
style.element.type = 'text/css';
|
|
1113
|
+
if (css.media)
|
|
1114
|
+
style.element.setAttribute('media', css.media);
|
|
1115
|
+
if (HEAD === undefined) {
|
|
1116
|
+
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
1117
|
+
}
|
|
1118
|
+
HEAD.appendChild(style.element);
|
|
1119
|
+
}
|
|
1120
|
+
if ('styleSheet' in style.element) {
|
|
1121
|
+
style.styles.push(code);
|
|
1122
|
+
style.element.styleSheet.cssText = style.styles
|
|
1123
|
+
.filter(Boolean)
|
|
1124
|
+
.join('\n');
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
const index = style.ids.size - 1;
|
|
1128
|
+
const textNode = document.createTextNode(code);
|
|
1129
|
+
const nodes = style.element.childNodes;
|
|
1130
|
+
if (nodes[index])
|
|
1131
|
+
style.element.removeChild(nodes[index]);
|
|
1132
|
+
if (nodes.length)
|
|
1133
|
+
style.element.insertBefore(textNode, nodes[index]);
|
|
1134
|
+
else
|
|
1135
|
+
style.element.appendChild(textNode);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
/* script */
|
|
@@ -11634,7 +11634,7 @@ var script$3 = {
|
|
|
11634
11634
|
},
|
|
11635
11635
|
|
|
11636
11636
|
onContextMenu(event) {
|
|
11637
|
-
const container = this.$el.querySelector(".scroll-
|
|
11637
|
+
const container = this.$el.querySelector(".ui-scroll-view__nav");
|
|
11638
11638
|
const index = this.getChildContainIndex(container, event.target);
|
|
11639
11639
|
const rect = this.$el.getBoundingClientRect();
|
|
11640
11640
|
|
|
@@ -11806,8 +11806,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11806
11806
|
|
|
11807
11807
|
const __vue_inject_styles__$3 = function (inject) {
|
|
11808
11808
|
if (!inject) return;
|
|
11809
|
-
inject("data-v-
|
|
11810
|
-
source: ".history{flex:none;height:40px;position:relative;margin:10px 0 0}.history .history-tabs.scroll-
|
|
11809
|
+
inject("data-v-500076e4_0", {
|
|
11810
|
+
source: ".history{flex:none;height:40px;position:relative;margin:10px 0 0}.history .history-tabs.ui-scroll-view__nav-wrap{left:0;right:0;top:0;bottom:0;position:absolute;align-items:flex-end}.history .history-tabs.ui-scroll-view__nav-wrap .ui-scroll-view__nav-scroll{flex:1}.history .history-tabs.ui-scroll-view__nav-wrap .ui-scroll-view__nav-control{width:20px;height:30px}.history .history-tabs.ui-scroll-view__nav-wrap .ui-scroll-view__nav-control.is-disabled .menu-nav-control::after,.history .history-tabs.ui-scroll-view__nav-wrap .ui-scroll-view__nav-control.is-disabled .menu-nav-control::before{background:var(--color-primary-light-3)}.history .history-tabs.ui-scroll-view__nav-wrap .ui-scroll-view__nav{align-items:flex-end}.history .history-tabs.ui-scroll-view__nav-wrap .menu-nav-control{height:30px}.history .history-tabs.ui-scroll-view__nav-wrap .menu-nav-control::after,.history .history-tabs.ui-scroll-view__nav-wrap .menu-nav-control::before{width:3px;height:12px;background:var(--color-primary-light-6)}.history .history-tabs.ui-scroll-view__nav-wrap .menu-nav-control::before{bottom:-2px}.history .history-tabs.ui-scroll-view__nav-wrap .menu-nav-control::after{top:-2px}.history .contextmenu{width:0;height:0;position:absolute;top:0;left:0}.history .contextmenu .modal{position:fixed;top:0;left:0;bottom:0;right:0;z-index:99}.history .history-menu{height:30px;color:#fff;font-size:14px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;cursor:pointer;background:rgba(83,109,139,.6);border-radius:5px 5px 0 0;transition:all .3s ease-in-out;position:relative;background:var(--color-primary-light-9)}.history .history-menu+.history-menu{border-left:1px solid var(--color-darken-primary-2)}.history .history-menu.is-active{height:40px;color:#fff;background:var(--color-darken-primary-2);text-shadow:2px 2px 2px rgba(0,0,0,.95);box-shadow:7px 5px 5px rgba(0,0,0,.2);z-index:1}.history .history-menu:hover i{opacity:1}.history .history-menu>span{flex:1;padding:0 25px}.history .history-menu>i{position:absolute;top:2px;right:3px;opacity:.3;width:14px;height:14px;font-size:12px;border-radius:50%;transition:opacity .3s ease-in-out}.history .history-menu>i:hover{background-color:var(--color-primary)}.history .el-tabs{background:0 0}.history .el-tabs>.el-tabs__header{background:0 0;border-bottom:none}.history .el-tabs>.el-tabs__header .el-tabs__nav{border:none}.history .el-tabs>.el-tabs__header .el-tabs__nav-wrap::after{content:unset}.history .el-tabs>.el-tabs__content{padding:0}.history .el-tabs .el-tabs__nav-next,.history .el-tabs .el-tabs__nav-prev{color:#536d8b;width:20px;line-height:39px;text-align:center;font-size:18px}.history .el-tabs .el-tabs__nav-prev{border-right:1px solid #ddd}.history .el-tabs .el-tabs__nav-next{border-left:1px solid #ddd}.history .el-tabs .el-tabs__item{margin:8px;border:none;height:34px;line-height:34px;background:#2e557e;box-shadow:0 3px 6px rgba(0,0,0,.16);color:#fff;display:inline-flex;flex-direction:row;align-items:center}.history .history-tab-title{width:6em;display:inline-block;vertical-align:middle}.history-dropdown{position:absolute;top:0;left:0}.history-contextmenu.el-popper{margin-top:0}",
|
|
11811
11811
|
map: undefined,
|
|
11812
11812
|
media: undefined
|
|
11813
11813
|
});
|