consumableMenu
// menu
}
subMenuItemRender={(menuItemProps) => {
if (menuItemProps.icon && typeof menuItemProps.icon === 'string') {
const ele = React.createElement(Icon[menuItemProps.icon])
return
{ele}
{menuItemProps.name}
;
}
return
{menuItemProps.name}
;
}}
menuItemRender={(menuItemProps, defaultDom) => {
if (
menuItemProps.isUrl ||
!menuItemProps.path ||
location.pathname === menuItemProps.path
) {
return defaultDom;
}
return {
}}>
{defaultDom}
{/* {menuItemProps.name} */}
;
}}
breadcrumbRender={false}
itemRender={(route, params, routes, paths) => {
const first = routes.indexOf(route) === 0;
return first ? (
{route.breadcrumbName}
) : (
{route.breadcrumbName}
);
}}
actionsRender={() => }
onPageChange={(location) => {
console.log('location', location);
if (location?.pathname && location?.pathname !== '/') {
const nextModule = consumableMenu.find(n => location?.pathname && n?.path && location?.pathname.match(n?.path))
console.log('nextModule', nextModule);
}
handleTabsPanes({ path: location?.pathname, key: location?.pathname })
}}
>
{/* menuExtraRender={() =>
} */}
{
}}>
关闭其他标签
关闭当前标签
关闭全部标签
}
trigger={['click']}
placement="bottomRight"
arrow>
{
e.preventDefault()
}}>
}
moreIcon={}
>
{/* {tabsPanes && tabsPanes.map((item: any) =>
{
//统一对所有有效路由做页面鉴权的处理
validMenuItem
? (
)
:
}
)
} */}