node_modules updated, buefy add to lib folder
This commit is contained in:
1 parent
0a3f6ff240
commit
5d28bc36e1
3957 files changed
+306575
-21738
No files matched your search
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
'use strict';
|
||||
@@ -60,11 +60,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -103,6 +106,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1084,16 +1098,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1272,8 +1294,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2130,7 +2154,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2218,7 +2242,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2327,7 +2351,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2355,7 +2395,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2478,7 +2518,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2568,9 +2620,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2611,7 +2664,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
/* */
|
||||
@@ -58,11 +58,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -101,6 +104,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1082,16 +1096,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1270,8 +1292,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2128,7 +2152,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2216,7 +2240,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2325,7 +2349,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2353,7 +2393,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2476,7 +2516,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2566,9 +2618,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2609,7 +2662,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+69
-16
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
(function (global, factory) {
|
||||
@@ -64,11 +64,14 @@ var View = {
|
||||
var depth = 0;
|
||||
var inactive = false;
|
||||
while (parent && parent._routerRoot !== parent) {
|
||||
if (parent.$vnode && parent.$vnode.data.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (parent._inactive) {
|
||||
inactive = true;
|
||||
var vnodeData = parent.$vnode && parent.$vnode.data;
|
||||
if (vnodeData) {
|
||||
if (vnodeData.routerView) {
|
||||
depth++;
|
||||
}
|
||||
if (vnodeData.keepAlive && parent._inactive) {
|
||||
inactive = true;
|
||||
}
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
@@ -107,6 +110,17 @@ var View = {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
};
|
||||
|
||||
// register instance in init hook
|
||||
// in case kept-alive component be actived when routes changed
|
||||
data.hook.init = function (vnode) {
|
||||
if (vnode.data.keepAlive &&
|
||||
vnode.componentInstance &&
|
||||
vnode.componentInstance !== matched.instances[name]
|
||||
) {
|
||||
matched.instances[name] = vnode.componentInstance;
|
||||
}
|
||||
};
|
||||
|
||||
// resolve props
|
||||
var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);
|
||||
if (propsToPass) {
|
||||
@@ -1088,16 +1102,24 @@ function fillParams (
|
||||
params,
|
||||
routeMsg
|
||||
) {
|
||||
params = params || {};
|
||||
try {
|
||||
var filler =
|
||||
regexpCompileCache[path] ||
|
||||
(regexpCompileCache[path] = pathToRegexp_1.compile(path));
|
||||
return filler(params || {}, { pretty: true })
|
||||
|
||||
// Fix #2505 resolving asterisk routes { name: 'not-found', params: { pathMatch: '/not-found' }}
|
||||
if (params.pathMatch) { params[0] = params.pathMatch; }
|
||||
|
||||
return filler(params, { pretty: true })
|
||||
} catch (e) {
|
||||
{
|
||||
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
|
||||
}
|
||||
return ''
|
||||
} finally {
|
||||
// delete the 0 if it was added
|
||||
delete params[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1276,8 +1298,10 @@ function normalizeLocation (
|
||||
) {
|
||||
var next = typeof raw === 'string' ? { path: raw } : raw;
|
||||
// named target
|
||||
if (next.name || next._normalized) {
|
||||
if (next._normalized) {
|
||||
return next
|
||||
} else if (next.name) {
|
||||
return extend({}, raw)
|
||||
}
|
||||
|
||||
// relative params
|
||||
@@ -2134,7 +2158,7 @@ function poll (
|
||||
|
||||
/* */
|
||||
|
||||
var HTML5History = (function (History$$1) {
|
||||
var HTML5History = /*@__PURE__*/(function (History$$1) {
|
||||
function HTML5History (router, base) {
|
||||
var this$1 = this;
|
||||
|
||||
@@ -2222,7 +2246,7 @@ function getLocation (base) {
|
||||
|
||||
/* */
|
||||
|
||||
var HashHistory = (function (History$$1) {
|
||||
var HashHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function HashHistory (router, base, fallback) {
|
||||
History$$1.call(this, router, base);
|
||||
// check history fallback deeplinking
|
||||
@@ -2331,7 +2355,23 @@ function getHash () {
|
||||
// consistent across browsers - Firefox will pre-decode it!
|
||||
var href = window.location.href;
|
||||
var index = href.indexOf('#');
|
||||
return index === -1 ? '' : decodeURI(href.slice(index + 1))
|
||||
// empty path
|
||||
if (index < 0) { return '' }
|
||||
|
||||
href = href.slice(index + 1);
|
||||
// decode the hash but not the search or hash
|
||||
// as search(query) is already decoded
|
||||
// https://github.com/vuejs/vue-router/issues/2708
|
||||
var searchIndex = href.indexOf('?');
|
||||
if (searchIndex < 0) {
|
||||
var hashIndex = href.indexOf('#');
|
||||
if (hashIndex > -1) { href = decodeURI(href.slice(0, hashIndex)) + href.slice(hashIndex); }
|
||||
else { href = decodeURI(href); }
|
||||
} else {
|
||||
if (searchIndex > -1) { href = decodeURI(href.slice(0, searchIndex)) + href.slice(searchIndex); }
|
||||
}
|
||||
|
||||
return href
|
||||
}
|
||||
|
||||
function getUrl (path) {
|
||||
@@ -2359,7 +2399,7 @@ function replaceHash (path) {
|
||||
|
||||
/* */
|
||||
|
||||
var AbstractHistory = (function (History$$1) {
|
||||
var AbstractHistory = /*@__PURE__*/(function (History$$1) {
|
||||
function AbstractHistory (router, base) {
|
||||
History$$1.call(this, router, base);
|
||||
this.stack = [];
|
||||
@@ -2482,7 +2522,19 @@ VueRouter.prototype.init = function init (app /* Vue component instance */) {
|
||||
|
||||
this.apps.push(app);
|
||||
|
||||
// main app already initialized.
|
||||
// set up app destroyed handler
|
||||
// https://github.com/vuejs/vue-router/issues/2639
|
||||
app.$once('hook:destroyed', function () {
|
||||
// clean out app from this.apps array once destroyed
|
||||
var index = this$1.apps.indexOf(app);
|
||||
if (index > -1) { this$1.apps.splice(index, 1); }
|
||||
// ensure we still have a main app or null if no apps
|
||||
// we do not release the router so it can be reused
|
||||
if (this$1.app === app) { this$1.app = this$1.apps[0] || null; }
|
||||
});
|
||||
|
||||
// main app previously initialized
|
||||
// return as we don't need to set up new history listener
|
||||
if (this.app) {
|
||||
return
|
||||
}
|
||||
@@ -2572,9 +2624,10 @@ VueRouter.prototype.resolve = function resolve (
|
||||
current,
|
||||
append
|
||||
) {
|
||||
current = current || this.history.current;
|
||||
var location = normalizeLocation(
|
||||
to,
|
||||
current || this.history.current,
|
||||
current,
|
||||
append,
|
||||
this
|
||||
);
|
||||
@@ -2615,7 +2668,7 @@ function createHref (base, fullPath, mode) {
|
||||
}
|
||||
|
||||
VueRouter.install = install;
|
||||
VueRouter.version = '3.0.2';
|
||||
VueRouter.version = '3.0.6';
|
||||
|
||||
if (inBrowser && window.Vue) {
|
||||
window.Vue.use(VueRouter);
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* vue-router v3.0.2
|
||||
* (c) 2018 Evan You
|
||||
* vue-router v3.0.6
|
||||
* (c) 2019 Evan You
|
||||
* @license MIT
|
||||
*/
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueRouter=e()}(this,function(){"use strict";function l(t){return-1<Object.prototype.toString.call(t).indexOf("Error")}function k(t,e){for(var r in e)t[r]=e[r];return t}var i={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var r=e.props,n=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,u=r.name,c=o.$route,s=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&p++,o._inactive&&(f=!0),o=o.$parent;if(i.routerViewDepth=p,f)return a(s[u],i,n);var h=c.matched[p];if(!h)return s[u]=null,a();var l=s[u]=h.components[u];i.registerRouteInstance=function(t,e){var r=h.instances[u];(e&&r!==t||!e&&r===t)&&(h.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){h.instances[u]=e.componentInstance};var d=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(c,h.props&&h.props[u]);if(d){d=i.props=k({},d);var y=i.attrs=i.attrs||{};for(var v in d)l.props&&v in l.props||(y[v]=d[v],delete d[v])}return a(l,i,n)}};var e=/[!'()*]/g,r=function(t){return"%"+t.charCodeAt(0).toString(16)},n=/%2C/g,o=function(t){return encodeURIComponent(t).replace(e,r).replace(n,",")},a=decodeURIComponent;function h(t){var o={};return(t=t.trim().replace(/^(\?|#|&)/,""))&&t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=a(e.shift()),n=0<e.length?a(e.join("=")):null;void 0===o[r]?o[r]=n:Array.isArray(o[r])?o[r].push(n):o[r]=[o[r],n]}),o}function u(n){var t=n?Object.keys(n).map(function(e){var t=n[e];if(void 0===t)return"";if(null===t)return o(e);if(Array.isArray(t)){var r=[];return t.forEach(function(t){void 0!==t&&(null===t?r.push(o(e)):r.push(o(e)+"="+o(t)))}),r.join("&")}return o(e)+"="+o(t)}).filter(function(t){return 0<t.length}).join("&"):null;return t?"?"+t:""}var R=/\/?$/;function E(t,e,r,n){var o=n&&n.options.stringifyQuery,i=e.query||{};try{i=c(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:p(e,o),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return r&&(a.redirectedFrom=p(r,o)),Object.freeze(a)}function c(t){if(Array.isArray(t))return t.map(c);if(t&&"object"==typeof t){var e={};for(var r in t)e[r]=c(t[r]);return e}return t}var s=E(null,{path:"/"});function p(t,e){var r=t.path,n=t.query;void 0===n&&(n={});var o=t.hash;return void 0===o&&(o=""),(r||"/")+(e||u)(n)+o}function O(t,e){return e===s?t===e:!!e&&(t.path&&e.path?t.path.replace(R,"")===e.path.replace(R,"")&&t.hash===e.hash&&f(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&f(t.query,e.query)&&f(t.params,e.params)))}function f(n,o){if(void 0===n&&(n={}),void 0===o&&(o={}),!n||!o)return n===o;var t=Object.keys(n),e=Object.keys(o);return t.length===e.length&&t.every(function(t){var e=n[t],r=o[t];return"object"==typeof e&&"object"==typeof r?f(e,r):String(e)===String(r)})}var d,t=[String,Object],y=[String,Array],v={name:"RouterLink",props:{to:{type:t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:y,default:"click"}},render:function(t){var e,r,n=this,o=this.$router,i=this.$route,a=o.resolve(this.to,i,this.append),u=a.location,c=a.route,s=a.href,p={},f=o.options.linkActiveClass,h=o.options.linkExactActiveClass,l=null==f?"router-link-active":f,d=null==h?"router-link-exact-active":h,y=null==this.activeClass?l:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=u.path?E(null,u,null,o):c;p[v]=O(i,m),p[y]=this.exact?p[v]:(r=m,0===(e=i).path.replace(R,"/").indexOf(r.path.replace(R,"/"))&&(!r.hash||e.hash===r.hash)&&function(t,e){for(var r in e)if(!(r in t))return!1;return!0}(e.query,r.query));var g=function(t){C(t)&&(n.replace?o.replace(u):o.push(u))},b={click:C};Array.isArray(this.event)?this.event.forEach(function(t){b[t]=g}):b[this.event]=g;var w={class:p};if("a"===this.tag)w.on=b,w.attrs={href:s};else{var x=function t(e){if(e)for(var r,n=0;n<e.length;n++){if("a"===(r=e[n]).tag)return r;if(r.children&&(r=t(r.children)))return r}}(this.$slots.default);if(x)x.isStatic=!1,(x.data=k({},x.data)).on=b,(x.data.attrs=k({},x.data.attrs)).href=s;else w.on=b}return t(this.tag,w,this.$slots.default)}};function C(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var m="undefined"!=typeof window;function g(t,e,r){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var o=e.split("/");r&&o[o.length-1]||o.pop();for(var i=t.Line truncated
|
||||
var t,e;t=this,e=function(){"use strict";function t(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function e(t,e){for(var r in e)t[r]=e[r];return t}var r={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,r){var n=r.props,o=r.children,i=r.parent,a=r.data;a.routerView=!0;for(var u=i.$createElement,c=n.name,s=i.$route,p=i._routerViewCache||(i._routerViewCache={}),f=0,h=!1;i&&i._routerRoot!==i;){var l=i.$vnode&&i.$vnode.data;l&&(l.routerView&&f++,l.keepAlive&&i._inactive&&(h=!0)),i=i.$parent}if(a.routerViewDepth=f,h)return u(p[c],a,o);var d=s.matched[f];if(!d)return p[c]=null,u();var v=p[c]=d.components[c];a.registerRouteInstance=function(t,e){var r=d.instances[c];(e&&r!==t||!e&&r===t)&&(d.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){d.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==d.instances[c]&&(d.instances[c]=t.componentInstance)};var y=a.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(s,d.props&&d.props[c]);if(y){y=a.props=e({},y);var m=a.attrs=a.attrs||{};for(var g in y)v.props&&g in v.props||(m[g]=y[g],delete y[g])}return u(v,a,o)}},n=/[!'()*]/g,o=function(t){return"%"+t.charCodeAt(0).toString(16)},i=/%2C/g,a=function(t){return encodeURIComponent(t).replace(n,o).replace(i,",")},u=decodeURIComponent;function c(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var r=t.replace(/\+/g," ").split("="),n=u(r.shift()),o=r.length>0?u(r.join("=")):null;void 0===e[n]?e[n]=o:Array.isArray(e[n])?e[n].push(o):e[n]=[e[n],o]}),e):e}function s(t){var e=t?Object.keys(t).map(function(e){var r=t[e];if(void 0===r)return"";if(null===r)return a(e);if(Array.isArray(r)){var n=[];return r.forEach(function(t){void 0!==t&&(null===t?n.push(a(e)):n.push(a(e)+"="+a(t)))}),n.join("&")}return a(e)+"="+a(r)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function f(t,e,r,n){var o=n&&n.options.stringifyQuery,i=e.query||{};try{i=h(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:v(e,o),matched:t?d(t):[]};return r&&(a.redirectedFrom=v(r,o)),Object.freeze(a)}function h(t){if(Array.isArray(t))return t.map(h);if(t&&"object"==typeof t){var e={};for(var r in t)e[r]=h(t[r]);return e}return t}var l=f(null,{path:"/"});function d(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function v(t,e){var r=t.path,n=t.query;void 0===n&&(n={});var o=t.hash;return void 0===o&&(o=""),(r||"/")+(e||s)(n)+o}function y(t,e){return e===l?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&m(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&m(t.query,e.query)&&m(t.params,e.params)))}function m(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&r.every(function(r){var n=t[r],o=e[r];return"object"==typeof n&&"object"==typeof o?m(n,o):String(n)===String(o)})}var g,b=[String,Object],w=[String,Array],x={name:"RouterLink",props:{to:{type:b,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:w,default:"click"}},render:function(t){var r=this,n=this.$router,o=this.$route,i=n.resolve(this.to,o,this.append),a=i.location,u=i.route,c=i.href,s={},h=n.options.linkActiveClass,l=n.options.linkExactActiveClass,d=null==h?"router-link-active":h,v=null==l?"router-link-exact-active":l,m=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?v:this.exactActiveClass,b=a.path?f(null,a,null,n):u;s[g]=y(o,b),s[m]=this.exact?s[g]:function(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var r in e)if(!(r in t))return!1;return!0}(t.query,e.query)}(o,b);var w=function(t){k(t)&&(r.replace?n.replace(a):n.push(a))},x={click:k};Array.isArray(this.event)?this.event.forEach(function(t){x[t]=w}):x[this.event]=w;var R={class:s};if("a"===this.tag)R.on=x,R.attrs={href:c};else{var E=function t(e){if(e)for(var r,n=0;n<e.length;n++){if("a"===(r=e[n]).tag)return r;if(r.children&&(r=t(r.children)))return r}}(this.$slots.default);if(E)E.isStatic=!1,(E.data=e({},E.data)).on=x,(E.data.attrs=e({},E.data.attrs)).href=c;else R.on=x}return t(this.tag,R,this.$slots.default)}};function k(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var R="undefined"!=typeof window;function E(t,e,r){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var o=e.split("/Line truncated
|
||||
Reference in new issue
Block a user