Ant-design-pro: [BUG]antd pro v4 侧边栏无法设置收起

Created on 30 Sep 2019  ·  4Comments  ·  Source: ant-design/ant-design-pro

已设置model/global.jx collapsed: true
进入时在basicLayout 打印 collapsed 出来仍为 true,
但马上又调用了 changeLayoutCollapsed 致使 collapsed 变为了 false,

需要怎么设置才可以使侧边栏默认收起?

All 4 comments

https://preview.pro.ant.design/

这里是没有问题的。是你本地的改动造成的吗?

https://preview.pro.ant.design/

这里是没有问题的。是你本地的改动造成的吗?

我重新下载当前 master,
修改 src/models/global.ts 行39,修改为 collapsed: false
修改 config/defaultSettings.ts 添加配置 collapsed: false

刷新后,侧边栏仍处于展开状态

https://ant.design/components/layout-cn/#components-layout-demo-responsive

你估计碰到了这个问题。Layout 会自动判断展开收起

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lvzheng0404 picture lvzheng0404  ·  3Comments

zhongjiewu picture zhongjiewu  ·  3Comments

wuyongdec picture wuyongdec  ·  3Comments

cheung1111 picture cheung1111  ·  3Comments

yadongxie150 picture yadongxie150  ·  3Comments