ant-design / compatible

https://compatible.now.sh
MIT License
89 stars 23 forks source link

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

Open crazyair opened 3 years ago

crazyair commented 3 years ago

image image

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

crazyair commented 3 years ago

@shaodahong 是因为样式没加全吗

crazyair commented 3 years ago

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

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

stefango commented 2 years ago

引用 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: https://github.com/ant-design/compatible/issues/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'