当前位置: 移动技术网 > IT编程>开发语言>JavaScript > Ant Design Pro:Layout 组件——嵌套布局

Ant Design Pro:Layout 组件——嵌套布局

2020年05月08日  | 移动技术网IT编程  | 我要评论

在   basiclayout.jsx   文件中修改

 <prolayout
        layout="topmenu"
        classname="chenshuai2144"
        disablemobile
        rightcontentrender={
          (rightprops) => <rightcontent {...rightprops} {...settings} />
        }
        contentstyle={{ margin: 0 }}
        navtheme="light"
      >
        <prolayout
          navtheme="light"
          menuheaderrender={false}
          oncollapse={handlemenucollapse}
          menudatarender={menudatarender}
          menuitemrender={(menuitemprops, defaultdom) => {
            if (menuitemprops.isurl || menuitemprops.children || !menuitemprops.path) {
              return defaultdom;
            }
            return <link to={menuitemprops.path}>{defaultdom}</link>;
          }} {...props} {...settings}>
          {children}
        </prolayout>
      </prolayout>

亲测可用!!

 

大佬!可否赠我十斤代码?

 

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网