text: webpackJsonp([24],{2138:function(e,t,r){e.exports=r(2520)},2144:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=function(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(n),a=n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"});return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&n[i[0]]||(r&&!i[2]?i[2]=r:r&&(i[2]="("+i[2]+") and ("+r+")"),t.push(i))}},t}},2145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,o){c=r,d=o||{};var i=Object(n.a)(e,t);return p(i),function(t){for(var r=[],o=0;o<i.length;o++){var s=i[o];(u=a[s.id]).refs--,r.push(u)}for(t?p(i=Object(n.a)(e,t)):i=[],o=0;o<r.length;o++){var u;if(0===(u=r[o]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete a[u.id]}}}};var n=r(2146),o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,c=!1,v=function(){},d=null,l="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e){for(var t=0;t<e.length;t++){var r=e[t],n=a[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(_(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var i=[];for(o=0;o<r.parts.length;o++)i.push(_(r.parts[o]));a[r.id]={id:r.id,refs:1,parts:i}}}}function h(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function _(e){var t,r,n=document.querySelector("style["+l+'~="'+e.id+'"]');if(n){if(c)return v;n.parentNode.removeChild(n)}if(f){var o=u++;n=s||(s=h()),t=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else n=h(),t=function(e,t){var r=t.css,n=t.media,o=t.sourceMap;n&&e.setAttribute("media",n);d.ssrId&&e.setAttribute(l,t.id);o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}var m=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}();function b(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}},2146:function(e,t,r){"use strict";t.a=function(e,t){for(var r=[],n={},o=0;o<t.length;o++){var a=t[o],i=a[0],s=a[1],u=a[2],c=a[3],v={id:e+":"+o,css:s,media:u,sourceMap:c};n[i]?n[i].parts.push(v):r.push(n[i]={id:i,parts:[v]})}return r}},2520:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2523),o=r(5);var a=function(e){r(2521)},i=Object(o.a)(null,n.a,n.b,!1,a,null,null);t.default=i.exports},2521:function(e,t,r){var n=r(2522);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,r(2145).default)("580f2e5e",n,!0,{})},2522:function(e,t,r){(e.exports=r(2144)(!1)).push([e.i,"",""])},2523:function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("saas-doc",[r("h2",[e._v("概述")]),e._v(" "),r("p",[e._v("本章节主要介绍router.js文件，通常情况下我们创建了一个页面，如果需要在浏览器中通过不同路径访问到不同的页面，这时候我们就需要在访问路径和页面之间建立一个映射，router.js中就是保存这种映射关系，使用"),r("code",{pre:!0},[e._v("noahv create")]),e._v("创建的页面会自动创建路由映射。")]),e._v(" "),r("h2",[e._v("基础示例")]),e._v(" "),r("p",[e._v("如下所示为示例文件，该文件是一个数据，保存着一条条的映射关系，每一条映射关系都是一个object.")]),e._v(" "),r("p",[e._v("object中主要包含如下字段：")]),e._v(" "),r("ul",[r("li",[e._v("1.component 主要是对应我们创建的页面文件，可以是个数组，必需参数")]),e._v(" "),r("li",[e._v("2.path 浏览器中的访问路径，必需参数")]),e._v(" "),r("li",[e._v("3.entry 标识该条路由是否是系统默认路由，如果设置为true页面加载完成后自动进入该条路由，当所有映射都未添加该参数时，默认进入数组中第一条路由，可选参数")])]),e._v(" "),r("div",{staticClass:"normal-code"},[r("pre",{pre:!0},[r("code",{pre:!0,attrs:{"v-pre":""}},[e._v("\nexport default [\n    // Keep this line if you want auto add router by noahv create\n    {\n        // file path，string or object\n        component: r => require.ensure([], () => r(require('src/demo/table/tableDemo')), 'tableDemo'),\n        // hash name,unique\n        path: '/tableDemo'\n    },\n    {\n        component: r => require.ensure([], () => r(require('src/demo/form/formDemo')), 'formDemo'),\n        path: '/formDemo'\n    },\n    {\n        component: r => require.ensure([], () => r(require('src/demo/table/filterTableDemo')), 'filterTableDemo'),\n        path: '/filterTableDemo'\n    }\n];\n")])])]),e._v(" "),r("h3",[e._v("router.js 配置说明")]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",[e._v("属性")]),e._v(" "),r("th",[e._v("说明")]),e._v(" "),r("th",[e._v("示例")]),e._v(" "),r("th",[e._v("默认值")])])]),e._v(" "),r("tbody",[r("tr",[r("td",[e._v("path")]),e._v(" "),r("td",[e._v("必需，路由地址，须全局唯一")]),e._v(" "),r("td",[e._v("path: '/home'")]),e._v(" "),r("td",[e._v("-")])]),e._v(" "),r("tr",[r("td",[e._v("component")]),e._v(" "),r("td",[e._v("必需，路由指向的文件或页面")]),e._v(" "),r("td",[e._v("component: r => require.ensure([], () => r(require('../../demo/home')), 'home')")]),e._v(" "),r("td",[e._v("-")])]),e._v(" "),r("tr",[r("td",[e._v("meta")]),e._v(" "),r("td",[e._v("配置点击选中效果的连带效应，详见组合示例")]),e._v(" "),r("td",[e._v("-")]),e._v(" "),r("td",[e._v("-")])]),e._v(" "),r("tr",[r("td",[e._v("entry")]),e._v(" "),r("td",[e._v("是否是默认入口，当为true的时候，该条路由为默认路由")]),e._v(" "),r("td",[e._v("entry:true")]),e._v(" "),r("td",[e._v("-")])])])])])},o=[]}});