ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.04k stars 1.29k forks source link

最新的pro-components2.4.8导致菜单栏变形左边多出180px的空格🐛[BUG] #6978

Closed zhengmenghuang closed 1 year ago

zhengmenghuang commented 1 year ago

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述 升级到最新的 pro-components 组件到2.4.8后导航菜单样式变形

📷 复现步骤 无

🏞 期望结果 菜单正常

💻 复现代码 "dependencies": { "@ant-design/icons": "^5.0.1", "@ant-design/pro-components": "^2.4.8", "@umijs/max": "^4.0.66", "ahooks": "^3.7.6", "antd": "5.4.5", "crypto-js": "^4.1.1", "react-draggable": "^4.4.5" }, "devDependencies": { "@types/crypto-js": "^4.1.1", "@types/lodash": "^4.14.194", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", "cross-env": "^7.0.3", "eslint-plugin-unused-imports": "^2.0.0", "husky": "^8.0.3", "lint-staged": "^13.2.1", "prettier": "^2.8.8", "prettier-plugin-organize-imports": "^3", "prettier-plugin-packagejson": "^2", "typescript": "^4.9.5" }

© 版本信息 ProComponents 版本: 2.4.8 umi 4.0.66 浏览器环境 Google Chrome 版本 112.0.5615.138(正式版本) (64 位) 开发环境 windows 🚑 其他信息 不正常 image

正常 image

zhengmenghuang commented 1 year ago

.ant-layout-has-sider { & > div:first-child { display: none !important; } } 先把用不到的隐藏

Cacivy commented 1 year ago

这应该是antd的问题,https://github.com/ant-design/ant-design/pull/41993

hihuangwei commented 1 year ago

这应该是antd的问题,ant-design/ant-design#41993

更新了 还是存在问题

hrjoyce1990 commented 1 year ago

同样问题,antd5.4.6没问题,pro回滚到2.4.4就好了

chenshuai2144 commented 1 year ago

再更新一下呢,我看到没问题了

hihuangwei commented 1 year ago

再更新一下呢,我看到没问题了

"@ant-design/pro-components": "^2.4.9", 还是存在问题,

zhengmenghuang commented 1 year ago
  1. 更新依赖如下 image

  2. 删除 package-lock.json

  3. 删除 node_modules

问题还在

liyupengsGit commented 1 year ago
  1. 更新依赖如下 image
  2. 删除 package-lock.json
  3. 删除 node_modules

问题还在

2.4.9的问题,我也出现了,要么等更新,要么自己写css。 类选择器的优先级大于where优先级导致的

hihuangwei commented 1 year ago

@chenshuai2144 混合菜单布局 还是存在问题

luoyepiaoling123 commented 1 year ago

@chenshuai2144 混合菜单布局 还是存在问题

为什么要发布一个有问题的版本

luoyepiaoling123 commented 1 year ago

希望作者看到后及时修复更新下

hyzx86 commented 1 year ago

把三角扒了试试 "@ant-design/pro-components": "2.4.9",

hyzx86 commented 1 year ago

晕 。。扒了也不行。。 确实是 2.4.9了 image

image

https://github.com/ant-design/ant-design-pro/issues/10706

hyzx86 commented 1 year ago

@chenshuai2144 混合菜单布局 还是存在问题

为什么要发布一个有问题的版本

@luoyepiaoling123 都白嫖了 ,别这么理直气壮好不好。。人家不欠你的

q1uxu commented 1 year ago

@chenshuai2144 混合菜单布局 还是存在问题

为什么要发布一个有问题的版本

@luoyepiaoling123 都白嫖了 ,别这么理直气壮好不好。。人家不欠你的

开源的东西,人人都可以用,这算什么白嫖?怕别人白嫖开源出来的东西,那就别开源。再说就算别人白嫖了,维护者就能发布出来没经过测试的有问题的版本吗?这算什么理由?

q1uxu commented 1 year ago

我升级到最新的版本,修复好了

zhengmenghuang commented 1 year ago

2.4.12 已经好了

hyzx86 commented 1 year ago

跪谢大神!