Skip to content
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

不支持设置前缀 ant-prefix 吗? #110

Open
crazyair opened this issue Jan 14, 2021 · 3 comments
Open

不支持设置前缀 ant-prefix 吗? #110

crazyair opened this issue Jan 14, 2021 · 3 comments

Comments

@crazyair
Copy link
Member

crazyair commented Jan 14, 2021

image
image

设置 ant-v4 前缀,form 样式就失效了

@crazyair crazyair changed the title 不支持设置前缀吗? 不支持设置前缀 ant-prefix 吗? Jan 14, 2021
@crazyair
Copy link
Member Author

@shaodahong 是因为样式没加全吗

@crazyair
Copy link
Member Author

引用 import '@ant-design/compatible/assets/index.�less'; 报错
image

引用 import '@ant-design/compatible/assets/index.css'; 需要把 ant 批量替换 ant-v4 样式才会 ok

@stefango
Copy link

引用 import '@ant-design/compatible/assets/index.�less'; 报错 image

引用 import '@ant-design/compatible/assets/index.css'; 需要把 ant 批量替换 ant-v4 样式才会 ok

哈喽,第二句替换是啥意思?我在qiankun微应用里 import '@ant-design/compatible/assets/index.less';,微应用运行时会报下面的错,知道是啥问题么?相关issue: #133

@import (reference) 'antd/dist/antd.less';
^
Can't resolve './antd/dist/antd.less' in '/lerna-project/node_modules/@ant-design/compatible/lib/form/style'

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

No branches or pull requests

2 participants