@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.ssr.js
CHANGED
|
@@ -1271,119 +1271,119 @@ var permission = function permission(identities) {
|
|
|
1271
1271
|
}))();
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
|
-
};function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1275
|
-
if (typeof shadowMode !== 'boolean') {
|
|
1276
|
-
createInjectorSSR = createInjector;
|
|
1277
|
-
createInjector = shadowMode;
|
|
1278
|
-
shadowMode = false;
|
|
1279
|
-
}
|
|
1280
|
-
// Vue.extend constructor export interop.
|
|
1281
|
-
const options = typeof script === 'function' ? script.options : script;
|
|
1282
|
-
// render functions
|
|
1283
|
-
if (template && template.render) {
|
|
1284
|
-
options.render = template.render;
|
|
1285
|
-
options.staticRenderFns = template.staticRenderFns;
|
|
1286
|
-
options._compiled = true;
|
|
1287
|
-
// functional template
|
|
1288
|
-
if (isFunctionalTemplate) {
|
|
1289
|
-
options.functional = true;
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
// scopedId
|
|
1293
|
-
if (scopeId) {
|
|
1294
|
-
options._scopeId = scopeId;
|
|
1295
|
-
}
|
|
1296
|
-
let hook;
|
|
1297
|
-
if (moduleIdentifier) {
|
|
1298
|
-
// server build
|
|
1299
|
-
hook = function (context) {
|
|
1300
|
-
// 2.3 injection
|
|
1301
|
-
context =
|
|
1302
|
-
context || // cached call
|
|
1303
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1304
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1305
|
-
// 2.2 with runInNewContext: true
|
|
1306
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1307
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1308
|
-
}
|
|
1309
|
-
// inject component styles
|
|
1310
|
-
if (style) {
|
|
1311
|
-
style.call(this, createInjectorSSR(context));
|
|
1312
|
-
}
|
|
1313
|
-
// register component module identifier for async chunk inference
|
|
1314
|
-
if (context && context._registeredComponents) {
|
|
1315
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
1316
|
-
}
|
|
1317
|
-
};
|
|
1318
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1319
|
-
// never gets called
|
|
1320
|
-
options._ssrRegister = hook;
|
|
1321
|
-
}
|
|
1322
|
-
else if (style) {
|
|
1323
|
-
hook = shadowMode
|
|
1324
|
-
? function (context) {
|
|
1325
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1326
|
-
}
|
|
1327
|
-
: function (context) {
|
|
1328
|
-
style.call(this, createInjector(context));
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
if (hook) {
|
|
1332
|
-
if (options.functional) {
|
|
1333
|
-
// register for functional component in vue file
|
|
1334
|
-
const originalRender = options.render;
|
|
1335
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1336
|
-
hook.call(context);
|
|
1337
|
-
return originalRender(h, context);
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
else {
|
|
1341
|
-
// inject component registration as beforeCreate hook
|
|
1342
|
-
const existing = options.beforeCreate;
|
|
1343
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
return script;
|
|
1347
|
-
}function createInjectorSSR(context) {
|
|
1348
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1349
|
-
context = __VUE_SSR_CONTEXT__;
|
|
1350
|
-
}
|
|
1351
|
-
if (!context)
|
|
1352
|
-
return () => { };
|
|
1353
|
-
if (!('styles' in context)) {
|
|
1354
|
-
context._styles = context._styles || {};
|
|
1355
|
-
Object.defineProperty(context, 'styles', {
|
|
1356
|
-
enumerable: true,
|
|
1357
|
-
get: () => context._renderStyles(context._styles)
|
|
1358
|
-
});
|
|
1359
|
-
context._renderStyles = context._renderStyles || renderStyles;
|
|
1360
|
-
}
|
|
1361
|
-
return (id, style) => addStyle(id, style, context);
|
|
1362
|
-
}
|
|
1363
|
-
function addStyle(id, css, context) {
|
|
1364
|
-
const group = css.media || 'default' ;
|
|
1365
|
-
const style = context._styles[group] || (context._styles[group] = { ids: [], css: '' });
|
|
1366
|
-
if (!style.ids.includes(id)) {
|
|
1367
|
-
style.media = css.media;
|
|
1368
|
-
style.ids.push(id);
|
|
1369
|
-
let code = css.source;
|
|
1370
|
-
style.css += code + '\n';
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
function renderStyles(styles) {
|
|
1374
|
-
let css = '';
|
|
1375
|
-
for (const key in styles) {
|
|
1376
|
-
const style = styles[key];
|
|
1377
|
-
css +=
|
|
1378
|
-
'<style data-vue-ssr-id="' +
|
|
1379
|
-
Array.from(style.ids).join(' ') +
|
|
1380
|
-
'"' +
|
|
1381
|
-
(style.media ? ' media="' + style.media + '"' : '') +
|
|
1382
|
-
'>' +
|
|
1383
|
-
style.css +
|
|
1384
|
-
'</style>';
|
|
1385
|
-
}
|
|
1386
|
-
return css;
|
|
1274
|
+
};function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
1275
|
+
if (typeof shadowMode !== 'boolean') {
|
|
1276
|
+
createInjectorSSR = createInjector;
|
|
1277
|
+
createInjector = shadowMode;
|
|
1278
|
+
shadowMode = false;
|
|
1279
|
+
}
|
|
1280
|
+
// Vue.extend constructor export interop.
|
|
1281
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
1282
|
+
// render functions
|
|
1283
|
+
if (template && template.render) {
|
|
1284
|
+
options.render = template.render;
|
|
1285
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
1286
|
+
options._compiled = true;
|
|
1287
|
+
// functional template
|
|
1288
|
+
if (isFunctionalTemplate) {
|
|
1289
|
+
options.functional = true;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
// scopedId
|
|
1293
|
+
if (scopeId) {
|
|
1294
|
+
options._scopeId = scopeId;
|
|
1295
|
+
}
|
|
1296
|
+
let hook;
|
|
1297
|
+
if (moduleIdentifier) {
|
|
1298
|
+
// server build
|
|
1299
|
+
hook = function (context) {
|
|
1300
|
+
// 2.3 injection
|
|
1301
|
+
context =
|
|
1302
|
+
context || // cached call
|
|
1303
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1304
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
1305
|
+
// 2.2 with runInNewContext: true
|
|
1306
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1307
|
+
context = __VUE_SSR_CONTEXT__;
|
|
1308
|
+
}
|
|
1309
|
+
// inject component styles
|
|
1310
|
+
if (style) {
|
|
1311
|
+
style.call(this, createInjectorSSR(context));
|
|
1312
|
+
}
|
|
1313
|
+
// register component module identifier for async chunk inference
|
|
1314
|
+
if (context && context._registeredComponents) {
|
|
1315
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
1316
|
+
}
|
|
1317
|
+
};
|
|
1318
|
+
// used by ssr in case component is cached and beforeCreate
|
|
1319
|
+
// never gets called
|
|
1320
|
+
options._ssrRegister = hook;
|
|
1321
|
+
}
|
|
1322
|
+
else if (style) {
|
|
1323
|
+
hook = shadowMode
|
|
1324
|
+
? function (context) {
|
|
1325
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
1326
|
+
}
|
|
1327
|
+
: function (context) {
|
|
1328
|
+
style.call(this, createInjector(context));
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
if (hook) {
|
|
1332
|
+
if (options.functional) {
|
|
1333
|
+
// register for functional component in vue file
|
|
1334
|
+
const originalRender = options.render;
|
|
1335
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
1336
|
+
hook.call(context);
|
|
1337
|
+
return originalRender(h, context);
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
else {
|
|
1341
|
+
// inject component registration as beforeCreate hook
|
|
1342
|
+
const existing = options.beforeCreate;
|
|
1343
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
return script;
|
|
1347
|
+
}function createInjectorSSR(context) {
|
|
1348
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1349
|
+
context = __VUE_SSR_CONTEXT__;
|
|
1350
|
+
}
|
|
1351
|
+
if (!context)
|
|
1352
|
+
return () => { };
|
|
1353
|
+
if (!('styles' in context)) {
|
|
1354
|
+
context._styles = context._styles || {};
|
|
1355
|
+
Object.defineProperty(context, 'styles', {
|
|
1356
|
+
enumerable: true,
|
|
1357
|
+
get: () => context._renderStyles(context._styles)
|
|
1358
|
+
});
|
|
1359
|
+
context._renderStyles = context._renderStyles || renderStyles;
|
|
1360
|
+
}
|
|
1361
|
+
return (id, style) => addStyle(id, style, context);
|
|
1362
|
+
}
|
|
1363
|
+
function addStyle(id, css, context) {
|
|
1364
|
+
const group = css.media || 'default' ;
|
|
1365
|
+
const style = context._styles[group] || (context._styles[group] = { ids: [], css: '' });
|
|
1366
|
+
if (!style.ids.includes(id)) {
|
|
1367
|
+
style.media = css.media;
|
|
1368
|
+
style.ids.push(id);
|
|
1369
|
+
let code = css.source;
|
|
1370
|
+
style.css += code + '\n';
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
function renderStyles(styles) {
|
|
1374
|
+
let css = '';
|
|
1375
|
+
for (const key in styles) {
|
|
1376
|
+
const style = styles[key];
|
|
1377
|
+
css +=
|
|
1378
|
+
'<style data-vue-ssr-id="' +
|
|
1379
|
+
Array.from(style.ids).join(' ') +
|
|
1380
|
+
'"' +
|
|
1381
|
+
(style.media ? ' media="' + style.media + '"' : '') +
|
|
1382
|
+
'>' +
|
|
1383
|
+
style.css +
|
|
1384
|
+
'</style>';
|
|
1385
|
+
}
|
|
1386
|
+
return css;
|
|
1387
1387
|
}/* script */
|
|
1388
1388
|
var __vue_script__$G = script$F;
|
|
1389
1389
|
/* template */
|
|
@@ -11483,7 +11483,7 @@ var ScrollView = __vue_component__$4;var script$3 = {
|
|
|
11483
11483
|
});
|
|
11484
11484
|
},
|
|
11485
11485
|
onContextMenu: function onContextMenu(event) {
|
|
11486
|
-
var container = this.$el.querySelector(".scroll-
|
|
11486
|
+
var container = this.$el.querySelector(".ui-scroll-view__nav");
|
|
11487
11487
|
var index = this.getChildContainIndex(container, event.target);
|
|
11488
11488
|
var rect = this.$el.getBoundingClientRect();
|
|
11489
11489
|
|
|
@@ -11641,8 +11641,8 @@ var __vue_staticRenderFns__$3 = [];
|
|
|
11641
11641
|
|
|
11642
11642
|
var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
11643
11643
|
if (!inject) return;
|
|
11644
|
-
inject("data-v-
|
|
11645
|
-
source: ".history{flex:none;height:40px;position:relative;margin:10px 0 0}.history .history-tabs.scroll-
|
|
11644
|
+
inject("data-v-500076e4_0", {
|
|
11645
|
+
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}",
|
|
11646
11646
|
map: undefined,
|
|
11647
11647
|
media: undefined
|
|
11648
11648
|
});
|
|
@@ -11653,7 +11653,7 @@ var __vue_inject_styles__$3 = function __vue_inject_styles__(inject) {
|
|
|
11653
11653
|
var __vue_scope_id__$3 = undefined;
|
|
11654
11654
|
/* module identifier */
|
|
11655
11655
|
|
|
11656
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
11656
|
+
var __vue_module_identifier__$3 = "data-v-500076e4";
|
|
11657
11657
|
/* functional template */
|
|
11658
11658
|
|
|
11659
11659
|
var __vue_is_functional_template__$3 = false;
|
package/package.json
CHANGED
|
@@ -109,7 +109,7 @@ export default {
|
|
|
109
109
|
this.$emit("remove-history", { type: "current", name: path });
|
|
110
110
|
},
|
|
111
111
|
onContextMenu(event) {
|
|
112
|
-
const container = this.$el.querySelector(".scroll-
|
|
112
|
+
const container = this.$el.querySelector(".ui-scroll-view__nav");
|
|
113
113
|
const index = this.getChildContainIndex(container, event.target);
|
|
114
114
|
const rect = this.$el.getBoundingClientRect();
|
|
115
115
|
if (index !== -1) {
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
168
168
|
position: relative;
|
|
169
169
|
margin: 10px 0 0;
|
|
170
170
|
|
|
171
|
-
.history-tabs.scroll-
|
|
171
|
+
.history-tabs.ui-scroll-view__nav-wrap {
|
|
172
172
|
left: 0;
|
|
173
173
|
right: 0;
|
|
174
174
|
top: 0;
|
|
@@ -176,11 +176,11 @@ export default {
|
|
|
176
176
|
position: absolute;
|
|
177
177
|
align-items: flex-end;
|
|
178
178
|
|
|
179
|
-
.scroll-
|
|
179
|
+
.ui-scroll-view__nav-scroll {
|
|
180
180
|
flex: 1;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.scroll-
|
|
183
|
+
.ui-scroll-view__nav-control {
|
|
184
184
|
width: 20px;
|
|
185
185
|
height: 30px;
|
|
186
186
|
|
|
@@ -194,7 +194,7 @@ export default {
|
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
.scroll-
|
|
197
|
+
.ui-scroll-view__nav {
|
|
198
198
|
align-items: flex-end;
|
|
199
199
|
}
|
|
200
200
|
|