👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
1.3 KiB

(("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]=("undefined"!=typeof globalThis?globalThis:self)["makoChunk_ant-design-pro"]||[]).push([["870a7d20"],{a5305499:function(e,a,t){"use strict";t.d(a,"__esModule",{value:!0}),t.d(a,"default",{enumerable:!0,get:function(){return c;}});var s=t("777fffbe"),n=t("dac8af92"),l=t("e6b1eada"),i=t("c7d71c0a"),o=s._(t("be902df5"));let r=[{key:"articles",tab:"\u6587\u7AE0"},{key:"projects",tab:"\u9879\u76EE"},{key:"applications",tab:"\u5E94\u7528"}];var c=()=>{let e=(0,i.useLocation)(),a=(0,i.useMatch)(e.pathname);return(0,n.jsx)(l.PageContainer,{content:(0,n.jsx)("div",{style:{textAlign:"center"},children:(0,n.jsx)(o.default.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",onSearch:e=>{console.log(e);},style:{maxWidth:522,width:"100%"}})}),tabList:r,tabActiveKey:(()=>{let a=e.pathname.substring(e.pathname.lastIndexOf("/")+1);return a&&"/"!==a?a:"articles";})(),onTabChange:e=>{let t=(null==a?void 0:a.pathname)==="/"?"":null==a?void 0:a.pathname.substring(0,a.pathname.lastIndexOf("/"));switch(e){case"articles":i.history.push(`${t}/articles`);break;case"applications":i.history.push(`${t}/applications`);break;case"projects":i.history.push(`${t}/projects`);}},children:(0,n.jsx)(i.Outlet,{})});};}}]);
//# sourceMappingURL=870a7d20-async.f259bf21.js.map