You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ProLayoutroute={clientRoutes[0]}location={location}title="Umi x Ant Design"menuItemRender={(menuItemProps,defaultDom)=>{if(menuItemProps.isUrl||menuItemProps.children){returndefaultDom;}if(menuItemProps.path&&location.pathname!==menuItemProps.path){return(<Linkto={menuItemProps.path}target={menuItemProps.target}>{defaultDom}{menuItemProps.badge}</Link>);}returndefaultDom;}}><Outlet/></ProLayout>
🧐 问题描述 | Problem description
ant pro的layout 配置的route 的name 只能支持字符串么?
💻 示例代码 | Sample code
我想让route 的那么可以展示Badge这个组件和可以支持ReactNode这样的类型
🚑 其他信息 | Other information
OS:
Node:
浏览器 | browser:
The text was updated successfully, but these errors were encountered: