Ant-design-pro: PageHeaderLayout has a display issue with nav

Created on 8 Jan 2018  ·  3Comments  ·  Source: ant-design/ant-design-pro

default

this is code from your documents:

export const getNavData = app => [
  {
    component: dynamicWrapper(app, ['user'], () => import('../layouts/BasicLayout')),
    layout: 'BasicLayout',
    name: '详情页',
    path: '/',
    icon: 'profile',
    children: [{
      name: '基础详情页',
      path: '/',
      component: dynamicWrapper(app, ['rule'], () => import('../routes/List/TableList')),
    }, {
      name: '高级详情页',
      path: 'advanced',
      children: [{
        name: '高级详情页',
        path: 'new',                      // id 为参数名
        component: dynamicWrapper(app, [], () => import('../routes/new/new')),
      }]
    }],
  }          

All 3 comments

Well,the reply is fast,that's quite impressive! I have tested master branch which works perfect fine.You documents must be out of date then.

Was this page helpful?
0 / 5 - 0 ratings