m2-ui
Version:
The package is provided web components and utilities based on vue and element-ui.
6 lines • 2.63 kB
JavaScript
/*!
* m2-ui v1.0.0
* (c) 2020 by Miracle He
* Released under the MIT License.
*/
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=19)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,u,a){var s,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),u?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},l._ssrRegister=s):i&&(s=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(e,t){return s.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},19:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"m2-router-view"},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view",{attrs:{include:this.include}}):this._e()],1),this.$route.meta.keepAlive?this._e():t("router-view")],1)};r._withStripped=!0;var i={name:"m2-router-view",data:function(){return{include:[]}},watch:{$route:function(e,t){if(e.meta.keepAlive&&!this.include.includes(e.name)&&this.include.push(e.name),t.meta.keepAlive&&e.meta.level<t.meta.level){var n=this.include.indexOf(t.name);-1!==n&&this.include.splice(n,1)}}}},o=n(0),u=Object(o.a)(i,r,[],!1,null,null,null);u.options.__file="packages/router-view/src/main.vue";var a=u.exports;a.install=function(e){e.component(a.name,a)};t.default=a}});