(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b0c32518"],{"2deb":function(t,e,r){},"4e38":function(t,e,r){"use strict";r("2deb")},"4e74":function(t,e,r){"use strict";r.r(e);r("caad");var s=r("afbc"),a={data:()=>({search:"",searchRoutes:[]}),methods:{doSearch(){var t=s.b.options.routes;""!=this.search?this.searchRoutes=this.searchRouteByTitle(t,this.search):this.$message.error("请输入搜索内容")},collectAllRouteItems(t){let e=[];const r=t=>{var s;const a=(null===(s=t.meta)||void 0===s?void 0:s.title)||"",c=t.path||"";a&&c&&e.push({path:c,title:a}),t.children&&t.children.length>0&&t.children.forEach(t=>r(t))};return t.forEach(t=>r(t)),e},searchRouteByTitle(t,e){const r=this.collectAllRouteItems(t);if(!e)return r;const s=e.toLowerCase();return r.filter(t=>t.title.toLowerCase().includes(s))}},created(){}},c=(r("4e38"),r("2877")),i=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card m-t-16"},[r("h3",[t._v("功能搜索")]),r("div",[r("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"请输入内容进行搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),r("el-button",{staticStyle:{"margin-left":"12px"},attrs:{type:"primary"},on:{click:function(e){return t.doSearch()}}},[t._v("搜索")])],1),r("div",{staticStyle:{"margin-top":"20px"}},t._l(t.searchRoutes,(function(e,s){return r("router-link",{key:s,staticStyle:{margin:"10px",display:"inline-block","text-decoration":"none"},attrs:{to:e.path,target:"_blank"}},[t._v(t._s(e.title))])})),1)])])}),[],!1,null,null,null);e.default=i.exports}}]);