-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
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
菜单折叠按钮设置底部,页面宽度缩小至960 ,菜单折叠事件失效 #3605
Comments
@SanpLee 原因是 Layout 组件定义的 lg: '992px',但是 vben 里面定义的是 lg: '960px', 错误的给 collapsedWidth 提前赋值为 0,导致操作失效。把原来的breakpoint="lg"改成breakpoint="md",貌似可以绕过这个问题。 |
试了,这种方式果然可以,我找了半天都没解决 |
@SanpLee 不知道有没有副作用,尴尬 |
只可惜ant-design-vue那里是写死的 也不建议改breakpoint.less,可以在LayoutSider内监听窗口大小以控制折叠。 |
描述 Bug
菜单折叠按钮设置底部,页面宽度缩小至960 ,菜单折叠事件失效
以下是项目设置,
系统信息
The text was updated successfully, but these errors were encountered: