compatible icon indicating copy to clipboard operation
compatible copied to clipboard

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

Open crazyair opened this issue 4 years ago • 3 comments

image image

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

crazyair avatar Jan 14 '21 12:01 crazyair

@shaodahong 是因为样式没加全吗

crazyair avatar Jan 14 '21 12:01 crazyair

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

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

crazyair avatar Jan 15 '21 01:01 crazyair

引用 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'

stefango avatar May 21 '22 14:05 stefango