Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

6.2.0 跟 antd的全局样式有冲突。 #546

Open
yunuo-tech opened this issue Jul 9, 2020 · 3 comments
Open

6.2.0 跟 antd的全局样式有冲突。 #546

yunuo-tech opened this issue Jul 9, 2020 · 3 comments

Comments

@yunuo-tech
Copy link

yunuo-tech commented Jul 9, 2020

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

因为formilyjs 要全局引入antd.css,所以引入后发现布局错乱了,之前不知道哪个版本的时候是没问题的。
这是引入 import 'antd/dist/antd.css' 前的

image

这是引入全局样式后的

image

5.0版本没有此问题

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

🏞 期望结果 [描述你原本期望看到的结果]

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息 [如截图等其他信息可以贴在这里]

@yunuo-tech yunuo-tech reopened this Jul 9, 2020
@chenshuai2144
Copy link
Collaborator

formilyjs 是不是 antd@3 版本?

@yunuo-tech
Copy link
Author

yunuo-tech commented Jul 9, 2020

formilyjs 是不是 antd@3 版本?

不是,是最新版本 另外,我切换到 ant-design-pro-layout 5.0版本就没这个问题了,所以确定是6.0版本的问题

@chenshuai2144
Copy link
Collaborator

估计是某个顺序问题冲突了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants