UNPKG

materials-example-scaffold

Version:

示例

2 lines 5.74 kB
(function(t){function e(e){for(var n,u,l=e[0],s=e[1],i=e[2],v=0,h=[];v<l.length;v++)u=l[v],a[u]&&h.push(a[u][0]),a[u]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);c&&c(e);while(h.length)h.shift()();return o.push.apply(o,i||[]),r()}function r(){for(var t,e=0;e<o.length;e++){for(var r=o[e],n=!0,l=1;l<r.length;l++){var s=r[l];0!==a[s]&&(n=!1)}n&&(o.splice(e--,1),t=u(u.s=r[0]))}return t}var n={},a={app:0},o=[];function u(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.m=t,u.c=n,u.d=function(t,e,r){u.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},u.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},u.t=function(t,e){if(1&e&&(t=u(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)u.d(r,n,function(e){return t[e]}.bind(null,n));return r},u.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return u.d(e,"a",e),e},u.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},u.p="";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],s=l.push.bind(l);l.push=e,l=l.slice();for(var i=0;i<l.length;i++)e(l[i]);var c=s;o.push([0,"chunk-vendors"]),r()})({0:function(t,e,r){t.exports=r("56d7")},"020c":function(t,e,r){"use strict";var n=r("7afb"),a=r.n(n);a.a},"56d7":function(t,e,r){"use strict";r.r(e);var n=r("2b0e"),a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("router-view")},o=[],u=r("2877"),l={},s=Object(u["a"])(l,a,o,!1,null,null,null),i=s.exports,c=r("8c4f"),v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"home"},[n("img",{attrs:{src:r("cf05")}}),n("HelloWorld",{attrs:{msg:"Welcome to Your Vue.js App"}})],1)},h=[],f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"hello"},[r("h1",[t._v(t._s(t.msg))]),t._m(0),r("h3",[t._v("Installed CLI Plugins")]),t._m(1),r("h3",[t._v("Essential Links")]),t._m(2),r("h3",[t._v("Ecosystem")]),t._m(3)])},p=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",[t._v("\n For guide and recipes on how to configure / customize this project,"),r("br"),t._v("\n check out the\n "),r("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/docs",target:"_blank"}},[t._v("vue-cli documentation")]),t._v(".\n ")])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",[r("li",[r("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel",target:"_blank"}},[t._v("babel")])]),r("li",[r("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint",target:"_blank"}},[t._v("eslint")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",[r("li",[r("a",{attrs:{href:"https://vuejs.org",target:"_blank"}},[t._v("Core Docs")])]),r("li",[r("a",{attrs:{href:"https://forum.vuejs.org",target:"_blank"}},[t._v("Forum")])]),r("li",[r("a",{attrs:{href:"https://chat.vuejs.org",target:"_blank"}},[t._v("Community Chat")])]),r("li",[r("a",{attrs:{href:"https://twitter.com/vuejs",target:"_blank"}},[t._v("Twitter")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",[r("li",[r("a",{attrs:{href:"https://router.vuejs.org/en/essentials/getting-started.html",target:"_blank"}},[t._v("vue-router")])]),r("li",[r("a",{attrs:{href:"https://vuex.vuejs.org/en/intro.html",target:"_blank"}},[t._v("vuex")])]),r("li",[r("a",{attrs:{href:"https://github.com/vuejs/vue-devtools#vue-devtools",target:"_blank"}},[t._v("vue-devtools")])]),r("li",[r("a",{attrs:{href:"https://vue-loader.vuejs.org/en",target:"_blank"}},[t._v("vue-loader")])]),r("li",[r("a",{attrs:{href:"https://github.com/vuejs/awesome-vue",target:"_blank"}},[t._v("awesome-vue")])])])}],_={name:"HelloWorld",props:{msg:String}},m=_,b=(r("eb33"),Object(u["a"])(m,f,p,!1,null,"3819a8ec",null)),g=b.exports,d={name:"home",components:{HelloWorld:g}},j=d,y=Object(u["a"])(j,v,h,!1,null,null,null),k=y.exports,w=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},x=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"about"},[r("h1",[t._v("This is an about page")])])}],O={},E=Object(u["a"])(O,w,x,!1,null,null,null),$=E.exports,C=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"app"}},[r("ul",{attrs:{id:"nav"}},t._l(t.headerMenuConfig,function(e){return r("li",{key:e.path},[r("router-link",{attrs:{to:e.path}},[t._v(t._s(e.name))])],1)}),0),r("router-view")],1)},P=[],M=[{name:"主页",path:"/",icon:"home"},{name:"关于",path:"/about",icon:"about"}],S={data:function(){return{headerMenuConfig:M}}},T=S,W=(r("020c"),Object(u["a"])(T,C,P,!1,null,null,null)),A=W.exports,H=[{path:"/",layout:A,component:k},{path:"/about",layout:A,component:$}],F=H,I=[],J=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.forEach(function(e){var r={path:e.path,component:e.layout,children:[{path:"",component:e.component}]};Array.isArray(e.children)&&t(e.children),I.push(r)}),I},L=J(F);n["a"].use(c["a"]);var z=new c["a"]({routes:L});n["a"].config.productionTip=!1,new n["a"]({router:z,render:function(t){return t(i)}}).$mount("#app")},"7afb":function(t,e,r){},b0ec:function(t,e,r){},cf05:function(t,e,r){t.exports=r.p+"img/logo.87343ed6.png"},eb33:function(t,e,r){"use strict";var n=r("b0ec"),a=r.n(n);a.a}}); //# sourceMappingURL=app.9062bc03.js.map