We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
childrenRender
route
当前 childrenRender 入参只有 dom,当 childrenRender 需要使用路由相关信息时好像没办法直接拿到? 比如我此前基于 Pro V4 实现的页面标签页功能,需要使用 route 路由信息,通过修改生成的代码传入 route 是可以的。
dom
{ // 1. 直接添加 childrenRender?: (dom: JSX.Element, route: Route) => React.ReactNode, // 2. 考虑扩展性 childrenRender?: (dom: JSX.Element, data: { route: Route} ) => React.ReactNode, }
The text was updated successfully, but these errors were encountered:
已发布 plugin-layout 0.17.4 -> 0.18.0
Sorry, something went wrong.
另,如果使用 @umijs/preset-react 版本不得低于 1.8.28,详见此更新。
No branches or pull requests
🥰 需求描述
当前
childrenRender
入参只有dom
,当childrenRender
需要使用路由相关信息时好像没办法直接拿到?比如我此前基于 Pro V4 实现的页面标签页功能,需要使用
route
路由信息,通过修改生成的代码传入route
是可以的。🧐 解决方案
The text was updated successfully, but these errors were encountered: